jekyll-theme-cadre 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +319 -0
  4. data/_includes/about.html +23 -0
  5. data/_includes/archive-by-tagories.html +101 -0
  6. data/_includes/archive-by-years.html +36 -0
  7. data/_includes/back-to-top.html +6 -0
  8. data/_includes/categories.html +27 -0
  9. data/_includes/copyright.html +9 -0
  10. data/_includes/custom-head.html +6 -0
  11. data/_includes/disqus.html +17 -0
  12. data/_includes/footer.html +26 -0
  13. data/_includes/google-analytics.html +9 -0
  14. data/_includes/head.html +26 -0
  15. data/_includes/header.html +39 -0
  16. data/_includes/katex.html +15 -0
  17. data/_includes/mathjax.html +2 -0
  18. data/_includes/other-posts.html +33 -0
  19. data/_includes/paginator.html +25 -0
  20. data/_includes/post-cards.html +28 -0
  21. data/_includes/powered-by.html +5 -0
  22. data/_includes/recent-posts.html +16 -0
  23. data/_includes/social.html +7 -0
  24. data/_includes/toc-div.html +6 -0
  25. data/_includes/toc.html +182 -0
  26. data/_layouts/archive.html +34 -0
  27. data/_layouts/default.html +30 -0
  28. data/_layouts/home.html +20 -0
  29. data/_layouts/page.html +8 -0
  30. data/_layouts/post.html +73 -0
  31. data/_plugins/_anchor_ref.rb +14 -0
  32. data/_plugins/_capitalize_all.rb +13 -0
  33. data/_sass/cadre/_about.scss +3 -0
  34. data/_sass/cadre/_archive.scss +17 -0
  35. data/_sass/cadre/_base.scss +149 -0
  36. data/_sass/cadre/_category-cards.scss +10 -0
  37. data/_sass/cadre/_code.scss +66 -0
  38. data/_sass/cadre/_footer.scss +7 -0
  39. data/_sass/cadre/_functions.scss +9 -0
  40. data/_sass/cadre/_header.scss +67 -0
  41. data/_sass/cadre/_highlight-light.scss +92 -0
  42. data/_sass/cadre/_home.scss +3 -0
  43. data/_sass/cadre/_layout.scss +0 -0
  44. data/_sass/cadre/_main.scss +17 -0
  45. data/_sass/cadre/_pagination.scss +4 -0
  46. data/_sass/cadre/_post-cards.scss +7 -0
  47. data/_sass/cadre/_post.scss +28 -0
  48. data/_sass/cadre/_powered-by.scss +0 -0
  49. data/_sass/cadre/_predefined.scss +0 -0
  50. data/_sass/cadre/_toc.scss +66 -0
  51. data/_sass/cadre/_variables.scss +49 -0
  52. data/_sass/cadre/custom-styles.scss +2 -0
  53. data/_sass/cadre/custom-variables.scss +1 -0
  54. data/_sass/cadre/initialize.scss +41 -0
  55. data/assets/css/bootstrap.min.css +7 -0
  56. data/assets/css/bootstrap.min.css.map +1 -0
  57. data/assets/css/open-color.css +343 -0
  58. data/assets/css/styles.scss +4 -0
  59. data/assets/images/Cadre.png +0 -0
  60. data/assets/images/favicon.png +0 -0
  61. data/assets/js/adjustAnchorLink.js +17 -0
  62. data/assets/js/bootstrap.bundle.min.js +7 -0
  63. data/assets/js/bootstrap.bundle.min.js.map +1 -0
  64. data/assets/js/liveTOCScroll.js +23 -0
  65. data/assets/js/main.js +32 -0
  66. metadata +206 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a88bcb21f63ce9964b7ea30db504a69902ec8da2687cdd8d28b630e08660e471
