Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit069e07c

Browse files
author
root
committed
make the theme work well as a gem
1 parent8e64a33 commit069e07c

File tree

6 files changed

+31
-43
lines changed

6 files changed

+31
-43
lines changed

‎_includes/footer-minimal.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
{% else %}
88
{{ site.time | date: '%Y' }}
99
{% endif %}
10+
  •  
1011

1112
{% if site.url-pretty %}
12-
  •  
1313
<ahref="{{ site.url }}">{{ site.url-pretty }}</a>
14+
&nbsp;&nbsp;&bull;&nbsp;&nbsp;
1415
{% endif %}
16+
17+
Theme by<ahref="http://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
1518
</div>
16-
</footer>
19+
</footer>

‎_includes/footer.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,17 @@
135135
{% endif %}
136136
</ul>
137137
<pclass="copyright text-muted">
138-
{{ site.author.name }}
139-
&nbsp;&bull;&nbsp;
140-
{{ site.time | date: '%Y' }}
138+
{% if site.author.name %}
139+
{{ site.author.name }}
140+
&nbsp;&bull;&nbsp;
141+
{% endif %}
142+
143+
{{ site.time | date: '%Y' }}
141144

142-
{% if site.url-pretty %}
143-
&nbsp;&bull;&nbsp;
144-
<ahref="{{ site.url }}">{{ site.url-pretty }}</a>
145-
{% endif %}
145+
{% if site.url-pretty %}
146+
&nbsp;&bull;&nbsp;
147+
<ahref="{{ site.url }}">{{ site.url-pretty }}</a>
148+
{% endif %}
146149
</p>
147150
<!-- Please don't remove this, keep my open source work credited :) -->
148151
<pclass="theme-by text-muted">

‎_includes/head.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@
4747
{% endfor %}
4848
{% endif %}
4949

50-
<!-- Facebook OpenGraph tags -->
51-
{% if site.fb_app_id %}
52-
<metaproperty="fb:app_id"content="{{ site.fb_app_id }}"/>
53-
{% endif %}
54-
5550
{% if page.meta-title %}
5651
<metaproperty="og:title"content="{{ page.meta-title }}"/>
5752
{% elsif page.title %}

‎_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ul>
3434
</div>
3535

36-
{% if site.avatarand (layout.show-avatar or page.show-avatar)%}
36+
{% if site.avatar %}
3737
<divclass="avatar-container">
3838
<divclass="avatar-img-border">
3939
<ahref="{{ site.url }}">

‎_includes/social-share.html

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,38 @@
1-
<!-- Check if any share-links are active -->
2-
{% assign any-share-links = false %}
3-
{% for links in site.share-links-active %}
4-
{% if links[1] == true %}
5-
{% assign any-share-links = true %}
6-
{% endif %}
7-
{% endfor %}
8-
9-
{% if any-share-links %}
1+
{% if site.share-links-active.twitter == false and site.share-links-active.facebook == false and site.share-links-active.google == false and site.share-links-active.linkedin == false %}
2+
{% else %}
103
<sectionid = "social-share-section">
114

125
<!--- Share on Twitter -->
13-
{%if site.share-links-active.twitter %}
6+
{%unless site.share-links-active.twitter == false %}
147
<ahref="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
158
class="btn btn-social-icon btn-twitter"title="Share on Twitter">
169
<spanclass="fa fa-fw fa-twitter"aria-hidden="true"></span>
1710
</a>
18-
{%endif %}
11+
{%endunless %}
1912

2013
<!--- Share on Facebook -->
21-
{%if site.share-links-active.facebook %}
14+
{%unless site.share-links-active.facebook == false %}
2215
<ahref="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
2316
class="btn btn-social-icon btn-facebook"title="Share on Facebook">
2417
<spanclass="fa fa-fw fa-facebook"aria-hidden="true"></span>
2518
</a>
26-
{%endif %}
19+
{%endunless %}
2720

2821
<!--- Share on Google Plus -->
29-
{%if site.share-links-active.google %}
22+
{%unless site.share-links-active.google == false %}
3023
<ahref="https://plus.google.com/share?url={{ site.url }}{{ page.url }}"
3124
class="btn btn-social-icon btn-google"title="Share on Google+">
3225
<spanclass="fa fa-fw fa-google-plus"aria-hidden="true"></span>
3326
</a>
34-
{%endif %}
27+
{%endunless %}
3528

3629
<!--- Share on LinkedIn -->
37-
{%if site.share-links-active.linkedin %}
30+
{%unless site.share-links-active.linkedin == false %}
3831
<ahref="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}"
3932
class="btn btn-social-icon btn-linkedin"title="Share on LinkedIn">
4033
<spanclass="fa fa-fw fa-linkedin"aria-hidden="true"></span>
4134
</a>
42-
{%endif %}
35+
{%endunless %}
4336

4437
</section>
4538

‎_layouts/post.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@
1515
{% if page.tags.size> 0 %}
1616
<divclass="blog-tags">
1717
Tags:
18-
{% if site.link-tags %}
19-
{% for tag in page.tags %}
20-
<ahref="/tag/{{ tag }}">{{ tag }}</a>
21-
{% endfor %}
22-
{% else %}
23-
{{ page.tags | join: ", " }}
24-
{% endif %}
18+
{{ page.tags | join: ", " }}
2519
</div>
2620
{% endif %}
2721

28-
{%if page.social-share %}
22+
{%unless page.social-share == false %}
2923
{% include social-share.html %}
30-
{%endif %}
24+
{%endunless %}
3125

3226
<ulclass="pager blog-pager">
3327
{% if page.previous.url %}
@@ -42,11 +36,11 @@
4236
{% endif %}
4337
</ul>
4438

45-
{%if page.comments %}
39+
{%unless page.comments == false %}
4640
<divclass="disqus-comments">
4741
{% include disqus.html %}
4842
</div>
49-
{%endif %}
43+
{%endunless %}
5044
</div>
5145
</div>
5246
</div>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp