Skip to content

Commit 40a0479

Browse files
committed
cleanup
1 parent 6851ccf commit 40a0479

File tree

88 files changed

+17
-9176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+17
-9176
lines changed

.bowerrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "themes/gadael/source/bower_components"
3+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
public/*
22
node_modules
33
db.json
4+
themes/gadael/source/bower_components/*

bower.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "gadael-site",
3+
"dependencies": {
4+
"angular": "~1.5.9",
5+
"angular-cookies": "~1.5.9",
6+
"font-awesome": "~4.6.3",
7+
"open-sans-fontface": "~1.4.2"
8+
}
9+
}

themes/gadael/.github/ISSUE_TEMPLATE.md

-11
This file was deleted.

themes/gadael/LICENSE

-21
This file was deleted.

themes/gadael/README.md

-62
This file was deleted.

themes/gadael/_config.yml

-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ share: default # options: jiathis, bdshare, addtoany, default
5151

5252
# Plugins
5353
plugins:
54-
lightgallery: true # options: true, false
55-
justified-gallery: true # options: true, false
5654
google_analytics: # enter the tracking ID for your Google Analytics
5755
google_site_verification: # enter Google site verification code
58-
baidu_analytics: # enter Baidu Analytics hash key
5956

6057
# Miscellaneous
6158
miscellaneous:

themes/gadael/layout/common/head.ejs

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@
3737
<link rel="icon" href="<%- url_for(theme.customize.favicon) %>" />
3838
<% } %>
3939

40-
<%- css('vendor/font-awesome/css/font-awesome.min') %>
41-
<%- css('vendor/open-sans/styles') %>
42-
<%- css('vendor/source-code-pro/styles') %>
40+
<%- css('bower_components/font-awesome/css/font-awesome.min') %>
41+
<%- css('bower_components/open-sans/open-sans') %>
4342

4443
<%- css('css/style') %>
4544

46-
<%- js('vendor/jquery/2.1.3/jquery.min') %>
4745
<%- partial('plugin/scripts', { isHead: true }) %>
4846
</head>

themes/gadael/layout/plugin/baidu-analytics.ejs

-9
This file was deleted.
+2-24
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,10 @@
11
<% if (typeof(isHead) !== 'undefined' && isHead) { %>
2-
<% if (theme.plugins.lightgallery) { %>
3-
<%- css('vendor/lightgallery/css/lightgallery.min') %>
4-
<% } %>
5-
<% if (theme.plugins.justifiedgallery) { %>
6-
<%- css('vendor/justified-gallery/justifiedGallery.min.css') %>
7-
<% } %>
2+
83
<% if (theme.plugins.google_analytics) { %>
94
<%- partial('plugin/google-analytics') %>
105
<% } %>
116
<% if (theme.plugins.google_site_verification) { %>
127
<meta name="google-site-verification" content="<%= theme.plugins.google_site_verification %>" />
138
<% } %>
14-
<% if (theme.plugins.baidu_analytics) { %>
15-
<%- partial('plugin/baidu-analytics') %>
16-
<% } %>
17-
<% } else { %>
18-
<% if (theme.plugins.lightgallery) { %>
19-
<%- js('vendor/lightgallery/js/lightgallery.min') %>
20-
<%- js('vendor/lightgallery/js/lg-thumbnail.min') %>
21-
<%- js('vendor/lightgallery/js/lg-pager.min') %>
22-
<%- js('vendor/lightgallery/js/lg-autoplay.min') %>
23-
<%- js('vendor/lightgallery/js/lg-fullscreen.min') %>
24-
<%- js('vendor/lightgallery/js/lg-zoom.min') %>
25-
<%- js('vendor/lightgallery/js/lg-hash.min') %>
26-
<%- js('vendor/lightgallery/js/lg-share.min') %>
27-
<%- js('vendor/lightgallery/js/lg-video.min') %>
28-
<% } %>
29-
<% if (theme.plugins.justifiedgallery) { %>
30-
<%- js('vendor/justified-gallery/jquery.justifiedGallery.min.js') %>
31-
<% } %>
9+
3210
<% } %>

themes/gadael/layout/search/baidu.ejs

-13
This file was deleted.

themes/gadael/layout/search/insight.ejs

-29
This file was deleted.

themes/gadael/layout/search/swiftype.ejs

-26
This file was deleted.
-64
Original file line numberDiff line numberDiff line change
@@ -1,65 +1 @@
11
<a data-url="<%- post.permalink %>" data-id="<%= post._id %>" class="article-share-link"><i class="fa fa-share"></i><%=__('article.share')%></a>
2-
<script>
3-
(function ($) {
4-
// Prevent duplicate binding
5-
if (typeof(__SHARE_BUTTON_BINDED__) === 'undefined' || !__SHARE_BUTTON_BINDED__) {
6-
__SHARE_BUTTON_BINDED__ = true;
7-
} else {
8-
return;
9-
}
10-
$('body').on('click', function() {
11-
$('.article-share-box.on').removeClass('on');
12-
}).on('click', '.article-share-link', function(e) {
13-
e.stopPropagation();
14-
15-
var $this = $(this),
16-
url = $this.attr('data-url'),
17-
encodedUrl = encodeURIComponent(url),
18-
id = 'article-share-box-' + $this.attr('data-id'),
19-
offset = $this.offset(),
20-
box;
21-
22-
if ($('#' + id).length) {
23-
box = $('#' + id);
24-
25-
if (box.hasClass('on')){
26-
box.removeClass('on');
27-
return;
28-
}
29-
} else {
30-
var html = [
31-
'<div id="' + id + '" class="article-share-box">',
32-
'<input class="article-share-input" value="' + url + '">',
33-
'<div class="article-share-links">',
34-
'<a href="https://twitter.com/intent/tweet?url=' + encodedUrl + '" class="fa fa-twitter article-share-twitter" target="_blank" title="Twitter"></a>',
35-
'<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="fa fa-facebook article-share-facebook" target="_blank" title="Facebook"></a>',
36-
'<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="fa fa-pinterest article-share-pinterest" target="_blank" title="Pinterest"></a>',
37-
'<a href="https://plus.google.com/share?url=' + encodedUrl + '" class="fa fa-google article-share-google" target="_blank" title="Google+"></a>',
38-
'</div>',
39-
'</div>'
40-
].join('');
41-
42-
box = $(html);
43-
44-
$('body').append(box);
45-
}
46-
47-
$('.article-share-box.on').hide();
48-
49-
box.css({
50-
top: offset.top + 25,
51-
left: offset.left
52-
}).addClass('on');
53-
54-
}).on('click', '.article-share-box', function (e) {
55-
e.stopPropagation();
56-
}).on('click', '.article-share-box-input', function () {
57-
$(this).select();
58-
}).on('click', '.article-share-box-link', function (e) {
59-
e.preventDefault();
60-
e.stopPropagation();
61-
62-
window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
63-
});
64-
})(jQuery);
65-
</script>

themes/gadael/source/css/_partial/article.styl

-5
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,3 @@ ol.toc
398398
&:hover
399399
color color-theme
400400
transition color .3s ease-out
401-
402-
/* lightgallery */
403-
.lg-outer
404-
.lg-thumb-item
405-
border-radius: 0 !important

0 commit comments

Comments
 (0)