jekyll-theme-polar 1.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.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +6 -0
  4. data/_config.yml +101 -0
  5. data/_includes/article/comment.html +5 -0
  6. data/_includes/article/info.html +8 -0
  7. data/_includes/article/origin.html +13 -0
  8. data/_includes/article/paginate.html +3 -0
  9. data/_includes/article/people.html +13 -0
  10. data/_includes/article/person_card.html +27 -0
  11. data/_includes/article/read_more.html +11 -0
  12. data/_includes/article/revise.html +8 -0
  13. data/_includes/article/title.html +9 -0
  14. data/_includes/article.html +19 -0
  15. data/_includes/config/date/long.html +12 -0
  16. data/_includes/config/date/short.html +17 -0
  17. data/_includes/config/empty/about.md +7 -0
  18. data/_includes/config/empty/common_listing.md +7 -0
  19. data/_includes/config/empty/homepage.md +7 -0
  20. data/_includes/config/empty/unconfig.md +7 -0
  21. data/_includes/display/date.html +19 -0
  22. data/_includes/display/year_range.html +11 -0
  23. data/_includes/footer.html +9 -0
  24. data/_includes/header.html +20 -0
  25. data/_includes/listing/archive.html +20 -0
  26. data/_includes/listing/docs.html +13 -0
  27. data/_includes/listing/posts.html +18 -0
  28. data/_includes/listing/projects.html +17 -0
  29. data/_includes/listing/tags.html +47 -0
  30. data/_includes/listing.html +9 -0
  31. data/_includes/menu/archive_tags.html +8 -0
  32. data/_includes/menu/demo_source.html +14 -0
  33. data/_includes/meta/base.html +7 -0
  34. data/_includes/meta/color.html +2 -0
  35. data/_includes/meta/facebook_og.html +16 -0
  36. data/_includes/meta/icon.html +2 -0
  37. data/_includes/meta/twitter_card.html +8 -0
  38. data/_includes/meta/verification.html +3 -0
  39. data/_includes/paginate/base.html +19 -0
  40. data/_includes/paginate/multiple.html +13 -0
  41. data/_includes/paginate/single.html +13 -0
  42. data/_includes/postload.html +2 -0
  43. data/_includes/preload.html +11 -0
  44. data/_includes/script/analytics.html +10 -0
  45. data/_includes/script/disqus.html +15 -0
  46. data/_includes/script/force_https.html +5 -0
  47. data/_includes/script/mathjax.html +6 -0
  48. data/_includes/script/onload.html +19 -0
  49. data/_includes/style/fonts.html +31 -0
  50. data/_includes/style/load_first.html +1 -0
  51. data/_includes/variables/article.liquid +19 -0
  52. data/_includes/variables/color.liquid +12 -0
  53. data/_includes/variables/fonts.liquid +21 -0
  54. data/_includes/variables/header.liquid +10 -0
  55. data/_includes/variables/homepage.liquid +13 -0
  56. data/_includes/variables/meta.liquid +71 -0
  57. data/_includes/variables/unconfig.liquid +5 -0
  58. data/_layouts/compress.html +10 -0
  59. data/_layouts/default.html +21 -0
  60. data/_layouts/doc.html +8 -0
  61. data/_layouts/empty/about.html +16 -0
  62. data/_layouts/empty/archive.html +17 -0
  63. data/_layouts/empty/docs.html +16 -0
  64. data/_layouts/empty/homepage.html +26 -0
  65. data/_layouts/empty/posts.html +18 -0
  66. data/_layouts/empty/projects.html +16 -0
  67. data/_layouts/empty/tags.html +17 -0
  68. data/_layouts/page.html +5 -0
  69. data/_layouts/post.html +10 -0
  70. data/_layouts/project.html +9 -0
  71. data/_sass/_article.scss +83 -0
  72. data/_sass/_base.scss +123 -0
  73. data/_sass/_classes.scss +249 -0
  74. data/_sass/_footer.scss +4 -0
  75. data/_sass/_header.scss +41 -0
  76. data/_sass/_mixins.scss +15 -0
  77. data/_sass/_variables.scss +35 -0
  78. data/_sass/highlight/custom.scss +4 -0
  79. data/_sass/highlight/github.scss +209 -0
  80. data/_sass/highlight/monokai.scss +210 -0
  81. data/_sass/normalize.scss +424 -0
  82. data/assets/AUTO_INSTALL/archive.html +6 -0
  83. data/assets/AUTO_INSTALL/docs.html +6 -0
  84. data/assets/AUTO_INSTALL/feed.xml +31 -0
  85. data/assets/AUTO_INSTALL/index.md +5 -0
  86. data/assets/AUTO_INSTALL/posts.html +8 -0
  87. data/assets/AUTO_INSTALL/projects.html +6 -0
  88. data/assets/AUTO_INSTALL/tags.html +6 -0
  89. data/assets/img/404.png +0 -0
  90. data/assets/img/north-pole.png +0 -0
  91. data/assets/img/polar-bear.png +0 -0
  92. data/assets/img/tired-bear.png +0 -0
  93. data/assets/style.scss +25 -0
  94. metadata +177 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5d2b56090836f5ed8179c100613848978912bbdcb1836d765061add3e90b9fa4
