beautiful-jekyll-theme 1.1.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/404.html +13 -0
  3. data/{LICENSE.txt → LICENSE} +6 -6
  4. data/README.md +185 -210
  5. data/_data/ui-text.yml +494 -0
  6. data/_includes/comments.html +6 -0
  7. data/_includes/disqus.html +18 -16
  8. data/_includes/ext-css.html +7 -0
  9. data/_includes/ext-js.html +7 -0
  10. data/_includes/fb-comment.html +16 -0
  11. data/_includes/footer-minimal.html +13 -14
  12. data/_includes/footer-scripts.html +16 -18
  13. data/_includes/footer.html +30 -170
  14. data/_includes/google_analytics.html +13 -11
  15. data/_includes/gtag.html +10 -0
  16. data/_includes/gtm_body.html +5 -0
  17. data/_includes/gtm_head.html +11 -0
  18. data/_includes/head.html +77 -45
  19. data/_includes/header.html +47 -39
  20. data/_includes/matomo.html +17 -0
  21. data/_includes/nav.html +38 -51
  22. data/_includes/readtime.html +16 -0
  23. data/_includes/social-networks-links.html +267 -0
  24. data/_includes/social-share.html +32 -24
  25. data/_includes/staticman-comment.html +22 -0
  26. data/_includes/staticman-comments.html +83 -0
  27. data/_includes/utterances-comment.html +13 -0
  28. data/_layouts/base.html +16 -9
  29. data/_layouts/default.html +2 -2
  30. data/_layouts/home.html +88 -0
  31. data/_layouts/minimal.html +14 -8
  32. data/_layouts/page.html +3 -7
  33. data/_layouts/post.html +40 -16
  34. data/assets/css/main-minimal.css +2 -2
  35. data/assets/css/main.css +531 -250
  36. data/assets/css/pygment_highlights.css +0 -5
  37. data/assets/css/staticman.css +180 -0
  38. data/assets/img/404-southpark.jpg +0 -0
  39. data/assets/img/avatar-icon.png +0 -0
  40. data/assets/img/bgimage.png +0 -0
  41. data/assets/img/hello_world.jpeg +0 -0
  42. data/assets/img/install-steps.gif +0 -0
  43. data/assets/img/path.jpg +0 -0
  44. data/assets/img/thumb.png +0 -0
  45. data/assets/js/main.js +64 -103
  46. data/assets/js/staticman.js +54 -0
  47. data/{assets/feed.xml → feed.xml} +8 -4
  48. data/tags.html +36 -0
  49. metadata +57 -28
  50. data/_includes/navbarlink.html +0 -16
  51. data/_layouts/tag_index.html +0 -41
  52. data/assets/css/bootstrap-theme.css +0 -476
  53. data/assets/css/bootstrap-theme.css.map +0 -1
  54. data/assets/css/bootstrap-theme.min.css +0 -5
  55. data/assets/css/bootstrap.css +0 -6566
  56. data/assets/css/bootstrap.css.map +0 -1
  57. data/assets/css/bootstrap.min.css +0 -5
  58. data/assets/css/normalize.css +0 -427
  59. data/assets/js/bootstrap.js +0 -2306
  60. data/assets/js/bootstrap.min.js +0 -7
  61. data/assets/js/jquery-1.11.2.min.js +0 -4
@@ -1,38 +1,46 @@
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 %}
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 %}
3
10
  <section id = "social-share-section">
11
+ <span class="sr-only">Share: </span>
4
12
 
5
- <!--- Share on Twitter -->
6
- {% unless site.share-links-active.twitter == false %}
7
- <a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
13
+ {% if site.share-links-active.twitter %}
14
+ <a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
8
15
  class="btn btn-social-icon btn-twitter" title="Share on Twitter">
9
- <span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
16
+ <span class="fab fa-fw fa-twitter" aria-hidden="true"></span>
17
+ <span class="sr-only">Twitter</span>
10
18
  </a>
11
- {% endunless %}
19
+ {% endif %}
12
20
 
13
- <!--- Share on Facebook -->
14
- {% unless site.share-links-active.facebook == false %}
15
- <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
21
+ {% if site.share-links-active.facebook %}
22
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}"
16
23
  class="btn btn-social-icon btn-facebook" title="Share on Facebook">
