jekyll-theme-so-simple 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +235 -0
- data/LICENSE +49 -0
- data/README.md +1145 -0
- data/_data/authors.yml +16 -0
- data/_data/navigation.yml +14 -0
- data/_data/text.yml +36 -0
- data/_includes/disqus-comments.html +19 -0
- data/_includes/documents-collection.html +3 -0
- data/_includes/entry-date.html +6 -0
- data/_includes/entry.html +39 -0
- data/_includes/footer-custom.html +3 -0
- data/_includes/footer.html +24 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head-custom.html +5 -0
- data/_includes/head-feed.html +1 -0
- data/_includes/head-seo.html +1 -0
- data/_includes/head.html +50 -0
- data/_includes/lunr-search-scripts.html +106 -0
- data/_includes/masthead.html +13 -0
- data/_includes/navigation.html +17 -0
- data/_includes/page-author.html +37 -0
- data/_includes/page-categories.html +14 -0
- data/_includes/page-date.html +4 -0
- data/_includes/page-image.html +14 -0
- data/_includes/page-pagination.html +19 -0
- data/_includes/page-tags.html +14 -0
- data/_includes/posts-all.html +3 -0
- data/_includes/posts-category.html +3 -0
- data/_includes/posts-limit.html +3 -0
- data/_includes/posts-paginated.html +74 -0
- data/_includes/posts-tag.html +3 -0
- data/_includes/read-time.html +16 -0
- data/_includes/responsive-embed +16 -0
- data/_includes/scripts.html +43 -0
- data/_includes/skip-links.html +8 -0
- data/_includes/social-share.html +6 -0
- data/_includes/toc +9 -0
- data/_layouts/categories.html +48 -0
- data/_layouts/category.html +9 -0
- data/_layouts/collection.html +9 -0
- data/_layouts/default.html +22 -0
- data/_layouts/home.html +17 -0
- data/_layouts/page.html +30 -0
- data/_layouts/post.html +41 -0
- data/_layouts/posts.html +29 -0
- data/_layouts/search.html +11 -0
- data/_layouts/tag.html +9 -0
- data/_layouts/tags.html +48 -0
- data/_sass/so-simple.scss +31 -0
- data/_sass/so-simple/_author.scss +45 -0
- data/_sass/so-simple/_base.scss +112 -0
- data/_sass/so-simple/_buttons.scss +92 -0
- data/_sass/so-simple/_entries.scss +182 -0
- data/_sass/so-simple/_functions.scss +4 -0
- data/_sass/so-simple/_global.scss +393 -0
- data/_sass/so-simple/_icons.scss +43 -0
- data/_sass/so-simple/_mixins.scss +5 -0
- data/_sass/so-simple/_notices.scss +93 -0
- data/_sass/so-simple/_page.scss +282 -0
- data/_sass/so-simple/_reset.scss +523 -0
- data/_sass/so-simple/_syntax-highlighting.scss +334 -0
- data/_sass/so-simple/_tables.scss +34 -0
- data/_sass/so-simple/_utilities.scss +7 -0
- data/_sass/so-simple/_variables.scss +132 -0
- data/_sass/so-simple/functions/_color.scss +21 -0
- data/_sass/so-simple/functions/_em.scss +7 -0
- data/_sass/so-simple/functions/_fluid-type.scss +33 -0
- data/_sass/so-simple/functions/_yiq.scss +38 -0
- data/_sass/so-simple/mixins/_clearfix.scss +32 -0
- data/_sass/so-simple/mixins/_float.scss +15 -0
- data/_sass/so-simple/mixins/_image.scss +38 -0
- data/_sass/so-simple/mixins/_lists.scss +9 -0
- data/_sass/so-simple/mixins/_text-truncate.scss +10 -0
- data/_sass/so-simple/utilities/_accessibility.scss +43 -0
- data/_sass/so-simple/utilities/_align.scss +60 -0
- data/_sass/so-simple/utilities/_animations.scss +99 -0
- data/_sass/so-simple/utilities/_clearfix.scss +7 -0
- data/_sass/so-simple/utilities/_float.scss +7 -0
- data/_sass/so-simple/utilities/_responsive-embed.scss +66 -0
- data/_sass/so-simple/utilities/_text.scss +48 -0
- data/_sass/so-simple/vendor/breakpoint/_breakpoint.scss +114 -0
- data/_sass/so-simple/vendor/breakpoint/_context.scss +95 -0
- data/_sass/so-simple/vendor/breakpoint/_helpers.scss +151 -0
- data/_sass/so-simple/vendor/breakpoint/_legacy-settings.scss +50 -0
- data/_sass/so-simple/vendor/breakpoint/_no-query.scss +15 -0
- data/_sass/so-simple/vendor/breakpoint/_parsers.scss +215 -0
- data/_sass/so-simple/vendor/breakpoint/_respond-to.scss +82 -0
- data/_sass/so-simple/vendor/breakpoint/_settings.scss +71 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_double.scss +33 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_query.scss +82 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_resolution.scss +31 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_single.scss +26 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_triple.scss +36 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_default.scss +22 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/single/_default.scss +13 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/triple/_default.scss +18 -0
- data/_sass/so-simple/vendor/lity/_lity.scss +221 -0
- data/assets/css/main.scss +8 -0
- data/assets/js/lunr/lunr.da.min.js +18 -0
- data/assets/js/lunr/lunr.de.min.js +18 -0
- data/assets/js/lunr/lunr.du.min.js +18 -0
- data/assets/js/lunr/lunr.es.min.js +18 -0
- data/assets/js/lunr/lunr.fi.min.js +18 -0
- data/assets/js/lunr/lunr.fr.min.js +18 -0
- data/assets/js/lunr/lunr.hu.min.js +18 -0
- data/assets/js/lunr/lunr.it.min.js +18 -0
- data/assets/js/lunr/lunr.ja.min.js +1 -0
- data/assets/js/lunr/lunr.jp.min.js +1 -0
- data/assets/js/lunr/lunr.min.js +6 -0
- data/assets/js/lunr/lunr.multi.min.js +1 -0
- data/assets/js/lunr/lunr.no.min.js +18 -0
- data/assets/js/lunr/lunr.pt.min.js +18 -0
- data/assets/js/lunr/lunr.ro.min.js +18 -0
- data/assets/js/lunr/lunr.ru.min.js +18 -0
- data/assets/js/lunr/lunr.stemmer.support.min.js +1 -0
- data/assets/js/lunr/lunr.sv.min.js +18 -0
- data/assets/js/lunr/lunr.tr.min.js +18 -0
- data/assets/js/main.js +15 -0
- data/assets/js/main.min.js +6 -0
- data/assets/js/plugins/jquery.smooth-scroll.js +358 -0
- data/assets/js/plugins/jquery.smooth-scroll.min.js +9 -0
- data/assets/js/plugins/lity.js +655 -0
- data/assets/js/plugins/lity.min.js +5 -0
- data/assets/js/plugins/table-of-contents.js +59 -0
- data/assets/js/search-data.json +27 -0
- metadata +312 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% if page.image %}
|
|
2
|
+
{% assign page_image = page.image.path | default: page.image %}
|
|
3
|
+
{% unless page_image contains '://' %}
|
|
4
|
+
{% assign page_image = page_image | relative_url %}
|
|
5
|
+
{% endunless %}
|
|
6
|
+
{% assign page_image = page_image | escape %}
|
|
7
|
+
|
|
8
|
+
<div class="page-image">
|
|
9
|
+
<img src="{{ page_image }}" class="entry-feature-image u-photo" alt="{{ page.title }}" {% unless site.logo %}style="margin-top: 0;"{% endunless %}>
|
|
10
|
+
{% if page.image.caption %}
|
|
11
|
+
<div class="page-image-caption">{{ page.image.caption | markdownify }}</div>
|
|
12
|
+
{% endif %}
|
|
13
|
+
</div>
|
|
14
|
+
{% endif %}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<nav class="page-pagination" role="navigation">
|
|
2
|
+
{% if page.previous %}
|
|
3
|
+
<a class="page-previous" href="{{ page.previous.url | relative_url }}">
|
|
4
|
+
<h4 class="page-pagination-label">{{ site.data.text[site.locale].previous | default: 'Previous' }}</h4>
|
|
5
|
+
<span class="page-pagination-title">
|
|
6
|
+
<i class="fas fa-arrow-left"></i> {{ page.previous.title | markdownify | strip_html }}
|
|
7
|
+
</span>
|
|
8
|
+
</a>
|
|
9
|
+
{% endif %}
|
|
10
|
+
|
|
11
|
+
{% if page.next %}
|
|
12
|
+
<a class="page-next" href="{{ page.next.url | relative_url }}">
|
|
13
|
+
<h4 class="page-pagination-label">{{ site.data.text[site.locale].next | default: 'Next' }}</h4>
|
|
14
|
+
<span class="page-pagination-title">
|
|
15
|
+
{{ page.next.title | markdownify | strip_html }} <i class="fas fa-arrow-right"></i>
|
|
16
|
+
</span>
|
|
17
|
+
</a>
|
|
18
|
+
{% endif %}
|
|
19
|
+
</nav>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% if page.tags.size > 0 %}
|
|
2
|
+
<h3 class="page-taxonomies-title">{{ site.data.text[site.locale].tags | default: 'Tags' }}</h3>
|
|
3
|
+
<ul class="page-taxonomies">
|
|
4
|
+
{%- for tag in page.tags -%}
|
|
5
|
+
<li class="page-taxonomy">
|
|
6
|
+
{%- if site.tag_archive_path -%}
|
|
7
|
+
<a href="{{ tag | slugify | prepend: site.tag_archive_path | relative_url }}" title="{{ site.data.text[site.locale].pages_tagged | default: 'Pages tagged' }} {{ tag }}" rel="tag">{{ tag }}</a>
|
|
8
|
+
{%- else -%}
|
|
9
|
+
{{ tag }}
|
|
10
|
+
{%- endif -%}
|
|
11
|
+
</li>
|
|
12
|
+
{%- endfor- %}
|
|
13
|
+
</ul>
|
|
14
|
+
{% endif %}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{%- for entry in paginator.posts -%}
|
|
2
|
+
{% include entry.html %}
|
|
3
|
+
{%- endfor -%}
|
|
4
|
+
|
|
5
|
+
<!-- Pagination links -->
|
|
6
|
+
{% if paginator.total_pages > 1 %}
|
|
7
|
+
<nav class="pagination">
|
|
8
|
+
{% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %}
|
|
9
|
+
<ul>
|
|
10
|
+
{% comment %} Link for previous page {% endcomment %}
|
|
11
|
+
{% if paginator.previous_page %}
|
|
12
|
+
{% if paginator.previous_page == 1 %}
|
|
13
|
+
<li><a href="{{ first_page_path }}">{{ site.data.text[site.locale].previous | default: "Previous" }}</a></li>
|
|
14
|
+
{% else %}
|
|
15
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | relative_url }}">{{ site.data.text[site.locale].previous | default: "Previous" }}</a></li>
|
|
16
|
+
{% endif %}
|
|
17
|
+
{% else %}
|
|
18
|
+
<li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.text[site.locale].previous | default: "Previous" }}</span></a></li>
|
|
19
|
+
{% endif %}
|
|
20
|
+
|
|
21
|
+
{% comment %} First page {% endcomment %}
|
|
22
|
+
{% if paginator.page == 1 %}
|
|
23
|
+
<li><a href="#" class="disabled current">1</a></li>
|
|
24
|
+
{% else %}
|
|
25
|
+
<li><a href="{{ first_page_path }}">1</a></li>
|
|
26
|
+
{% endif %}
|
|
27
|
+
|
|
28
|
+
{% assign page_start = 2 %}
|
|
29
|
+
{% if paginator.page > 4 %}
|
|
30
|
+
{% assign page_start = paginator.page | minus: 2 %}
|
|
31
|
+
{% comment %} Ellipsis for truncated links {% endcomment %}
|
|
32
|
+
<li><a href="#" class="disabled">…</a></li>
|
|
33
|
+
{% endif %}
|
|
34
|
+
|
|
35
|
+
{% assign page_end = paginator.total_pages | minus: 1 %}
|
|
36
|
+
{% assign pages_to_end = paginator.total_pages | minus: paginator.page %}
|
|
37
|
+
{% if pages_to_end > 4 %}
|
|
38
|
+
{% assign page_end = paginator.page | plus: 2 %}
|
|
39
|
+
{% endif %}
|
|
40
|
+
|
|
41
|
+
{% for index in (page_start..page_end) %}
|
|
42
|
+
{% if index == paginator.page %}
|
|
43
|
+
<li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | relative_url }}" class="disabled current">{{ index }}</a></li>
|
|
44
|
+
{% else %}
|
|
45
|
+
{% comment %} Distance from current page and this link {% endcomment %}
|
|
46
|
+
{% assign dist = paginator.page | minus: index %}
|
|
47
|
+
{% if dist < 0 %}
|
|
48
|
+
{% comment %} Distance must be a positive value {% endcomment %}
|
|
49
|
+
{% assign dist = 0 | minus: dist %}
|
|
50
|
+
{% endif %}
|
|
51
|
+
<li><a href="{{ site.paginate_path | replace: ':num', index | relative_url }}">{{ index }}</a></li>
|
|
52
|
+
{% endif %}
|
|
53
|
+
{% endfor %}
|
|
54
|
+
|
|
55
|
+
{% comment %} Ellipsis for truncated links {% endcomment %}
|
|
56
|
+
{% if pages_to_end > 3 %}
|
|
57
|
+
<li><a href="#" class="disabled">…</a></li>
|
|
58
|
+
{% endif %}
|
|
59
|
+
|
|
60
|
+
{% if paginator.page == paginator.total_pages %}
|
|
61
|
+
<li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
|
|
62
|
+
{% else %}
|
|
63
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | relative_url }}">{{ paginator.total_pages }}</a></li>
|
|
64
|
+
{% endif %}
|
|
65
|
+
|
|
66
|
+
{% comment %} Link next page {% endcomment %}
|
|
67
|
+
{% if paginator.next_page %}
|
|
68
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | relative_url }}">{{ site.data.text[site.locale].next | default: "Next" }}</a></li>
|
|
69
|
+
{% else %}
|
|
70
|
+
<li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.text[site.locale].next | default: "Next" }}</span></a></li>
|
|
71
|
+
{% endif %}
|
|
72
|
+
</ul>
|
|
73
|
+
</nav>
|
|
74
|
+
{% endif %}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{%- assign words_per_minute = site.words_per_minute | default: 200 -%}
|
|
2
|
+
{%- assign min_read = site.data.text[site.locale].min_read | default: 'min read' -%}
|
|
3
|
+
|
|
4
|
+
{% if entry %}
|
|
5
|
+
{% assign words = entry.content | strip_html | number_of_words %}
|
|
6
|
+
{% else %}
|
|
7
|
+
{% assign words = page.content | strip_html | number_of_words %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
|
|
10
|
+
<span class="read-time">
|
|
11
|
+
{%- if words < words_per_minute -%}
|
|
12
|
+
~1 {{ min_read }}
|
|
13
|
+
{%- else -%}
|
|
14
|
+
{{ words | divided_by:words_per_minute }} {{ min_read }}
|
|
15
|
+
{%- endif -%}
|
|
16
|
+
</span>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{%- case include.ratio -%}
|
|
2
|
+
{%- when '21:9' -%}
|
|
3
|
+
{%- assign ratio_class = 'responsive-embed-21by9' -%}
|
|
4
|
+
{%- when '16:9' -%}
|
|
5
|
+
{%- assign ratio_class = 'responsive-embed-16by9' -%}
|
|
6
|
+
{%- when '4:3' -%}
|
|
7
|
+
{%- assign ratio_class = 'responsive-embed-4by3' -%}
|
|
8
|
+
{%- when '1:1' -%}
|
|
9
|
+
{%- assign ratio_class = 'responsive-embed-1by1' -%}
|
|
10
|
+
{%- else -%}
|
|
11
|
+
{%- assign ratio_class = 'responsive-embed-16by9' -%}
|
|
12
|
+
{%- endcase -%}
|
|
13
|
+
|
|
14
|
+
<div class="responsive-embed {{ ratio_class }}">
|
|
15
|
+
<iframe src="{{ include.url }}" frameborder="0" allowfullscreen></iframe>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- if site.footer_scripts -%}
|
|
2
|
+
{%- for script in site.footer_scripts -%}
|
|
3
|
+
{%- if script contains "://" -%}
|
|
4
|
+
{%- capture script_path %}{{ script }}{% endcapture -%}
|
|
5
|
+
{%- else -%}
|
|
6
|
+
{%- capture script_path %}{{ script | absolute_url }}{% endcapture -%}
|
|
7
|
+
{%- endif -%}
|
|
8
|
+
<script src="{{ script_path }}"></script>
|
|
9
|
+
{%- endfor -%}
|
|
10
|
+
{%- else -%}
|
|
11
|
+
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
|
12
|
+
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
|
13
|
+
<script src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
|
|
14
|
+
{%- endif -%}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
{%- if site.owner.google.analytics %}
|
|
19
|
+
<!-- Asynchronous Google Analytics snippet -->
|
|
20
|
+
<script>
|
|
21
|
+
var _gaq = _gaq || [];
|
|
22
|
+
var pluginUrl =
|
|
23
|
+
'https://www.google-analytics.com/plugins/ga/inpage_linkid.js';
|
|
24
|
+
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
|
|
25
|
+
_gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']);
|
|
26
|
+
_gaq.push(['_trackPageview']);
|
|
27
|
+
|
|
28
|
+
(function() {
|
|
29
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
30
|
+
ga.src = 'https://stats.g.doubleclick.net/dc.js';
|
|
31
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
32
|
+
})();
|
|
33
|
+
</script>
|
|
34
|
+
{%- endif %}
|
|
35
|
+
|
|
36
|
+
{% if site.mathjax == true %}
|
|
37
|
+
<!-- MathJax -->
|
|
38
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
39
|
+
{% endif %}
|
|
40
|
+
|
|
41
|
+
{%- if page.layout == "search" -%}
|
|
42
|
+
{% include lunr-search-scripts.html %}
|
|
43
|
+
{%- endif -%}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<nav class="skip-links">
|
|
2
|
+
<h2 class="screen-reader-text">{{ site.data.text[site.locale].skip_links | default: 'Skip links' }}</h2>
|
|
3
|
+
<ul>
|
|
4
|
+
<li><a href="#primary-nav" class="screen-reader-shortcut">{{ site.data.text[site.locale].skip_primary_nav | default: 'Skip to primary navigation' }}</a></li>
|
|
5
|
+
<li><a href="#main" class="screen-reader-shortcut">{{ site.data.text[site.locale].skip_content | default: 'Skip to content' }}</a></li>
|
|
6
|
+
<li><a href="#footer" class="screen-reader-shortcut">{{ site.data.text[site.locale].skip_footer | default: 'Skip to footer' }}</a></li>
|
|
7
|
+
</ul>
|
|
8
|
+
</nav>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<div class="page-share">
|
|
2
|
+
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" class="btn btn--facebook btn--small"><i class="fab fa-fw fa-facebook" aria-hidden="true"></i> <span>{{ site.data.text[site.locale].share | default: 'Share' }}</span></a>
|
|
3
|
+
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" class="btn btn--twitter btn--small"><i class="fab fa-fw fa-twitter" aria-hidden="true"></i> <span>{{ site.data.text[site.locale].tweet | default: 'Tweet' }}</span></a>
|
|
4
|
+
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" class="btn btn--linkedin btn--small"><i class="fab fa-fw fa-linkedin" aria-hidden="true"></i> <span>LinkedIn</span></a>
|
|
5
|
+
<a href="https://reddit.com/submit?title={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" class="btn btn--reddit btn--small"><i class="fab fa-fw fa-reddit" aria-hidden="true"></i> <span>Reddit</span></a>
|
|
6
|
+
</div>
|
data/_includes/toc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{::options parse_block_html="true" /}
|
|
2
|
+
<div id="entry-table-of-contents" class="toc-wrapper">
|
|
3
|
+
<h2 id="toc-toggle" class="no_toc">
|
|
4
|
+
{{ site.data.text[site.locale].table_of_contents | default: 'Table of Contents' }} <i class="toc-toggle-icon fas fa-chevron-down"></i>
|
|
5
|
+
</h2>
|
|
6
|
+
1. toc
|
|
7
|
+
{:toc}
|
|
8
|
+
</div>
|
|
9
|
+
{::options parse_block_html="false" /}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
{{ content }}
|
|
6
|
+
|
|
7
|
+
<ul class="taxonomy-index">
|
|
8
|
+
{% assign categories_max = 0 %}
|
|
9
|
+
{% for category in site.categories %}
|
|
10
|
+
{% if category[1].size > categories_max %}
|
|
11
|
+
{% assign categories_max = category[1].size %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
{% endfor %}
|
|
14
|
+
{% for i in (1..categories_max) reversed %}
|
|
15
|
+
{% for category in site.categories %}
|
|
16
|
+
{% if category[1].size == i %}
|
|
17
|
+
<li>
|
|
18
|
+
<a href="#{{ category[0] | slugify }}">
|
|
19
|
+
<strong>{{ category[0] }}</strong> <span class="taxonomy-count">{{ i }}</span>
|
|
20
|
+
</a>
|
|
21
|
+
</li>
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% endfor %}
|
|
24
|
+
{% endfor %}
|
|
25
|
+
</ul>
|
|
26
|
+
|
|
27
|
+
{% assign categories_max = 0 %}
|
|
28
|
+
{% for category in site.categories %}
|
|
29
|
+
{% if category[1].size > categories_max %}
|
|
30
|
+
{% assign categories_max = category[1].size %}
|
|
31
|
+
{% endif %}
|
|
32
|
+
{% endfor %}
|
|
33
|
+
|
|
34
|
+
{% for i in (1..categories_max) reversed %}
|
|
35
|
+
{% for category in site.categories %}
|
|
36
|
+
{% if category[1].size == i %}
|
|
37
|
+
<section id="{{ category[0] | slugify | downcase }}" class="taxonomy-section">
|
|
38
|
+
<h2 class="taxonomy-title">{{ category[0] }}</h2>
|
|
39
|
+
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
|
40
|
+
{% for entry in category.last %}
|
|
41
|
+
{% include entry.html %}
|
|
42
|
+
{% endfor %}
|
|
43
|
+
</div>
|
|
44
|
+
<a href="#page-title" class="back-to-top">{{ site.data.text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a>
|
|
45
|
+
</section>
|
|
46
|
+
{% endif %}
|
|
47
|
+
{% endfor %}
|
|
48
|
+
{% endfor %}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<!--
|
|
3
|
+
So Simple Jekyll Theme 3.0.0
|
|
4
|
+
Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
|
|
5
|
+
Free for personal and commercial use under the MIT license
|
|
6
|
+
https://github.com/mmistakes/so-simple-theme/blob/master/LICENSE
|
|
7
|
+
-->
|
|
8
|
+
<html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" class="no-js">
|
|
9
|
+
{% include head.html %}
|
|
10
|
+
|
|
11
|
+
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %} {% if page.entries_layout == 'grid' %}page--wide{% endif %} {{ page.title | slugify }}">
|
|
12
|
+
{% include skip-links.html %}
|
|
13
|
+
{% include navigation.html %}
|
|
14
|
+
{% include masthead.html %}
|
|
15
|
+
|
|
16
|
+
{{ content }}
|
|
17
|
+
|
|
18
|
+
{% include footer.html %}
|
|
19
|
+
{% include scripts.html %}
|
|
20
|
+
</body>
|
|
21
|
+
|
|
22
|
+
</html>
|
data/_layouts/home.html
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
{{ content }}
|
|
6
|
+
|
|
7
|
+
<div class="entries-{{ page.entries_layout | default: 'list' }}">
|
|
8
|
+
{%- if site.plugins contains 'jekyll-paginate' and page.paginate or site.gems contains 'jekyll-paginate' and page.paginate -%}
|
|
9
|
+
{%- comment -%}
|
|
10
|
+
Add paginator.posts loop if jekyll-paginate plugin is enabled
|
|
11
|
+
and page.paginate == true
|
|
12
|
+
{%- endcomment -%}
|
|
13
|
+
{% include posts-paginated.html %}
|
|
14
|
+
{%- else -%}
|
|
15
|
+
{% include posts-limit.html %}
|
|
16
|
+
{%- endif -%}
|
|
17
|
+
</div>
|
data/_layouts/page.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<main id="main" class="main-content" aria-label="Content">
|
|
6
|
+
<article>
|
|
7
|
+
{% include page-image.html %}
|
|
8
|
+
<div class="page-wrapper">
|
|
9
|
+
<header class="page-header">
|
|
10
|
+
{% if page.id %}
|
|
11
|
+
{% assign title = page.title | markdownify | strip_html %}
|
|
12
|
+
{% else %}
|
|
13
|
+
{% assign title = page.title %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% if page.link %}
|
|
16
|
+
<h1 id="page-title" class="page-title"><a href="{{ page.link }}">{{ title }} <span class="link-arrow">→</span></a></h1>
|
|
17
|
+
{% else %}
|
|
18
|
+
<h1 id="page-title" class="page-title">{{ title }}</h1>
|
|
19
|
+
{% endif %}
|
|
20
|
+
</header>
|
|
21
|
+
<div class="page-content">
|
|
22
|
+
{{ content }}
|
|
23
|
+
|
|
24
|
+
{% if page.share %}
|
|
25
|
+
{% include social-share.html %}
|
|
26
|
+
{% endif %}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</article>
|
|
30
|
+
</main>
|
data/_layouts/post.html
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<main id="main" class="main-content" aria-label="Content">
|
|
6
|
+
<article class="h-entry">
|
|
7
|
+
{% include page-image.html %}
|
|
8
|
+
<div class="page-wrapper">
|
|
9
|
+
<header class="page-header">
|
|
10
|
+
{% assign title = page.title | markdownify | strip_html %}
|
|
11
|
+
{% if page.link %}
|
|
12
|
+
<h1 id="page-title" class="page-title p-name"><a href="{{ page.link }}">{{ title }} <span class="link-arrow">→</span></a></h1>
|
|
13
|
+
{% else %}
|
|
14
|
+
<h1 id="page-title" class="page-title p-name">{{ title }}</h1>
|
|
15
|
+
{% endif %}
|
|
16
|
+
</header>
|
|
17
|
+
|
|
18
|
+
<div class="page-sidebar">
|
|
19
|
+
{% include page-author.html %}
|
|
20
|
+
{% include page-categories.html %}
|
|
21
|
+
{% include page-tags.html %}
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="page-content">
|
|
25
|
+
<div class="e-content">
|
|
26
|
+
{{ content }}
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
{% if page.share %}
|
|
30
|
+
{% include social-share.html %}
|
|
31
|
+
{% endif %}
|
|
32
|
+
|
|
33
|
+
{% if site.disqus.shortname %}
|
|
34
|
+
{% include disqus-comments.html %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
{% include page-pagination.html %}
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</article>
|
|
41
|
+
</main>
|