4
+ data.tar.gz: 6dabf8a2909a15d553482665334803e5570e35dfdb8a26d4018d02351a1aa0f4
5
+ SHA512:
6
+ metadata.gz: 5815ed1080f9d745ad5754406cab9e1cd2fbe7ae3a773f276dce29a4f1c37dd8af94ebfe8d975ae013ea8c0d922cdcab747fb455fb312c61ff7b377ba66e7dae
7
+ data.tar.gz: 568ab317b560b255bf16a5bbed52eab3dda8075a0871e2570832de47b84495de3e6ea887adda78f0d8f24b9cea9d2efd49f86f2495783f3bbff82256ac17d61f
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 sziv2p
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,319 @@
1
+ # Cadre <!-- omit in toc -->
2
+
3
+ Cadre is a responsive, modern Jekyll theme for bloggers. This theme is designed to come with good defaults including an archive and categories page.
4
+
5
+ This is a fork of the excellent [scaffold theme](https://github.com/sziv2p/jekyll-theme-scaffold), completely redesigned with Bootstrap, and added KaTex support for improved mathematical typesetting.
6
+
7
+ ## Screenshots
8
+
9
+ #### Homepage
10
+ ![Homepage](https://stephenlee.info/jekyll-theme-cadre/assets/images/screenshot-home.png)
11
+
12
+ #### Categories
13
+ Just add a `./categories.html` file in the root of your directory with yml as specified below!
14
+
15
+ ![Categories](https://stephenlee.info/jekyll-theme-cadre/assets/images/screenshot-categories.png)
16
+
17
+ #### Post
18
+ Support for code and mathematical typesetting, table of contents with highlighted scroll, and more.
19
+ ![Post](https://stephenlee.info/jekyll-theme-cadre/assets/images/screenshot-post.png)
20
+
21
+ ## Features (Not a Complete List) <!-- omit in toc -->
22
+
23
+ - [Bootstrap](https://getbootstrap.com/)
24
+ - [Open Color](https://yeun.github.io/open-color/)
25
+ - [Font Awesome](https://fontawesome.com/)
26
+ - Archive implemented by pure Liquid
27
+ - Pagination, via [`jekyll-paginate`](https://rubygems.org/gems/jekyll-paginate)
28
+ - TOC, via [`jekyll-toc`](https://github.com/allejo/jekyll-toc)
29
+ - [Jekyll Feed](https://github.com/jekyll/jekyll-feed/)
30
+ - [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/) - [Jekyll Sitemap](https://github.com/jekyll/jekyll-sitemap/)
31
+ - [Google Analytics](https://analytics.google.com/)
32
+ - [Disqus](https://disqus.com/)
33
+ - [MathJax](https://www.mathjax.org/)
34
+ - [Katex](https://katex.org/)
35
+
36
+ ## Table of Contents <!-- omit in toc -->
37
+
38
+ - [Installation](#installation)
39
+ - [Usage](#usage)
40
+ - [Global Configuration](#global-configuration)
41
+ - [Post Configuration](#post-configuration)
42
+ - [Homepage](#homepage)
43
+ - [Archive](#archive)
44
+ - [Categories](#categories)
45
+ - [Navigation](#navigation)
46
+ - [Social Links](#social-links)
47
+ - [Archive](#archive)
48
+ - [Custom Styling](#custom-styling)
49
+ - [Custom Head](#custom-head)
50
+ - [Contributing](#contributing)
51
+ - [Development](#development)
52
+ - [License](#license)
53
+
54
+ ## Installation
55
+
56
+ Add this line to your Jekyll site's `Gemfile`:
57
+
58
+ ```ruby
59
+ # Gemfile
60
+
61
+ gem "jekyll-theme-cadre"
62
+ ```
63
+
64
+ And add this line to your Jekyll site's `_config.yml`:
65
+
66
+ ```yaml
67
+ # _config.yml
68
+
69
+ theme: jekyll-theme-cadre
70
+ ```
71
+
72
+ And then execute:
73
+
74
+ ```bash
75
+ $ bundle
76
+ ```
77
+
78
+ Or install it yourself as:
79
+
80
+ ```bash
81
+ $ gem install jekyll-theme-cadre
82
+ ```
83
+
84
+ ### Github Pages
85
+ If you want to use this theme on GitHub Pages, you can do that via `jekyll-remote-theme`.
86
+
87
+ 1. Import `jekyll-remote-theme` in your `Gemfile`:
88
+
89
+ ```ruby
90
+ # Gemfile
91
+
92
+ gem "jekyll-remote-theme"
93
+ ```
94
+
95
+ 2. Add these lines to your `_config.yml`:
96
+
97
+ ```yml
98
+ # _config.yml
99
+
100
+ plugins:
101
+ - jekyll-remote-theme
102
+
103
+ remote_theme: slee981/jekyll-theme-cadre
104
+ ```
105
+
106
+ ## Usage
107
+
108
+ The main usage of this theme is described in detail below. If you find the document difficult to understand or not specific enough, you can also use the [`gh-pages`](https://github.com/slee981/jekyll-theme-cadre/tree/gh-pages) branch of this repository as an example to learn how to use this theme.
109
+
110
+ ### Global Configuration
111
+
112
+ | Variable | Type | Default | Specification |
113
+ | -------- | ---- | ------- | ------------- |
114
+ | `title` | String | --- | The title of the website |
115
+ | `description` | String | --- | A description of you or the blog. Alias for "about" |
116
+ | `about` | String | --- | About you or about the blog |
117
+ | `about_img` | Filepath | --- | Image to display in the "About" section |
118
+ | `navbar_img` | Filepath | --- | Image to display in the top navbar |
119
+ | `favicon_img` | Filepath | --- | Image to display in browser tab |
120
+ | `paginate` | Number | --- | How many posts to show on the home page |
121
+ | `exclude_powered_by` | Boolean | false | Remove the "powered by..." credit in the footer |
122
+ | `google_analytics` | String | --- | Google Analytics tracking ID |
123
+ | `disqus` | String | --- | Disqus short name |
124
+
125
+ ### Post Configuration
126
+
127
+ | Variable | Type | Default | Specification |
128
+ | -------- | ---- | ------- | ------------- |
129
+ | `description` | String | --- | A description of the current post |
130
+ | `author` | String or Array | --- | The author name(s) of the post |
131
+ | `mathjax` | Boolean | `false` | Enable MathJax on this page |
132
+ | `katex` | Boolean | `false` | Enable KaTex on this page |
133
+ | `comments` | Boolean | `true` | Enable the Disqus comment system |
134
+ | `toc` | Boolean | `false` | Enable the TOC |
135
+
136
+ ### Homepage
137
+
138
+ You can create a homepage for your blog by setting `layout: home` in your `index.html`. No other code is needed.
139
+
140
+ ```html
141
+ <!-- ./index.html -->
142
+ ---
143
+ layout: home
144
+ ---
145
+ ```
146
+
147
+ ### Archive
148
+
149
+ Cadre supports built-in archive pages. If you want to archive posts by years, you can create a page named `./archive.html` and put the following code in it:
150
+
151
+ ```yml
152
+ ---
153
+ title: Archive
154
+ layout: archive
155
+ type: years
156
+ permalink: archive.html
157
+ ---
158
+ ```
159
+
160
+ ### Categories
161
+
162
+ By default, `Cadre` supports category tracking and searching. **It is highly recommended to add this page**, as category tracking widgets are supported by default. To use:
163
+
164
+ 1. Create a `_data/navigation.yml` file with the contents shown above.
165
+ 2. Denote categories in your post with metadata in the header:
166
+ ```html
167
+ ---
168
+ <!-- ./_posts/2021-01-08-example-post.md -->
169
+
170
+ layout: post
171
+ categories: [General, Tools]
172
+ ...
173
+ ---
174
+ ```
175
+ 3. Create a page `archive.html` in the root directory. Similar to the archive setup, create the file:
176
+ ```html
177
+ ---
178
+ <!-- ./archive.html -->
179
+
180
+ title: Categories
181
+ layout: archive
182
+ type: categories
183
+ permalink: categories.html
184
+ ---
185
+ ```
186
+
187
+ Similarly, if you want to archive posts by tags, you can set the `type` property as `tags`.
188
+
189
+ ### Navigation
190
+
191
+ You can configure the navigation of the website by creating a file `_data/navigation.yml` in your repository, and put some data such as below into it. By default, this theme comes with pages for `catgories.html` and `archive.html`.
192
+
193
+ ```yml
194
+ # _data/navigation.yml
195
+ - name: Home
196
+ link: index.html
197
+ - name: Categories
198
+ link: categories.html
199
+ - name: Archive
200
+ link: archive.html
201
+ ```
202
+
203
+ ### Social Links
204
+
205
+ Scaffold allows you to show social links on the website, all you need to do is creating a file `_data/social.yml`, for example,
206
+
207
+ ```yml
208
+ # _data/social.yml
209
+ - name: Email
210
+ link: mailto:smlee.981@gmail.com
211
+ icon: fas fa-envelope
212
+ - name: Twitter
213
+ link: https://twitter.com/slee981
214
+ icon: fab fa-twitter
215
+ - name: GitHub
216
+ link: https://github.com/slee981
217
+ icon: fab fa-github
218
+ ```
219
+
220
+ The `icon` property means a [Font Awesome](https://fontawesome.com/) class, and you can select any one you like.
221
+
222
+ ### Custom Styling
223
+
224
+ You can easily override the default settings. To override variables, create three new fies (and the corresponding folders, as needed)
225
+
226
+ ```bash
227
+ $ mkdir _sass _sass/cadre assets assets/css
228
+ $
229
+ $ touch _sass/cadre/custom-variables.scss
230
+ $ touch _sass/cadre/custom-styles.scss
231
+ $ touch assets/css/style.scss
232
+ ```
233
+
234
+ In your favorite text editor, you can change any of the following default values:
235
+
236
+ ```scss
237
+ /* in "./_sass/cadre/custom-variables.scss" */
238
+
239
+ // base nav logo image size
240
+ $navbar-img-height: 45px;
241
+ $navbar-img-width: 150px;
242
+
243
+ // colors
244
+ $tan: rgb(255, 246, 231);
245
+ $beige: rgb(255, 248, 238);
246
+ $cream: rgb(248, 247, 245);
247
+
248
+ $site-primary: rgb(214, 12, 12); // primary site color
249
+ $site-secondary: rgb(119, 0, 0); // secondary site color
250
+ $site-tertiary: var(--oc-gray-6); // from open-colors.scss
251
+
252
+ $body-bg: $cream; // main background color
253
+ $math-bg: $beige; // katex math background color
254
+ $nav-bg: var(--oc-white); // navbar background color
255
+ $footer-bg: var(--oc-gray-1); // footer background color
256
+ $card-bg: var(--oc-white); // card background color
257
+ $code-bg: var(--oc-gray-1); // code background color
258
+ $post-bg: var(--oc-white); // actual post background color
259
+
260
+ ...
261
+ ```
262
+
263
+ And so on. See code for more complete options. Similarly you can override any class or id settings as follows:
264
+
265
+ ```scss
266
+ /* in "./_sass/cadre/custom-styles.scss" */
267
+
268
+ .navbar {
269
+ // your custom navbar style
270
+ padding: 5% 15%;
271
+ }
272
+ ```
273
+
274
+ Finally, we reload all of the style as follows in your `assets/css/style.scss` file:
275
+
276
+ ```scss
277
+ // in "./assets/css/style.scss"
278
+ ---
279
+ ---
280
+
281
+ @import "cadre/initialize";
282
+ ```
283
+
284
+ The front matter dashes at the very beginning can remain empty. The directive to initialize will automatically load your custom overrides when available.
285
+
286
+ Your website should now reflect these changes.
287
+
288
+ ### Custom Head
289
+
290
+ You can insert custom code easily into the head by creating a file `_includes/custom-head.html` and adding your code.
291
+
292
+ ```html
293
+ <!-- ./_includes/custom-head.html -->
294
+
295
+ <script>
296
+ console.log("This is my custom head");
297
+ </script>
298
+ ```
299
+
300
+ ## Contributing
301
+
302
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/slee981/jekyll-theme-cadre](https://github.com/slee981/jekyll-theme-cadre).
303
+
304
+ ## Development
305
+
306
+ To set up your environment to develop this theme, run `bundle install`.
307
+
308
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
309
+
310
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
311
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-cadre.gemspec` accordingly.
312
+
313
+ ## Acknowledgment
314
+
315
+ As mentioned above, this project is a fork of [https://github.com/sziv2p/jekyll-theme-scaffold](https://github.com/sziv2p/jekyll-theme-scaffold). As such, credit and appreciation goes to anyone who contributed to that project. Much of the "scaffolding" of this project was left untouched.
316
+
317
+ ## License
318
+
319
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,23 @@
1
+ <div class="card">
2
+ <div class="card-body">
3
+ <h3 class="card-title text-center">About</h3>
4
+ {% if site.about %}
5
+ <p class="card-text text-center">
6
+ {{ site.about }}
7
+ </p>
8
+ {% else %}
9
+ <p class="card-text text-center">
10
+ {% if site.description %}
11
+ {{ site.description }}
12
+ {% else %}
13
+ This is my blog, powered by Jekyll and Cadre!
14
+ {% endif %}
15
+ </p>
16
+ {% endif %}
17
+ </div>
18
+ {% if site.about_img %}
19
+ <div class="d-flex justify-content-center">
20
+ <img class="card-img-bottom p-4" src="{{ site.about_img | relative_url }}" alt="Site image">
21
+ </div>
22
+ {% endif %}
23
+ </div>
@@ -0,0 +1,101 @@
1
+ {%- if page.type == 'categories' -%}
2
+ {%- assign taxonomies = site.categories -%}
3
+ {%- elsif page.type == 'tags' -%}
4
+ {%- assign taxonomies = site.tags -%}
5
+ {%- else -%}
6
+ {%- assign taxonomies = none -%}
7
+ {%- endif -%}
8
+
9
+ {%- assign max_count = 0 -%}
10
+ {%- for taxonomy in taxonomies -%}
11
+ {%- assign posts = taxonomy[1] -%}
12
+ {%- if posts.size > max_count -%}
13
+ {%- assign max_count = posts.size -%}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+
17
+ <div class="category-tags d-flex flex-wrap justify-content-center">
18
+ <!-- TODO: clean this up, it's brutal -->
19
+ {%- for i in (1..max_count) reversed -%}
20
+ {%- for taxonomy in taxonomies -%}
21
+ {%- assign taxonomy_name = taxonomy[0] -%}
22
+ {%- assign slugified_taxonomy_name = taxonomy_name | slugify -%}
23
+ {%- assign posts = taxonomy[1] -%}
24
+ {%- assign link = page.permalink -%}
25
+ {%- if posts.size == i -%}
26
+ {% capture anchor_url %}{{ link }}#{{ slugified_taxonomy_name }}{% endcapture %}
27
+ {% if page.type == 'categories' %}
28
+ {% assign taxonomy_name_list = taxonomy_name | split: ' ' %}
29
+ {% capture capitalized_taxonomy_name %}
30
+ {% for word in taxonomy_name_list %}
31
+ {{ word | capitalize }}
32
+ {% endfor %}
33
+ {% endcapture %}
34
+ {% endif %}
35
+ <a class="card-link my-2 px-3 py-2" href="{{ anchor_url | relative_url }}">
36
+ <span>
37
+ {% if page.type == 'tags' %}
38
+ {{ slugified_taxonomy_name }}
39
+ {% else %}
40
+ {{ capitalized_taxonomy_name }}
41
+ {% endif %}
42
+ </span>&nbsp;&nbsp;
43
+ <span class="taxonomy-count">{{ posts.size }}</span>
44
+ </a>
45
+ {%- endif -%}
46
+ {%- endfor -%}
47
+ {%- endfor -%}
48
+ </div>
49
+
50
+ <div class="card-section mt-4">
51
+ {%- for i in (1..max_count) reversed -%}
52
+ {%- for taxonomy in taxonomies -%}
53
+ {%- assign taxonomy_name = taxonomy[0] -%}
54
+ {%- assign slugified_taxonomy_name = taxonomy_name | slugify -%}
55
+ {%- assign posts = taxonomy[1] -%}
56
+ {%- if posts.size == i -%}
57
+ <div class="card my-2 mx-3">
58
+ <div class="card-body p-5">
59
+ <a class="jump-to-anchor" id="{{ slugified_taxonomy_name }}"></a>
60
+ {% if page.type == 'categories' %}
61
+ {% assign taxonomy_name_list = taxonomy_name | split: ' ' %}
62
+ {% capture capitalized_taxonomy_name %}
63
+ {% for word in taxonomy_name_list %}
64
+ {{ word | capitalize }}
65
+ {% endfor %}
66
+ {% endcapture %}
67
+ {% endif %}
68
+ <h2 class="card-title" id="{{ slugified_taxonomy_name }}">
69
+ {%- if page.type == 'tags' -%}
70
+ {{ slugified_taxonomy_name }}
71
+ {%- else -%}
72
+ {{ capitalized_taxonomy_name }}
73
+ {%- endif -%}
74
+ </h2>
75
+
76
+ {%- for post in posts -%}
77
+ <p class="card-text card-list">
78
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</time>
79
+ &raquo;
80
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
81
+ </p>
82
+ {%- endfor -%}
83
+
84
+ <a href="#" onclick="backToTop()" class="back-to-top">
85
+ <i class="fas fa-lg fa-chevron-up"></i>
86
+ </a>
87
+ </div>
88
+ </div>
89
+ {%- endif -%}
90
+ {%- endfor -%}
91
+ {%- endfor -%}
92
+ </div>
93
+
94
+ <!-- IF NO TAGORIES -->
95
+ {% if taxonomies.size == 0 %}
96
+ <div class="d-flex justify-content-center">
97
+ <p>No categories to display yet.</p>
98
+ </div>
99
+ {% endif %}
100
+
101
+ {% include back-to-top.html %}
@@ -0,0 +1,36 @@
1
+ {% assign taxonomies = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
2
+
3
+ <div class="category-tags d-flex flex-wrap justify-content-center">
4
+ {%- for taxonomy in taxonomies -%}
5
+ {%- assign link = page.permalink -%}
6
+ {% capture anchor_url %}{{ link }}#{{ taxonomy.name }}{% endcapture %}
7
+ <a class="card-link my-2 px-3 py-2" href="{{ anchor_url | relative_url }}">
8
+ <span class="taxonomy-name">{{ taxonomy.name }}</span>&nbsp;&nbsp;
9
+ <span class="taxonomy-count">{{ taxonomy.size }}</span>
10
+ </a>
11
+ {%- endfor -%}
12
+ </div>
13
+
14
+ <div class="card-section mt-4">
15
+ {%- for taxonomy in taxonomies -%}
16
+ <div class="card my-2 mx-3">
17
+ <div class="card-body p-5">
18
+ <a class="jump-to-anchor" id="{{ taxonomy.name }}"></a>
19
+ <h2 class="card-title" id="{{ taxonomy.name }}">{{ taxonomy.name }}</h2>
20
+ {%- assign posts = taxonomy.items -%}
21
+ {%- for post in posts -%}
22
+ <p class="card-text card-list">
23
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d" }}</time>
24
+ &raquo;
25
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
26
+ </p>
27
+ {%- endfor -%}
28
+ <a href="#" onclick="backToTop()" class="back-to-top">
29
+ <i class="fas fa-lg fa-chevron-up"></i>
30
+ </a>
31
+ </div>
32
+ </div>
33
+ {%- endfor -%}
34
+ </div>
35
+
36
+ {% include back-to-top.html %}
@@ -0,0 +1,6 @@
1
+ <script>
2
+ function backToTop() {
3
+ const main = document.getElementById("main");
4
+ main.scrollTop = 0;
5
+ }
6
+ </script>
@@ -0,0 +1,27 @@
1
+ <div class="card info-card sticky-div h-100">
2
+
3
+ <div class="card-body">
4
+
5
+ <h3 class="card-title text-center">Categories</h3>
6
+
7
+ {% if site.categories.size > 0 %}
8
+ <div class="category-tags d-flex flex-wrap justify-content-center">
9
+ {% for category in site.categories %}
10
+ {% assign category_name = category | first %}
11
+ {% capture anchor_url %}categories.html#{{ category_name | slugify }}{% endcapture %}
12
+ {% assign category_name_list = category_name | split: ' ' %}
13
+ {% capture capitalized_category_name %}
14
+ {% for word in category_name_list %}
15
+ {{ word | capitalize }}
16
+ {% endfor %}
17
+ {% endcapture %}
18
+ <a class="card-link my-2 py-2 px-3" href="{{ anchor_url | relative_url }}">
19
+ {{ capitalized_category_name }}
20
+ </a>
21
+ {% endfor %}
22
+ </div>
23
+ {% else %}
24
+ <p class="card-text d-flex justify-content-center">No categories to display yet.</p>
25
+ {% endif %}
26
+ </div>
27
+ </div>
@@ -0,0 +1,9 @@
1
+ <div class="footer-element">
2
+ {%- assign date_to = site.time | date_to_xmlschema -%}
3
+ {%- assign year_to = date_to | date: '%Y' -%}
4
+ {% if site.title %}
5
+ <p>&copy;{{ year_to }} {{ site.title }}</p>
6
+ {% else %}
7
+ <p>&copy;{{ year_to }}</p>
8
+ {% endif %}
9
+ </div>
@@ -0,0 +1,6 @@
1
+ {% comment %}
2
+ Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons:
3
+
4
+ 1. Head over to https://realfavicongenerator.net/ to add your own favicons.
5
+ 2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
6
+ {% endcomment %}
@@ -0,0 +1,17 @@
1
+ <div id="disqus_thread"></div>
2
+ <script>
3
+ var disqus_config = function () {
4
+ this.page.url = '{{ page.url | absolute_url }}';
5
+ this.page.identifier = '{{ page.url | absolute_url }}';
6
+ };
7
+
8
+ (function() {
9
+ var d = document, s = d.createElement('script');
10
+
11
+ s.src = 'https://{{ site.disqus }}.disqus.com/embed.js';
12
+
13
+ s.setAttribute('data-timestamp', +new Date());
14
+ (d.head || d.body).appendChild(s);
15
+ })();
16
+ </script>
17
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
@@ -0,0 +1,26 @@
1
+ <footer class="text-muted">
2
+ <div class="container">
3
+ <div class="row">
4
+ <div class="d-flex justify-content-center">
5
+ {% include copyright.html %}
6
+ </div>
7
+ </div>
8
+
9
+ {% if site.data.social %}
10
+ <div class="row">
11
+ <div class="d-flex justify-content-center">
12
+ {% include social.html %}
13
+ </div>
14
+ </div>
15
+ {% endif %}
16
+
17
+ {% unless site.exclude_powered_by %}
18
+ <div class="row">
19
+ <div class="d-flex justify-content-center">
20
+ {% include powered-by.html %}
21
+ </div>
22
+ </div>
23
+ {% endunless %}
24
+ </div>
25
+ </footer>
26
+
@@ -0,0 +1,9 @@
1
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
2
+ <script>
3
+ window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+
8
+ gtag('config', '{{ site.google_analytics }}');
9
+ </script>
@@ -0,0 +1,26 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+
5
+ <!-- load bootstrap -->
6
+ <link rel="stylesheet" href="{{ 'assets/css/bootstrap.min.css' | relative_url }}">
7
+ <script src="{{ 'assets/js/bootstrap.bundle.min.js' | relative_url }}"></script>
8
+
9
+ <!-- user -->
10
+ {% if site.favicon_img %}
11
+ <link rel="shortcut icon" type="image/png" href="{{ site.favicon_img | relative_url }}">
12
+ {% else %}
13
+ <link rel="shortcut icon" type="image/png" href="{{ 'assets/images/favicon.png' | relative_url }}">
14
+ {% endif %}
15
+ <link rel="stylesheet" href="{{ 'assets/css/open-color.css' | relative_url }}">
16
+ <link rel="stylesheet" href="{{ 'assets/css/styles.css' | relative_url }}">
17
+ <script src="{{ 'assets/js/main.js' | relative_url }}"></script>
18
+
19
+ <!-- font awesome -->
20
+ <script async src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>
21
+
22
+ {% feed_meta %}
23
+ {% seo %}
24
+
25
+ {% include custom-head.html %}
26
+ </head>