17
- <span class="fa fa-fw fa-facebook" aria-hidden="true"></span>
24
+ <span class="fab fa-fw fa-facebook" aria-hidden="true"></span>
25
+ <span class="sr-only">Facebook</span>
18
26
  </a>
19
- {% endunless %}
27
+ {% endif %}
20
28
 
21
- <!--- Share on Google Plus -->
22
- {% unless site.share-links-active.google == false %}
23
- <a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}"
24
- class="btn btn-social-icon btn-google" title="Share on Google+">
25
- <span class="fa fa-fw fa-google-plus" aria-hidden="true"></span>
29
+ {% if site.share-links-active.linkedin %}
30
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}"
31
+ class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
32
+ <span class="fab fa-fw fa-linkedin" aria-hidden="true"></span>
33
+ <span class="sr-only">LinkedIn</span>
26
34
  </a>
27
- {% endunless %}
35
+ {% endif %}
28
36
 
29
- <!--- Share on LinkedIn -->
30
- {% unless site.share-links-active.linkedin == false %}
31
- <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}"
32
- class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
33
- <span class="fa fa-fw fa-linkedin" aria-hidden="true"></span>
37
+ {% if site.share-links-active.vk %}
38
+ <a href="https://vk.com/share.php?url={{ page.url | absolute_url | url_encode }}"
39
+ class="btn btn-social-icon btn-vk" title="Share on VK">
40
+ <span class="fab fa-fw fa-vk" aria-hidden="true"></span>
41
+ <span class="sr-only">VK</span>
34
42
  </a>
35
- {% endunless %}
43
+ {% endif %}
36
44
 
37
45
  </section>
38
46
 
