jekyll-theme-scaffold 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +176 -0
- data/_includes/archive-by-tagories.html +71 -0
- data/_includes/archive-by-years.html +32 -0
- data/_includes/back-to-top.html +6 -0
- data/_includes/custom-head.html +6 -0
- data/_includes/disqus.html +17 -0
- data/_includes/footer.html +33 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +15 -0
- data/_includes/mathjax.html +2 -0
- data/_layouts/archive.html +15 -0
- data/_layouts/default.html +21 -0
- data/_layouts/home.html +54 -0
- data/_layouts/page.html +8 -0
- data/_layouts/post.html +67 -0
- data/_sass/scaffold/_archive.scss +44 -0
- data/_sass/scaffold/_base.scss +103 -0
- data/_sass/scaffold/_code.scss +27 -0
- data/_sass/scaffold/_footer.scss +29 -0
- data/_sass/scaffold/_header.scss +47 -0
- data/_sass/scaffold/_highlight-dark.scss +84 -0
- data/_sass/scaffold/_highlight-light.scss +84 -0
- data/_sass/scaffold/_home.scss +39 -0
- data/_sass/scaffold/_layout.scss +5 -0
- data/_sass/scaffold/_main.scss +15 -0
- data/_sass/scaffold/_pagination.scss +47 -0
- data/_sass/scaffold/_post.scss +101 -0
- data/_sass/scaffold/_variables.scss +56 -0
- data/assets/css/scaffold/normalize.css +349 -0
- data/assets/css/scaffold/open-color.css +343 -0
- data/assets/css/scaffold/styles.scss +4 -0
- metadata +174 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d89c1e753e4771a39e629f85cf09c306f68b0448811e8e0e7a04380e4d1c5a29
|
4
|
+
data.tar.gz: f2640e65ffa96312f5857fe64dbb30651958d63aa0c1a9e13a2609d0e357adfb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4736ece470225d567b1a3235301b1cce0ab2ef79fdcf8146bd42bf64c1faa2d22c94ad5f64d9292b62603b6b99b64eae216cdd6798c7f513db7e1b926350395a
|
7
|
+
data.tar.gz: 2ff2ee1d464c110ca40eb2d1b61728e65058d9dcad2e9039fd164e58df1340ef7814d93d1a6660e5880035d65524d683b55499367026f61a903f91fe10c3a4ad
|
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,176 @@
|
|
1
|
+
# Scaffold <!-- omit in toc -->
|
2
|
+
|
3
|
+
Scaffold is a *one-column minimalist Jekyll theme for bloggers*.
|
4
|
+
|
5
|
+
According to [Merriam-Webster](https://www.merriam-webster.com/), a *scaffold* is
|
6
|
+
|
7
|
+
> a temporary or movable platform for workers (such as bricklayers, painters, or miners) to stand or sit on when working at a height above the floor or ground
|
8
|
+
|
9
|
+
So is the target of the Jekyll theme Scaffold. It doesn't need to be modern, powerful, colorful, or beautiful; It just needs to be **simple**, **proper**, **naked**, and **neat**.
|
10
|
+
|
11
|
+
Scaffold is empirical. Standing on it, you -- the blogger -- can build a great building based on your words.
|
12
|
+
|
13
|
+
*Check the [live demo](https://sziv2p.github.io/jekyll-theme-scaffold/).*
|
14
|
+
|
15
|
+
![Screenshot](screenshot.png)
|
16
|
+
|
17
|
+
## Features (Not a Complete List) <!-- omit in toc -->
|
18
|
+
|
19
|
+
- [Normalize.css](http://necolas.github.io/normalize.css/)
|
20
|
+
- [Open Color](https://yeun.github.io/open-color/)
|
21
|
+
- Dark mode, via [`prefers-color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme)
|
22
|
+
- [Font Awesome](https://fontawesome.com/)
|
23
|
+
- Archive implemented by pure Liquid
|
24
|
+
- Pagination, via [`jekyll-paginate`](https://rubygems.org/gems/jekyll-paginate)
|
25
|
+
- [Jekyll Feed](https://github.com/jekyll/jekyll-feed/)
|
26
|
+
- [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/)
|
27
|
+
- [Jekyll Sitemap](https://github.com/jekyll/jekyll-sitemap/)
|
28
|
+
- [Google Analytics](https://analytics.google.com/)
|
29
|
+
- [Disqus](https://disqus.com/)
|
30
|
+
- [MathJax](https://www.mathjax.org/)
|
31
|
+
|
32
|
+
## Table of Contents <!-- omit in toc -->
|
33
|
+
|
34
|
+
- [Installation](#installation)
|
35
|
+
- [Usage](#usage)
|
36
|
+
- [Global Configuration](#global-configuration)
|
37
|
+
- [Post Configuration](#post-configuration)
|
38
|
+
- [Homepage](#homepage)
|
39
|
+
- [Navigation](#navigation)
|
40
|
+
- [Social Links](#social-links)
|
41
|
+
- [Archive](#archive)
|
42
|
+
- [Custom Head](#custom-head)
|
43
|
+
- [Contributing](#contributing)
|
44
|
+
- [Development](#development)
|
45
|
+
- [License](#license)
|
46
|
+
|
47
|
+
## Installation
|
48
|
+
|
49
|
+
Add this line to your Jekyll site's `Gemfile`:
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
gem "jekyll-theme-scaffold"
|
53
|
+
```
|
54
|
+
|
55
|
+
And add this line to your Jekyll site's `_config.yml`:
|
56
|
+
|
57
|
+
```yaml
|
58
|
+
theme: jekyll-theme-scaffold
|
59
|
+
```
|
60
|
+
|
61
|
+
And then execute:
|
62
|
+
|
63
|
+
bundle
|
64
|
+
|
65
|
+
Or install it yourself as:
|
66
|
+
|
67
|
+
gem install jekyll-theme-scaffold
|
68
|
+
|
69
|
+
If you want to use this theme on GitHub Pages, you can do that via `jekyll-remote-theme`:
|
70
|
+
|
71
|
+
1. Import `jekyll-remote-theme` in your `Gemfile`:
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
gem "jekyll-remote-theme"
|
75
|
+
```
|
76
|
+
|
77
|
+
2. Add these lines to your `_config.yml`:
|
78
|
+
|
79
|
+
```yml
|
80
|
+
plugins:
|
81
|
+
- jekyll-remote-theme
|
82
|
+
|
83
|
+
remote_theme: sziv2p/jekyll-theme-scaffold
|
84
|
+
```
|
85
|
+
|
86
|
+
## Usage
|
87
|
+
|
88
|
+
### Global Configuration
|
89
|
+
|
90
|
+
| Variable | Type | Default | Specification |
|
91
|
+
| -------- | ---- | ------- | ------------- |
|
92
|
+
| `title` | String | --- | The title of the website |
|
93
|
+
| `tagline` | String | --- | The tagline of the website |
|
94
|
+
| `lang` | String | `en` | The language of pages; The value can be overwritten by the `lang` variable on each page |
|
95
|
+
| `author.name` | String | --- | The name of the website author |
|
96
|
+
| `author.url` | String | --- | A URL of the website author |
|
97
|
+
| `date_format` | String | `%-d %b %Y` | The [date format](http://alanwsmith.com/jekyll-liquid-date-formatting-examples) which is used in many places on the website |
|
98
|
+
| `tags_path` | String | --- | A path to the archive-by-tags page; It is used by tags on each post |
|
99
|
+
| `google_analytics` | String | --- | Google Analytics tracking ID |
|
100
|
+
| `disqus` | String | --- | Disqus short name |
|
101
|
+
|
102
|
+
### Post Configuration
|
103
|
+
|
104
|
+
| Variable | Type | Default | Specification |
|
105
|
+
| -------- | ---- | ------- | ------------- |
|
106
|
+
| `last_modified_at` | String | --- | The date of the last modification you made on a post after its publishing |
|
107
|
+
| `author` | String or Array | --- | The author name(s) of the post |
|
108
|
+
| `math` | Boolean | `false` | Does enable MathJax on this page |
|
109
|
+
| `comments` | Boolean | `true` | Does enable the Disqus comment system |
|
110
|
+
|
111
|
+
### Homepage
|
112
|
+
|
113
|
+
You can create a homepage for your blog by setting `layout: home` in your `index.html`.
|
114
|
+
|
115
|
+
### Navigation
|
116
|
+
|
117
|
+
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.
|
118
|
+
|
119
|
+
```yml
|
120
|
+
- title: About
|
121
|
+
url: /about/
|
122
|
+
- title: Archive
|
123
|
+
url: /archive/
|
124
|
+
```
|
125
|
+
|
126
|
+
### Social Links
|
127
|
+
|
128
|
+
Scaffold allows you to show social links on the website, all you need to do is creating a file `_data/social.yml`, for example,
|
129
|
+
|
130
|
+
```yml
|
131
|
+
- title: Email
|
132
|
+
url: mailto:sziv2p@gmail.com
|
133
|
+
icon: fas fa-envelope
|
134
|
+
- title: Twitter
|
135
|
+
url: https://twitter.com/sziv2p
|
136
|
+
icon: fab fa-twitter
|
137
|
+
- title: GitHub
|
138
|
+
url: https://github.com/sziv2p
|
139
|
+
icon: fab fa-github
|
140
|
+
```
|
141
|
+
|
142
|
+
The `icon` property means a [Font Awesome](https://fontawesome.com/) class, and you can select any one you like.
|
143
|
+
|
144
|
+
### Archive
|
145
|
+
|
146
|
+
Pure provides some built-in archive pages. It is implemented in pure Liquid. If you want to archive posts by years, you can create a page and put these code in it:
|
147
|
+
|
148
|
+
```yml
|
149
|
+
---
|
150
|
+
layout: archive
|
151
|
+
type: years
|
152
|
+
---
|
153
|
+
```
|
154
|
+
|
155
|
+
Similarly, if you want to archive posts by categories or tags, you can set the `type` property as `categories` or `tags`.
|
156
|
+
|
157
|
+
### Custom Head
|
158
|
+
|
159
|
+
Pure leaves a placeholder to allow defining custom head. All you need to do is putting data into `_includes/custom-head.html`, and they would be automatically included in `<head>`.
|
160
|
+
|
161
|
+
## Contributing
|
162
|
+
|
163
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/sziv2p/jekyll-theme-scaffold](https://github.com/sziv2p/jekyll-theme-scaffold). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
164
|
+
|
165
|
+
## Development
|
166
|
+
|
167
|
+
To set up your environment to develop this theme, run `bundle install`.
|
168
|
+
|
169
|
+
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.
|
170
|
+
|
171
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
172
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-scaffold.gemspec` accordingly.
|
173
|
+
|
174
|
+
## License
|
175
|
+
|
176
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,71 @@
|
|
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="taxonomies-wrapper">
|
18
|
+
<ul class="taxonomies">
|
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
|
+
{%- if posts.size == i -%}
|
25
|
+
<li>
|
26
|
+
{%- capture link -%}{{ page.permalink }}#{{ slugified_taxonomy_name }}{%- endcapture -%}
|
27
|
+
<a class="taxonomy" href="{{ link | relative_url }}">
|
28
|
+
<span>
|
29
|
+
{%- if page.type == 'tags' -%}
|
30
|
+
{{ slugified_taxonomy_name }}
|
31
|
+
{%- else -%}
|
32
|
+
{{ taxonomy_name }}
|
33
|
+
{%- endif -%}
|
34
|
+
</span>
|
35
|
+
<span class="taxonomy-count">{{ posts.size }}</span>
|
36
|
+
</a>
|
37
|
+
</li>
|
38
|
+
{%- endif -%}
|
39
|
+
{%- endfor -%}
|
40
|
+
{%- endfor -%}
|
41
|
+
</ul>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
{%- for i in (1..max_count) reversed -%}
|
45
|
+
{%- for taxonomy in taxonomies -%}
|
46
|
+
{%- assign taxonomy_name = taxonomy[0] -%}
|
47
|
+
{%- assign slugified_taxonomy_name = taxonomy_name | slugify -%}
|
48
|
+
{%- assign posts = taxonomy[1] -%}
|
49
|
+
{%- if posts.size == i -%}
|
50
|
+
<h2 id="{{ slugified_taxonomy_name }}">
|
51
|
+
{%- if page.type == 'tags' -%}
|
52
|
+
{{ slugified_taxonomy_name }}
|
53
|
+
{%- else -%}
|
54
|
+
{{ taxonomy_name }}
|
55
|
+
{%- endif -%}
|
56
|
+
</h2>
|
57
|
+
<ul class="post-list-by-taxonomy">
|
58
|
+
{%- for post in posts -%}
|
59
|
+
<li>
|
60
|
+
<time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time>
|
61
|
+
»
|
62
|
+
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
63
|
+
</li>
|
64
|
+
{%- endfor -%}
|
65
|
+
</ul>
|
66
|
+
<a href="#" onclick="backToTop()" class="back-to-top">Top ⇈</a>
|
67
|
+
{%- endif -%}
|
68
|
+
{%- endfor -%}
|
69
|
+
{%- endfor -%}
|
70
|
+
|
71
|
+
{% include back-to-top.html %}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{% assign taxonomies = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}
|
2
|
+
|
3
|
+
<div class="taxonomies-wrapper">
|
4
|
+
<ul class="taxonomies">
|
5
|
+
{%- for taxonomy in taxonomies -%}
|
6
|
+
<li>
|
7
|
+
{%- capture link -%}{{ page.permalink }}#{{ taxonomy.name }}{%- endcapture -%}
|
8
|
+
<a class="taxonomy" href="{{ link | relative_url }}">
|
9
|
+
<span>{{ taxonomy.name }}</span>
|
10
|
+
<span class="taxonomy-count">{{ taxonomy.size }}</span>
|
11
|
+
</a>
|
12
|
+
</li>
|
13
|
+
{%- endfor -%}
|
14
|
+
</ul>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
{%- for taxonomy in taxonomies -%}
|
18
|
+
<h2 id="{{ taxonomy.name }}">{{ taxonomy.name }}</h2>
|
19
|
+
<ul class="post-list-by-taxonomy">
|
20
|
+
{%- assign posts = taxonomy.items -%}
|
21
|
+
{%- for post in posts -%}
|
22
|
+
<li>
|
23
|
+
<time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time>
|
24
|
+
»
|
25
|
+
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
26
|
+
</li>
|
27
|
+
{%- endfor -%}
|
28
|
+
</ul>
|
29
|
+
<a href="#" onclick="backToTop()" class="back-to-top">Top ⇈</a>
|
30
|
+
{%- endfor -%}
|
31
|
+
|
32
|
+
{% include back-to-top.html %}
|
@@ -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,33 @@
|
|
1
|
+
<footer class="footer">
|
2
|
+
<div class="footer-column">
|
3
|
+
<small>
|
4
|
+
©
|
5
|
+
{%- assign date_from = site.posts[-1].date | date_to_xmlschema -%}
|
6
|
+
{%- assign year_from = date_from | date: '%Y' -%}
|
7
|
+
{%- assign date_to = site.time | date_to_xmlschema -%}
|
8
|
+
{%- assign year_to = date_to | date: '%Y' -%}
|
9
|
+
{%- unless year_from == nil or year_from == year_to -%}
|
10
|
+
<time datetime="{{ date_from }}">{{ year_from }}</time>-
|
11
|
+
{%- endunless -%}
|
12
|
+
<time datetime="{{ date_to }}">{{ year_to }}</time>
|
13
|
+
{%- if site.author -%}
|
14
|
+
<a href="{{ site.author.url }}" target="_blank">{{ site.author.name }}</a>
|
15
|
+
{%- endif -%}
|
16
|
+
</small>
|
17
|
+
<br>
|
18
|
+
<small>Powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> & <a href="https://github.com/sziv2p/jekyll-theme-pure" target="_blank">Pure</a></small>
|
19
|
+
</div>
|
20
|
+
{% if site.data.social %}
|
21
|
+
<div class="footer-column">
|
22
|
+
<ul class="social-icons">
|
23
|
+
{%- for social in site.data.social -%}
|
24
|
+
<li class="social-icon-item">
|
25
|
+
<a class="social-icon" href="{{ social.url }}" target="_blank">
|
26
|
+
<i class="{{ social.icon | default: 'fas fa-link' }}" title="{{ social.title }}"></i>
|
27
|
+
</a>
|
28
|
+
</li>
|
29
|
+
{%- endfor -%}
|
30
|
+
</ul>
|
31
|
+
</div>
|
32
|
+
{% endif %}
|
33
|
+
</footer>
|
@@ -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>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
<link rel="stylesheet" href="{{ 'assets/css/scaffold/normalize.css' | relative_url }}">
|
5
|
+
<link rel="stylesheet" href="{{ 'assets/css/scaffold/open-color.css' | relative_url }}">
|
6
|
+
<link rel="stylesheet" href="{{ 'assets/css/scaffold/styles.css' | relative_url }}">
|
7
|
+
<script async src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>
|
8
|
+
{% feed_meta %}
|
9
|
+
{% seo %}
|
10
|
+
|
11
|
+
{% include custom-head.html %}
|
12
|
+
</head>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<header class="masthead">
|
2
|
+
<a class="masthead-title" href="{{ '/' | relative_url }}" title="Home">{{ site.title }}</a>
|
3
|
+
<small class="masthead-tagline">{{ site.tagline }}</small>
|
4
|
+
{% if site.data.navigation %}
|
5
|
+
<nav class="nav">
|
6
|
+
<ul class="nav-list">
|
7
|
+
{%- for item in site.data.navigation -%}
|
8
|
+
<li class="nav-item">
|
9
|
+
<a href="{{ item.url | relative_url }}">{{ item.title }}</a>
|
10
|
+
</li>
|
11
|
+
{%- endfor -%}
|
12
|
+
</ul>
|
13
|
+
</nav>
|
14
|
+
{% endif %}
|
15
|
+
</header>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
{% include head.html %}
|
4
|
+
<body>
|
5
|
+
<div class="container">
|
6
|
+
{% include header.html %}
|
7
|
+
<main>
|
8
|
+
{{ content }}
|
9
|
+
</main>
|
10
|
+
{% include footer.html %}
|
11
|
+
</div>
|
12
|
+
|
13
|
+
{% if page.math %}
|
14
|
+
{% include mathjax.html %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
18
|
+
{% include google-analytics.html %}
|
19
|
+
{% endif %}
|
20
|
+
</body>
|
21
|
+
</html>
|