4
+ data.tar.gz: aeed98c6f005d5c56c0cffa002f9f83399cde36ed340c4f87fa19489ad48a95b
5
+ SHA512:
6
+ metadata.gz: 8a2c8c7d786a5749c9fe98b0f3b97fedbf7519f95229184e42e78ca5e592900bb26fd6ce3e73131aff0ade6ebeb05127fb5491a2b8d31a6f284a667ac0eb511e
7
+ data.tar.gz: 93f15636fcc3137e4024f192873e1c2e7c1a55f142633ba811416cf51ea732c043dea1107a96abf0892394f034b37633895d433fa325507cbc1abc40a9987850
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-2019 Nattawut Phetmak <http://about.me/neizod>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,6 @@
1
+ # Polar Jekyll Theme
2
+ White, clean, no JavaScript Jekyll Theme.
3
+
4
+ * 👉 Live preview at https://neizod.dev/polar/
5
+ * 👉 Screenshot:
6
+ <img src="/example/homepage.png" width="500" alt="Screenshot">
data/_config.yml ADDED
@@ -0,0 +1,101 @@
1
+ # User Config
2
+ # ===========
3
+ # fill/change these fields to match your own.
4
+
5
+ # Identity
6
+ # --------
7
+
8
+ title: A New Jekyll Site
9
+ description: Powered by Polar Theme
10
+
11
+ logo: "/assets/img/north-pole.png"
12
+ cover: "/assets/img/tired-bear.png"
13
+
14
+ baseurl:
15
+ url:
16
+
17
+ owner: polarbear
18
+ rights: All Right Reserved
19
+
20
+
21
+ # Social & Sharing
22
+ # ----------------
23
+
24
+ google:
25
+ analytics:
26
+ verification:
27
+
28
+ facebook:
29
+ username:
30
+ app_id:
31
+
32
+ twitter:
33
+ username:
34
+ large_img: sometimes
35
+
36
+ disqus:
37
+ username:
38
+
39
+
40
+ # Content Format
41
+ # --------------
42
+
43
+ timezone: Asia/Bangkok
44
+ mathjax: true
45
+
46
+
47
+
48
+ # Engine Config
49
+ # =============
50
+ # you shouldn't change this unless you really know what you're doing.
51
+
52
+ permalink: date
53
+
54
+ collections:
55
+ projects:
56
+ output: true
57
+ docs:
58
+ output: true
59
+
60
+ defaults:
61
+ - scope:
62
+ path: ""
63
+ type: pages
64
+ values:
65
+ layout: page
66
+ - scope:
67
+ path: ""
68
+ type: posts
69
+ values:
70
+ layout: post
71
+ - scope:
72
+ path: ""
73
+ type: projects
74
+ values:
75
+ layout: project
76
+ - scope:
77
+ path: ""
78
+ type: docs
79
+ values:
80
+ layout: doc
81
+
82
+ pagination:
83
+ enabled: true
84
+ per_page: 10
85
+ sort_reverse: true
86
+ permalink: /page:num.html
87
+
88
+ sass:
89
+ sass_dir: "_sass/"
90
+ style: compressed
91
+
92
+ exclude:
93
+ - README.md
94
+ - LICENSE.md
95
+ - CONTRIBUTING.md
96
+
97
+ plugins:
98
+ - jekyll-sitemap
99
+ - jekyll-paginate-v2
100
+
101
+ empty_array: []
@@ -0,0 +1,5 @@
1
+ {% if include.comment %}
2
+ <div class="comment">
3
+ {% include script/disqus.html %}
4
+ </div>
5
+ {% endif %}
@@ -0,0 +1,8 @@
1
+ <div class="flex align-center mobile-column">
2
+ {% if include.date %}
3
+ {% include display/date.html date=include.date format=include.format %}
4
+ {% endif %}
5
+ {% if include.tags %}
6
+ {% include listing/tags.html tags=include.tags %}
7
+ {% endif %}
8
+ </div>
@@ -0,0 +1,13 @@
1
+ {% if include.origin %}
2
+ <p><em>
3
+ {{ site.data.theme.text.post.origin }}
4
+ {% for each in include.origin %}
5
+ {% if each.url %}
6
+ <a href="{{ each.url }}">{{ each.name }}</a>
7
+ {% else %}
8
+ {{ each.name }}
9
+ {% endif %}
10
+ {% unless forloop.last %}/{% endunless %}
11
+ {% endfor %}
12
+ </em></p>
13
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ {% if include.paginate %}
2
+ {% include paginate/{{include.paginate}}.html %}
3
+ {% endif %}
@@ -0,0 +1,13 @@
1
+ {% if include.show_people %}
2
+ <div class="flex wrap">
3
+ {% if include.people %}
4
+ {% for item in include.people %}
5
+ {% assign handle = item | first %}
6
+ {% assign roles = item | last %}
7
+ {% include article/person_card.html handle=handle roles=roles %}
8
+ {% endfor %}
9
+ {% else %}
10
+ {% include article/person_card.html handle=site.owner roles="author" %}
11
+ {% endif %}
12
+ </div>
13
+ {% endif %}
@@ -0,0 +1,27 @@
1
+ {% capture NOOUT %}
2
+ {% assign person = site.data.people[include.handle] %}
3
+ {% assign display_name = include.handle %}
4
+ {% if person.handle %}
5
+ {% assign display_name = person.handle %}
6
+ {% endif %}
7
+ {% assign picture = person.picture %}
8
+ {% unless person.picture %}
9
+ {% assign picture = site.logo %} <!-- TODO make placholding picture for people -->
10
+ {% endunless %}
11
+ {% endcapture %}
12
+
13
+ <div class="person-card flex">
14
+ <div class="logo">
15
+ <img src="{{ picture | prepend: site.baseurl }}" width="72" height="72" />
16
+ </div>
17
+ <div class="info flexitem">
18
+ <p>
19
+ {% if person.url %}
20
+ <a href="{{ person.url }}">{{ display_name }}</a>
21
+ {% else %}
22
+ {{ display_name }}
23
+ {% endif %}
24
+ </p>
25
+ <p><em>{{ include.roles }}</em></p>
26
+ </div>
27
+ </div>
@@ -0,0 +1,11 @@
1
+ {% if include.url %}
2
+ <a href="{{ include.url | prepend: site.baseurl }}">{{ site.data.theme.text.excerpt.read_more }}</a>
3
+ {% if include.demo %}
4
+ {{ site.data.theme.text.excerpt.item_sep }}
5
+ <a href="{{ include.demo }}">{{ site.data.theme.text.project.demo }}</a>
6
+ {% endif %}
7
+ {% if include.source %}
8
+ {{ site.data.theme.text.excerpt.item_sep }}
9
+ <a href="{{ include.source }}">{{ site.data.theme.text.project.source }}</a>
10
+ {% endif %}
11
+ {% endif %}
@@ -0,0 +1,8 @@
1
+ {% if include.revise %}
2
+ <p style="margin-bottom: .0em"><em>{{ site.data.theme.text.post.revise }}</em></p>
3
+ <ul style="margin-top: .0em">
4
+ {% for each in include.revise %}
5
+ <li class="revise-item"><em>{{ each.date | date: site.data.theme.date.short }}</em>: {{ each.note | markdownify }}</li>
6
+ {% endfor %}
7
+ </ul>
8
+ {% endif %}
@@ -0,0 +1,9 @@
1
+ <div class="flex align-center mobile-column">
2
+ <h1>
3
+ {% if include.url %}
4
+ <a href="{{ include.url | prepend: site.baseurl }}">{{ include.title }}</a>
5
+ {% else %}
6
+ {{ include.title }}
7
+ {% endif %}
8
+ </h1>
9
+ </div>
@@ -0,0 +1,19 @@
1
+ {% include variables/article.liquid %}
2
+ {% if include.content %}
3
+ <article class="{% if include.url %}excerpt {% endif %}{{ include.class }}">
4
+ {% include article/title.html title=include.title url=include.url %}
5
+ {% include article/info.html tags=include.tags date=article-date format=article-format %}
6
+ {% unless include.url %}
7
+ {% include menu/demo_source.html demo=include.demo source=include.source %}
8
+ {% endunless %}
9
+ <div class="entry">
10
+ {{ include.content }}
11
+ {% include article/read_more.html url=include.url demo=include.demo source=include.source %}
12
+ {% include article/origin.html origin=include.origin %}
13
+ {% include article/revise.html revise=include.revise %}
14
+ {% include article/people.html people=include.people show_people=include.show_people %}
15
+ </div>
16
+ {% include article/paginate.html paginate=include.paginate %}
17
+ {% include article/comment.html comment=include.comment %}
18
+ </article>
19
+ {% endif %}
@@ -0,0 +1,12 @@
1
+ {{ include.date | date: "%R" }},
2
+ {% assign day_of_week = include.date | date: "%w" %}
3
+ {% case day_of_week %}
4
+ {% when "0" %} āthit
5
+ {% when "1" %} chan
6
+ {% when "2" %} angkhān
7
+ {% when "3" %} phut
8
+ {% when "4" %} phruehatsabodi
9
+ {% when "5" %} suk
10
+ {% when "6" %} sao
11
+ {% endcase %}
12
+ {% include config/date/short.html date=include.date %}
@@ -0,0 +1,17 @@
1
+ {{ include.date | date: "%e" }}
2
+ {% assign month = include.date | date: "%m" %}
3
+ {% case month %}
4
+ {% when "01" %} makara
5
+ {% when "02" %} kumbha
6
+ {% when "03" %} mīna
7
+ {% when "04" %} meṣa
8
+ {% when "05" %} vṛṣabha
9
+ {% when "06" %} mithuna
10
+ {% when "07" %} karkaṭa
11
+ {% when "08" %} sinha
12
+ {% when "09" %} kanyā
13
+ {% when "10" %} tulā
14
+ {% when "11" %} vṛścika
15
+ {% when "12" %} dhanu
16
+ {% endcase %}
17
+ {{ include.date | date: "%Y" }}
@@ -0,0 +1,7 @@
1
+ {% assign empty-title = "About Who?" %}
2
+ {% capture empty-content %}
3
+
4
+ The owner of this site does not yet provide "about me" informations.
5
+
6
+
7
+ {% endcapture %}
@@ -0,0 +1,7 @@
1
+ {% assign empty-title = include.list | prepend: "No " | append: "!" %}
2
+ {% capture empty-content %}
3
+
4
+ Since there are zero items in {{ include.list }}, the list shown here is empty.
5
+
6
+
7
+ {% endcapture %}
@@ -0,0 +1,7 @@
1
+ {% assign empty-title = "This site contains no post... yet." %}
2
+ {% capture empty-content %}
3
+
4
+ If you are the owner of this site, start by adding contents into `_posts` or `_projects`.
5
+
6
+
7
+ {% endcapture %}
@@ -0,0 +1,7 @@
1
+ {% assign empty-title = "This site is not config... yet." %}
2
+ {% capture empty-content %}
3
+
4
+ If you are the owner of this site, start by fil in the blanks in file `_config.yml`, then tell Jekyll to rebuild your site.
5
+
6
+
7
+ {% endcapture %}
@@ -0,0 +1,19 @@
1
+ <div class="date">
2
+ {% if include.format == 'long' %}
3
+ {% if site.data.theme.date.long %}
4
+ {{ include.date | date: site.data.theme.date.long }}
5
+ {% else %}
6
+ {% include config/date/long.html date=include.date %}
7
+ {% endif %}
8
+ {% elsif include.format == 'short' %}
9
+ {% if site.data.theme.date.short %}
10
+ {{ include.date | date: site.data.theme.date.short }}
11
+ {% else %}
12
+ {% include config/date/short.html date=include.date %}
13
+ {% endif %}
14
+ {% elsif include.format == 'month-day' %}
15
+ {{ include.date | date: "%B %e" }}
16
+ {% else %}
17
+ {{ include.date }}
18
+ {% endif %}
19
+ </div>
@@ -0,0 +1,11 @@
1
+ {% if site.posts %}
2
+ {% assign latest_year = site.posts.first.date | date: "%Y" %}
3
+ {% assign early_year = site.posts.last.date | date: "%Y" %}
4
+ {% if latest_year == early_year %}
5
+ {{ latest_year }}
6
+ {% else %}
7
+ {{ early_year }}-{{ latest_year }}
8
+ {% endif %}
9
+ {% else %}
10
+ {{ site.time | date: "%Y" }}
11
+ {% endif %}
@@ -0,0 +1,9 @@
1
+ <footer>
2
+ <h5>
3
+ {{ site.owner }} &copy;
4
+ {% include display/year_range.html %}
5
+ {{ site.rights }},
6
+ <a href="{{ site.baseurl }}/feed.xml">subscribe</a>.
7
+ </h5>
8
+ <h6><a href="//github.com/neizod/polar">Powered by cute little Polar Bear</a></h6>
9
+ </footer>
@@ -0,0 +1,20 @@
1
+ {% include variables/header.liquid %}
2
+ <header class="flex align-center mobile-column">
3
+ <div class="logo">
4
+ <a href="{{ site.baseurl }}/">
5
+ <img src="{{ site.logo | prepend: site.baseurl }}" width="72" height="72" />
6
+ </a>
7
+ </div>
8
+ <div class="info flexitem fill">
9
+ <h1><a href="{{ site.baseurl }}/">{{ header-title }}</a></h1>
10
+ <h2>{{ header-description }}</h2>
11
+ </div>
12
+ <nav>
13
+ {% for it in site.data.theme.navigation.menu %}
14
+ <a href="{{ it.path | prepend: site.baseurl }}">{{ it.name }}</a>
15
+ {% unless forloop.last %}
16
+ {{ site.data.theme.text.menu.item_sep }}
17
+ {% endunless %}
18
+ {% endfor %}
19
+ </nav>
20
+ </header>
@@ -0,0 +1,20 @@
1
+ <div class="archive">
2
+ <h1>{{ page.title }}</h1>
3
+ {% for post in site.posts %}
4
+ {% assign this_year = post.date | date: "%Y" %}
5
+ {% if prev_year != this_year %}
6
+ <div class="flex mobile-column">
7
+ <div class="mini-date" style="min-width: 200px; flex-basis: auto;">
8
+ <h2>{{ this_year }}</h2>
9
+ </div>
10
+ </div>
11
+ {% endif %}
12
+ {% assign prev_year = this_year %}
13
+ <div class="flex mobile-column">
14
+ {% include display/date.html date=post.date format='month-day' %}
15
+ <div class="mini-title">
16
+ <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
17
+ </div>
18
+ </div>
19
+ {% endfor %}
20
+ </div>
@@ -0,0 +1,13 @@
1
+ {% capture NOOUT %}
2
+ {% if site.docs %}
3
+ {% assign sorted_docs = site.docs | sort: 'order' %}
4
+ {% else %}
5
+ {% assign sorted_docs = site.empty_array %}
6
+ {% endif %}
7
+ {% endcapture %}
8
+ <h2>Documents</h2>
9
+ <ol>
10
+ {% for doc in sorted_docs %}
11
+ <li><a href="{{ doc.url | prepend: site.baseurl }}">{{ doc.title }}</a></li>
12
+ {% endfor %}
13
+ </ol>
@@ -0,0 +1,18 @@
1
+ {% if include.feature %}
2
+ {% assign posts = site.posts %}
3
+ {% assign quota = include.feature.latest | default: 1 %}
4
+ {% else %}
5
+ {% assign posts = paginator.posts %}
6
+ {% assign quota = -1 %}
7
+ {% endif %}
8
+ {% for post in posts %}
9
+ {% if quota != 0 or include.feature.list contains post.id %}
10
+ {% include article.html class='post'
11
+ title=post.title content=post.excerpt
12
+ date=post.date tags=post.tags
13
+ url=post.url quota=quota %}
14
+ {% if quota > 0 %}
15
+ {% assign quota = quota | minus: 1 %}
16
+ {% endif %}
17
+ {% endif %}
18
+ {% endfor %}
@@ -0,0 +1,17 @@
1
+ {% if include.feature %}
2
+ {% assign quota = include.feature.latest | default: 1 %}
3
+ {% else %}
4
+ {% assign quota = -1 %}
5
+ {% endif %}
6
+ {% for project in site.projects reversed %}
7
+ {% if quota != 0 or include.feature.list contains project.id %}
8
+ {% include article.html class='post'
9
+ title=project.title content=project.excerpt
10
+ demo=project.demo source=project.source
11
+ display_date=project.display_date
12
+ url=project.url quota=quota %}
13
+ {% if quota > 0 %}
14
+ {% assign quota = quota | minus: 1 %}
15
+ {% endif %}
16
+ {% endif %}
17
+ {% endfor %}
@@ -0,0 +1,47 @@
1
+ {% capture NOOUT %}
2
+ {% assign prepath = "#" %}
3
+ {% if include.tags %}
4
+ {% assign tags = include.tags %}
5
+ {% assign prepath = prepath | prepend: "/tags.html" | prepend: site.baseurl %}
6
+ {% assign div_class = 'tags' %}
7
+ {% else %}
8
+ {% assign tags = site.tags %}
9
+ {% assign div_class = 'posts' %}
10
+ {% endif %}
11
+ {% endcapture %}
12
+
13
+ {% unless include.tags %}
14
+ <div class="posts">
15
+ {% for tag in site.tags %}
16
+ <h2 class="target" id="{{ tag | first | slugify }}">{{ tag | first }}</h2>
17
+ {% endfor %}
18
+ <ul>
19
+ {% for post in site.posts %}
20
+ <li class="hidden{% for tag in post.tags %} usertag-{{ tag | slugify }}{% endfor %}">
21
+ <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
22
+ </li>
23
+ {% endfor %}
24
+ </ul>
25
+ </div>
26
+ <style>
27
+ {% for tag in site.tags %}
28
+ .target#{{ tag | first | slugify }}:is(:target) ~ ul li.usertag-{{ tag | first | slugify }} { display: list-item; }
29
+ {% endfor %}
30
+ </style>
31
+ {% endunless %}
32
+
33
+ <div class="{{ div_class }}">
34
+ {% unless include.tags %}
35
+ <h2>{{ page.title }}</h2>
36
+ {% endunless %}
37
+ <div class="flex wrap">
38
+ {% for tag in tags %}
39
+ {% assign tag_title = tag | first | default: tag %}
40
+ {% assign tag_size = tag | last | size %}
41
+ <div class="tag-item" style="order: -{{ tag_size }};">
42
+ <a href="{{ tag_title | slugify | prepend: prepath }}">{{ tag_title }}{% if tag_size > 0 %} ({{ tag_size }}){% endif %}</a>
43
+ <!--{% unless forloop.last %},{% endunless %}-->
44
+ </div>
45
+ {% endfor %}
46
+ </div>
47
+ </div>
@@ -0,0 +1,9 @@
1
+ {% if include.selection %}
2
+ <div class="posts">
3
+ {% for item in include.selection %}
4
+ {% assign label = item | first | default: item %}
5
+ {% assign feature = include.selection[label] %}
6
+ {% include listing/{{label}}.html feature=feature %}
7
+ {% endfor %}
8
+ </div>
9
+ {% endif %}
@@ -0,0 +1,8 @@
1
+ <div class="submenu info flex mobile-column">
2
+ <div class="primary flexitem fill">
3
+ <a href="{{ "/archive.html" | prepend: site.baseurl }}">{{ site.data.theme.text.post.archive }}</a>
4
+ </div>
5
+ <div class="secondary flexitem fill">
6
+ <a href="{{ "/tags.html" | prepend: site.baseurl }}">{{ site.data.theme.text.post.tags }}</a>
7
+ </div>
8
+ </div>
@@ -0,0 +1,14 @@
1
+ {% if include.demo or include.source %}
2
+ <div class="submenu info flex mobile-column">
3
+ {% if include.demo %}
4
+ <div class="primary flexitem fill">
5
+ <a href="{{ include.demo }}">{{ site.data.theme.text.project.demo }}</a>
6
+ </div>
7
+ {% endif %}
8
+ {% if include.source %}
9
+ <div class="secondary flexitem fill">
10
+ <a href="{{ include.source }}">{{ site.data.theme.text.project.source }}</a>
11
+ </div>
12
+ {% endif %}
13
+ </div>
14
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ <meta charset="utf-8">
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <title>{{ meta-html_title }}</title>
5
+ <meta name="description" content="{{ meta-description }}">
6
+ <link rel="canonical" href="{{ meta-url }}">
7
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
@@ -0,0 +1,2 @@
1
+ {% include variables/color.liquid %}
2
+ <meta name="theme-color" content="{{ color-main }}" />
@@ -0,0 +1,16 @@
1
+ <meta property="og:title" content="{{ meta-title }}" />
2
+ <meta property="og:description" content="{{ meta-description }}" />
3
+ <meta property="og:site_name" content="{{ site.title }}" />
4
+ <meta property="og:url" content="{{ meta-url }}" />
5
+ <meta property="og:type" content="{{ meta-type }}" />
6
+ {% if meta-vid %}
7
+ <meta property="og:image" content="{{ meta-vid | prepend: "https://i.ytimg.com/vi/" | append: "/sddefault.jpg" }}" />
8
+ {% elsif meta-img %}
9
+ <meta property="og:image" content="{{ meta-img | prepend: site.url }}" />
10
+ {% endif %}
11
+ {% if site.facebook.app_id %}
12
+ <meta property="fb:app_id" content="{{ site.facebook.app_id }}" />
13
+ {% endif %}
14
+ {% if site.facebook.username %}
15
+ <meta property="article:publisher" content="{{ site.facebook.username }}" />
16
+ {% endif %}
@@ -0,0 +1,2 @@
1
+ <link rel="icon" href="{{ "/favicon.ico" | prepend: site.baseurl }}" />
2
+ <link rel="icon" sizes="256x256" href="{{ site.logo | prepend: site.baseurl }}" />
@@ -0,0 +1,8 @@
1
+ {% if meta-twitter_large_img %}
2
+ <meta name="twitter:card" content="summary_large_image" />
3
+ {% else %}
4
+ <meta name="twitter:card" content="summary" />
5
+ {% endif %}
6
+ {% if site.twitter.username %}
7
+ <meta name="twitter:site" content="{{ site.twitter.username | remove: "@" | prepend: "@" }}" />
8
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ {% if site.google.verification %}
2
+ <meta name="google-site-verification" content="{{ site.google.verification }}" />
3
+ {% endif %}
@@ -0,0 +1,19 @@
1
+ <div class="pagination flex align-center">
2
+ <div class="flexitem fill text-left">
3
+ {% if left_path %}
4
+ <a href="{{ left_path | prepend: site.baseurl }}">
5
+ {{ site.data.theme.text.paginate.left_symbol }} {{ left_text }}
6
+ </a>
7
+ {% endif %}
8
+ </div>
9
+ <div class="flexitem fill">
10
+ {{ center_text }}
11
+ </div>
12
+ <div class="flexitem fill text-right">
13
+ {% if right_path %}
14
+ <a href="{{ right_path | prepend: site.baseurl }}">
15
+ {{ right_text }} {{ site.data.theme.text.paginate.right_symbol }}
16
+ </a>
17
+ {% endif %}
18
+ </div>
19
+ </div>
@@ -0,0 +1,13 @@
1
+ {% if site.data.theme.navigation.paginate.older == 'left' %}
2
+ {% assign left_path = paginator.next_page_path %}
3
+ {% assign left_text = site.data.theme.text.paginate.next_page %}
4
+ {% assign right_path = paginator.previous_page_path %}
5
+ {% assign right_text = site.data.theme.text.paginate.prev_page %}
6
+ {% else %}
7
+ {% assign left_path = paginator.previous_page_path %}
8
+ {% assign left_text = site.data.theme.text.paginate.prev_page %}
9
+ {% assign right_path = paginator.next_page_path %}
10
+ {% assign right_text = site.data.theme.text.paginate.next_page %}
11
+ {% endif %}
12
+ {% capture center_text %}{{ site.data.theme.text.paginate.at_page }}{{ paginator.page }}{{ site.data.theme.text.paginate.of_page }}{{ paginator.total_pages }}{% endcapture %}
13
+ {% include paginate/base.html %}