@@ -0,0 +1,22 @@
1
+ <article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="https://schema.org/Comment">
2
+ <div class="comment__avatar-wrapper">
3
+ <img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80" alt="{{ include.name }}">
4
+ </div>
5
+ <div class="comment__content-wrapper">
6
+ <h4 class="comment__author" itemprop="author" itemscope itemtype="https://schema.org/Person">
7
+ {% unless include.url == blank %}
8
+ <span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span>
9
+ {% else %}
10
+ <span itemprop="name">{{ include.name }}</span>
11
+ {% endunless %}
12
+ </h4>
13
+ <p class="comment__date">
14
+ {% if include.date %}
15
+ {% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %}
16
+ <time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
17
+ {% if include.index %}</a>{% endif %}
18
+ {% endif %}
19
+ </p>
20
+ <div itemprop="text">{{ include.message | markdownify }}</div>
21
+ </div>
22
+ </article>
@@ -0,0 +1,83 @@
1
+ {% if site.staticman.repository and site.staticman.branch %}
2
+ <div class="staticman-comments">
3
+ <div class="page__comments">
4
+ <!-- Start static comments -->
5
+ <div class="js-comments">
6
+ {% if site.data.comments[page.slug] %}
7
+ <h3 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h3>
8
+ {% assign comments = site.data.comments[page.slug] | sort %}
9
+ {% for comment in comments %}
10
+ {% assign email = comment[1].email %}
11
+ {% assign name = comment[1].name %}
12
+ {% assign url = comment[1].url %}
13
+ {% assign date = comment[1].date %}
14
+ {% assign message = comment[1].message %}
15
+ {% include staticman-comment.html index=forloop.index email=email name=name url=url date=date message=message %}
16
+ {% endfor %}
17
+ {% endif %}
18
+ </div>
19
+ <!-- End static comments -->
20
+ <!-- Start new comment form -->
21
+ <div class="page__comments-form">
22
+ <h3 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h3>
23
+ <p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
24
+ <form id="new_comment" class="page__comments-form js-form form" method="post">
25
+ <div class="form-group">
26
+ <label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label><br>
27
+ <textarea type="text" rows="12" cols="36" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
28
+ <div class="small form-text"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
29
+ </div>
30
+ <div class="form-group">
31
+ <label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
32
+ <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
33
+ </div>
34
+ <div class="form-group">
35
+ <label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
36
+ <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
37
+ </div>
38
+ <div class="form-group">
39
+ <label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
40
+ <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
41
+ </div>
42
+ <div class="form-group hidden" style="display: none;">
43
+ <input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
44
+ <input type="hidden" name="options[slug]" value="{{ page.slug }}">
45
+ <label for="comment-form-location">Not used. Leave blank if you are a human.</label>
46
+ <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
47
+ {% if site.staticman.reCaptcha.siteKey %}<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.staticman.reCaptcha.siteKey }}">{% endif %}
48
+ {% if site.staticman.reCaptcha.secret %}<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.staticman.reCaptcha.secret }}">{% endif %}
49
+ </div>
50
+ <!-- Start comment form alert messaging -->
51
+ <p class="hidden js-notice">
52
+ <strong class="js-notice-text-success hidden">{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}</strong>
53
+ <strong class="js-notice-text-failure hidden">{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}</strong>
54
+ </p>
55
+ <!-- End comment form alert messaging -->
56
+ {% if site.staticman.reCaptcha.siteKey %}
57
+ <div class="form-group">
58
+ <div class="g-recaptcha" data-sitekey="{{ site.staticman.reCaptcha.siteKey }}"></div>
59
+ </div>
60
+ {% endif %}
61
+ <div class="form-group">
62
+ <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
63
+ <button type="submit" id="comment-form-submitted" tabindex="5" class="btn btn--primary btn--large hidden" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
64
+ </div>
65
+ </form>
66
+ </div>
67
+ <!-- End new comment form -->
68
+ <!-- Load reCaptcha if site key is set -->
69
+ {% if site.staticman.reCaptcha.siteKey %}
70
+ <script async src="https://www.google.com/recaptcha/api.js"></script>
71
+ {% endif %}
72
+ </div>
73
+
74
+ <!-- Load script to handle comment form submission -->
75
+ <!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
76
+ <script>
77
+ if (typeof jQuery == 'undefined') {
78
+ document.write('<script src="{{ "/assets/js/jquery-3.4.1.min.js" | relative_url }}"></scr' + 'ipt>');
79
+ }
80
+ </script>
81
+ <script src="{{ "/assets/js/staticman.js" | relative_url }}"></script>
82
+ </div>
83
+ {% endif %}
@@ -0,0 +1,13 @@
1
+ {% if site.utterances.repository and site.utterances.issue-term %}
2
+
3
+ <script src="https://utteranc.es/client.js"
4
+ repo="{{ site.utterances.repository }}"
5
+ issue-term="{{ site.utterances.issue-term }}"
6
+ theme="{{ site.utterances.theme}}"
7
+ label="{{ site.utterances.label}}"
8
+ crossorigin="anonymous"
9
+ async>
10
+ </script>
11
+
12
+ {% endif %}
13
+
@@ -1,25 +1,32 @@
1
1
  ---
2
2
  common-css:
3
- - "/assets/css/bootstrap.min.css"
4
3
  - "/assets/css/bootstrap-social.css"
5
4
  - "/assets/css/main.css"
6
5
  common-ext-css:
7
- - "//maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"
8
- common-googlefonts:
9
- - "Lora:400,700,400italic,700italic"
10
- - "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
6
+ - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
7
+ sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
8
+ - "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"
9
+ - "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"
10
+ - "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
11
+ common-ext-js:
12
+ - href: "https://code.jquery.com/jquery-3.4.1.min.js"
13
+ sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
14
+ - href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
15
+ sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
16
+ - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
17
+ sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
11
18
  common-js:
12
- - "/assets/js/jquery-1.11.2.min.js"
13
- - "/assets/js/bootstrap.min.js"
14
19
  - "/assets/js/main.js"
15
20
  ---
16
21
 
17
22
  <!DOCTYPE html>
18
- <html lang="en">
19
- <!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2016 -->
23
+ <html lang="{{ page.language | default: site.language | default: 'en' }}">
24
+ <!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2020 -->
20
25
  {% include head.html %}
21
26
 
22
27
  <body>
28
+
29
+ {% include gtm_body.html %}
23
30
 
24
31
  {% include nav.html %}
25
32
 
@@ -4,6 +4,6 @@ layout: base
4
4
 
5
5
  <div class="intro-header"></div>
6
6
 
7
- <div role="main" class="container">
7
+ <div role="main" class="container-md">
8
8
  {{ content }}
9
- </div>
9
+ </div>
@@ -0,0 +1,88 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ {% assign posts = paginator.posts | default: site.posts %}
8
+
9
+ <div class="posts-list">
10
+ {% for post in posts %}
11
+ <article class="post-preview">
12
+ <a href="{{ post.url | absolute_url }}">
13
+ <h2 class="post-title">{{ post.title }}</h2>
14
+
15
+ {% if post.subtitle %}
16
+ <h3 class="post-subtitle">
17
+ {{ post.subtitle }}
18
+ </h3>
19
+ {% endif %}
20
+ </a>
21
+
22
+ <p class="post-meta">
23
+ {% assign date_format = site.date_format | default: "%B %-d, %Y" %}
24
+ Posted on {{ post.date | date: date_format }}
25
+ </p>
26
+
27
+ <div class="post-entry-container">
28
+ {%- capture thumbnail -%}
29
+ {% if post.thumbnail-img %}
30
+ {{ post.thumbnail-img }}
31
+ {% elsif post.cover-img %}
32
+ {% if post.cover-img.first %}
33
+ {{ post.cover-img[0].first.first }}
34
+ {% else %}
35
+ {{ post.cover-img }}
36
+ {% endif %}
37
+ {% else %}
38
+ {% endif %}
39
+ {% endcapture %}
40
+ {% assign thumbnail=thumbnail | strip %}
41
+ {% if thumbnail != "" %}
42
+ <div class="post-image">
43
+ <a href="{{ post.url | absolute_url }}">
44
+ <img src="{{ thumbnail | absolute_url }}">
45
+ </a>
46
+ </div>
47
+ {% endif %}
48
+ <div class="post-entry">
49
+ {% assign excerpt_length = site.excerpt_length | default: 50 %}
50
+ {{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
51
+ {% assign excerpt_word_count = post.excerpt | number_of_words %}
52
+ {% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
53
+ <a href="{{ post.url | absolute_url }}" class="post-read-more">[Read&nbsp;More]</a>
54
+ {% endif %}
55
+ </div>
56
+ </div>
57
+
58
+ {% if post.tags.size > 0 %}
59
+ <div class="blog-tags">
60
+ Tags:
61
+ {% if site.link-tags %}
62
+ {% for tag in post.tags %}
63
+ <a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
64
+ {% endfor %}
65
+ {% else %}
66
+ {{ post.tags | join: ", " }}
67
+ {% endif %}
68
+ </div>
69
+ {% endif %}
70
+
71
+ </article>
72
+ {% endfor %}
73
+ </div>
74
+
75
+ {% if paginator.total_pages > 1 %}
76
+ <ul class="pagination main-pager">
77
+ {% if paginator.previous_page %}
78
+ <li class="page-item previous">
79
+ <a class="page-link" href="{{ paginator.previous_page_path | absolute_url }}">&larr; Newer Posts</a>
80
+ </li>
81
+ {% endif %}
82
+ {% if paginator.next_page %}
83
+ <li class="page-item next">
84
+ <a class="page-link" href="{{ paginator.next_page_path | absolute_url }}">Older Posts &rarr;</a>
85
+ </li>
86
+ {% endif %}
87
+ </ul>
88
+ {% endif %}
@@ -1,26 +1,32 @@
1
1
  ---
2
2
  common-css:
3
- - "/assets/css/bootstrap.min.css"
4
3
  - "/assets/css/main-minimal.css"
5
- common-js:
6
- - "/assets/js/jquery-1.11.2.min.js"
7
- - "/assets/js/bootstrap.min.js"
4
+ common-ext-css:
5
+ - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
6
+ sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
7
+ common-ext-js:
8
+ - href: "https://code.jquery.com/jquery-3.4.1.min.js"
9
+ sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
10
+ - href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
11
+ sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
12
+ - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
13
+ sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
8
14
  ---
9
15
 
10
16
  <!DOCTYPE html>
11
- <html lang="en">
17
+ <html lang="{{ page.language | default: site.language | default: 'en' }}">
12
18
 
13
19
  {% include head.html %}
14
20
 
15
21
  <body>
16
22
 
17
- <div role="main" class="container main-content">
23
+ <div role="main" class="container-md main-content">
18
24
  {{ content }}
19
25
  </div>
20
26
 
21
27
  {% include footer-minimal.html %}
22
-
28
+
23
29
  {% include footer-scripts.html %}
24
-
30
+
25
31
  </body>
26
32
  </html>
@@ -4,15 +4,11 @@ layout: base
4
4
 
5
5
  {% include header.html type="page" %}
6
6
 
7
- <div class="container" role="main">
7
+ <div class="container-md" role="main">
8
8
  <div class="row">
9
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
9
+ <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
10
10
  {{ content }}
11
- {% if page.comments %}
12
- <div class="disqus-comments">
13
- {% include disqus.html %}
14
- </div>
15
- {% endif %}
11
+ {% include comments.html %}
16
12
  </div>
17
13
  </div>
18
14
  </div>
@@ -4,9 +4,32 @@ layout: base
4
4
 
5
5
  {% include header.html type="post" %}
6
6
 
7
- <div class="container">
7
+ <div class="container-md">
8
8
  <div class="row">
9
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
9
+ <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
10
+
11
+ {% if page.gh-repo %}
12
+ {% assign gh_split = page.gh-repo | split:'/' %}
13
+ {% assign gh_user = gh_split[0] %}
14
+ {% assign gh_repo = gh_split[1] %}
15
+
16
+ <div id="header-gh-btns">
17
+ {% if page.gh-badge.size > 0 %}
18
+ {% for badge in page.gh-badge %}
19
+ {% case badge %}
20
+ {% when 'star'%}
21
+ <iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=star&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
22
+ {% when 'watch'%}
23
+ <iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=watch&v=2&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
24
+ {% when 'fork'%}
25
+ <iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=fork&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
26
+ {% when 'follow'%}
27
+ <iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&type=follow&count=true" frameborder="0" scrolling="0" width="220px" height="20px"></iframe>
28
+ {% endcase %}
29
+ {% endfor %}
30
+ {% endif %}
31
+ </div>
32
+ {% endif %}
10
33
 
11
34
  <article role="main" class="blog-post">
12
35
  {{ content }}
@@ -15,32 +38,33 @@ layout: base
15
38
  {% if page.tags.size > 0 %}
16
39
  <div class="blog-tags">
17
40
  Tags:
18
- {{ page.tags | join: ", " }}
41
+ {% if site.link-tags %}
42
+ {% for tag in page.tags %}
43
+ <a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
44
+ {% endfor %}
45
+ {% else %}
46
+ {{ page.tags | join: ", " }}
47
+ {% endif %}
19
48
  </div>
20
49
  {% endif %}
21
50
 
22
- {% unless page.social-share == false %}
51
+ {% if page.social-share %}
23
52
  {% include social-share.html %}
24
- {% endunless %}
53
+ {% endif %}
25
54
 
26
- <ul class="pager blog-pager">
55
+ <ul class="pagination blog-pager">
27
56
  {% if page.previous.url %}
28
- <li class="previous">
29
- <a href="{{ page.previous.url | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">&larr; Previous Post</a>
57
+ <li class="page-item previous">
58
+ <a class="page-link" href="{{ page.previous.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">&larr; Previous Post</a>
30
59
  </li>
31
60
  {% endif %}
32
61
  {% if page.next.url %}
33
- <li class="next">
34
- <a href="{{ page.next.url | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post &rarr;</a>
62
+ <li class="page-item next">
63
+ <a class="page-link" href="{{ page.next.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post &rarr;</a>
35
64
  </li>
36
65
  {% endif %}
37
66
  </ul>
38
-
39
- {% unless page.comments == false %}
40
- <div class="disqus-comments">
41
- {% include disqus.html %}
42
- </div>
43
- {% endunless %}
67
+ {% include comments.html %}
44
68
  </div>
45
69
  </div>
46
70
  </div>