jekyll-yamt 0.1.0 → 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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -21
  3. data/README.md +76 -23
  4. data/_includes/analytics.html +9 -9
  5. data/_includes/categories.html +12 -12
  6. data/_includes/disqus.html +18 -18
  7. data/_includes/footer.html +2 -2
  8. data/_includes/head.html +36 -36
  9. data/_includes/header.html +24 -15
  10. data/_includes/pages.html +2 -2
  11. data/_includes/reading_time.html +20 -20
  12. data/_includes/related-posts.html +35 -35
  13. data/_includes/social.html +7 -7
  14. data/_layouts/archive.html +14 -14
  15. data/_layouts/contact.html +16 -16
  16. data/_layouts/default.html +18 -19
  17. data/_layouts/home.html +45 -43
  18. data/_layouts/page.html +5 -5
  19. data/_layouts/post.html +45 -45
  20. data/_sass/archive.scss +9 -9
  21. data/_sass/base.scss +127 -126
  22. data/_sass/contact.scss +49 -49
  23. data/_sass/footer.scss +23 -23
  24. data/_sass/header.scss +103 -71
  25. data/_sass/home.scss +36 -36
  26. data/_sass/mobile.scss +50 -51
  27. data/_sass/paginator.scss +35 -35
  28. data/_sass/post.scss +78 -77
  29. data/_sass/related-posts.scss +22 -22
  30. data/_sass/scrollbar.scss +16 -16
  31. data/_sass/typography.scss +40 -40
  32. data/assets/css/main.css +1 -0
  33. data/assets/css/main.scss +4 -4
  34. data/assets/css/syntax.css +1 -0
  35. data/assets/css/syntax.scss +257 -257
  36. data/assets/img/logo.jpg +0 -0
  37. data/assets/img/oranges.jpg +0 -0
  38. data/assets/img/screenshots/Screenshot.png +0 -0
  39. data/assets/img/screenshots/Screenshot_code_highlight.png +0 -0
  40. data/assets/img/screenshots/Screenshot_minimal.png +0 -0
  41. data/assets/img/screenshots/Screenshot_mobile.png +0 -0
  42. metadata +9 -4
  43. data/assets/img/rotation.gif +0 -0
  44. data/assets/img/rotation.jpg +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2050a638a54029f7a3794614f05645aa6c88a0fca0d47275fe5d34f4f06f7730
4
- data.tar.gz: 5df8c73aba18572c48609c7b15b43726b62e0d930ea07ad02f0f69dfa2f3c40b
3
+ metadata.gz: 31c59a08dd085bd5e9daa15fd8ce1b9e2881e30f0e066fb513c2a18d3acbca4e
4
+ data.tar.gz: 26c6a6db2abd24c636d9da4028ecde3d89dbb42c6b582135774c6f68443fb019
5
5
  SHA512:
6
- metadata.gz: b684852ae3d9c2b99e7fda634fdf82f45cd836ef842cec6ae4a45cc66a9572e182fbb604a48d759d57a79459c3c748ede8c97f97011989d578c379b43411936e
7
- data.tar.gz: 4b43c711505cbbdfbca4d096612c5bab38160b5cf134c67626916146efb81f4e7f5614e6770c8ed9ba119e0de397c47631a53aca24284eb6fa59256f3747ffad
6
+ metadata.gz: 94723a3bc47259c4381e86ea6b24eaa1302bdbed008cbf911b126828160b8dc75efb7f2918e33f1af1e513ab1fe3f9140f33fe505cb4723d01ceac989eb44cb5
7
+ data.tar.gz: 23fccc79a12f7a0bcde9a9c7bcaca3bbc62e89779ce9dc4f03bc8b55be8e3e45151c03564ce3d762f7cd067e34cefcf86fffccc0d1ec45960b0bee7a08d8679a
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 PandaSekh
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.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 PandaSekh
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 CHANGED
@@ -1,32 +1,58 @@
1
- # WORK IN PROGRESS! STILL NEED TO FIX MINOR THINGS AND TO WRITE THE DOCS
2
-
3
1
  # [YAMT - Yet Another Minimal Theme](https://yamt.netlify.app/)
4
- ![status](http://img.shields.io/badge/Status-Unreleased-critical?style=plastict)
2
+ [![Netlify Status](https://api.netlify.com/api/v1/badges/249c3da6-7b23-4b57-915d-71934329e306/deploy-status)](https://yamt.netlify.app/)
5
3
  ![supports mathjax](https://img.shields.io/badge/Supports-MathJAX-blue)
6
4
  [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/PandaSekh/Jekyll-YAMT/issues)
7
-
8
- [![Netlify Status](https://api.netlify.com/api/v1/badges/249c3da6-7b23-4b57-915d-71934329e306/deploy-status)](https://yamt.netlify.app/)
9
5
  ![GitHub forks](https://img.shields.io/github/forks/PandaSekh/Jekyll-YAMT?label=Fork%20it%21&style=social)
10
6
  ## [Live Demo](https://yamt.netlify.app/)
7
+
8
+ ![Homepage](https://raw.githubusercontent.com/PandaSekh/Jekyll-YAMT/master/assets/img/screenshots/Screenshot.png?raw=true)
9
+
11
10
  YAMT is a minimal [Jekyll](http://jekyllrb.com) theme focused on simplicity and ease-of-use. It has great modularity, allowing you to easily decide what you actually want on your website.
12
11
 
13
12
  ## Contents
14
13
 
15
14
  - [Features](#features)
15
+ - [Screenshots](#screenshots)
16
16
  - [Installation](#installation)
17
- - [Usage](#usage)
18
17
  - [Customize](#options)
18
+ - [Basics](#Basics)
19
19
  - [Header](#header)
20
+ - [Home](#home)
20
21
  - [Post](#post)
22
+ - [Contact Form](#contact-form)
21
23
  - [Development](#development)
24
+ - [Credits](#credits)
22
25
  - [License](#license)
23
26
 
24
27
  ## Features
25
28
 
29
+ - Minimal and clean design.
30
+ - Fully modular: activate and load only what you really need.
31
+ - Works great on mobile and smaller screens.
32
+ - Supports [Disqus](https://disqus.com/) comments activated only on button press, if you activate them.
33
+ - [Google Analytics](https://www.google.com/analytics/) support.
34
+ - [Open Graph](https://ogp.me/) and [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started) support to better index the website content on search engines and social networks.
35
+ - [MathJAX](https://www.mathjax.org/) and [LaTeX](https://www.latex-project.org/) optional support. Write beautiful math!
36
+ - [RSS](https://github.com/jekyll/jekyll-feed) support.
37
+ - Beautiful [Syntax Highlight](https://yamt.netlify.app/2020/05/19/special-formatting.html#syntax-highlight). Write some code and show it in a graceful way.
38
+
39
+ ## Screenshots
40
+
41
+ Mobile:
42
+ ![Mobile](https://raw.githubusercontent.com/PandaSekh/Jekyll-YAMT/master/assets/img/screenshots/Screenshot_mobile.png?raw=true)
43
+
44
+ Code Highlight:
45
+ ![Code](https://raw.githubusercontent.com/PandaSekh/Jekyll-YAMT/master/assets/img/screenshots/Screenshot_code_highlight.png)
46
+
47
+ Minimal:
48
+ ![Minimal](https://raw.githubusercontent.com/PandaSekh/Jekyll-YAMT/master/assets/img/screenshots/Screenshot_minimal.png?raw=true)
49
+
26
50
  ## Installation
51
+
27
52
  There are four way to use YAMT: Netlify (suggested, as this theme has a contact module built-in working only on Netlify), Github Pages, as a gem-based theme, by forking this repo or by copying all the files into your directory.
28
53
 
29
54
  ### Netlify
55
+
30
56
  1. [Fork this repo](https://github.com/PandaSekh/Jekyll-YAMT/generate). You can copy only master, set it to private or public and name it however you want.
31
57
  2. Go to [Netlify](https://app.netlify.com/), create a New site from Git, choose your repo or all repos, no difference. Back to Netlify, select the recently forked repo.
32
58
  3. Owner and branch are good to go. In build command write `bundle exec jekyll build` and publishing directory should be `_site/`.
@@ -34,32 +60,27 @@ There are four way to use YAMT: Netlify (suggested, as this theme has a contact
34
60
 
35
61
  ### Github Pages
36
62
 
37
- ### Remote theme
38
- 1. Have a gemfile with only the following content:
63
+ Github Pages uses the [--safe flag](https://jekyllrb.com/docs/configuration/options/) to build jekyll websites, which disable custom plugins, caching to disk and ignore symbolic links. Because of that, I suggest you to use any other method. Netlify works great with a 5 minute config, so I suggest you use it.
39
64
 
40
- ```ruby
41
- source "https://rubygems.org"
65
+ 1. [Fork this repo](https://github.com/PandaSekh/Jekyll-YAMT/generate).
66
+ 2. Create a new branch in your repo and call it `gh-pages`.
67
+ 3. Publish your website and choose gh-pages as the target branch.
42
68
 
43
- gem "github-pages", group: :jekyll_plugins
44
- ```
45
-
46
- 2. Run the following command:
69
+ ### Remote theme
47
70
 
48
- ```bash
49
- bundle
50
- ```
71
+ [Follow these instructions](https://help.github.com/en/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll).
51
72
 
52
73
  ### Gem-based theme
53
74
  1. Add this line to your Jekyll site's `Gemfile`:
54
75
 
55
76
  ```ruby
56
- gem "yamt"
77
+ gem "jekyll-yamt"
57
78
  ```
58
79
 
59
80
  2. And add this line to your Jekyll site's `_config.yml`:
60
81
 
61
82
  ```yaml
62
- theme: yamt
83
+ theme: jekyll-yamt
63
84
  ```
64
85
 
65
86
  3. And then execute:
@@ -71,15 +92,43 @@ There are four way to use YAMT: Netlify (suggested, as this theme has a contact
71
92
  4. Or install it yourself as:
72
93
 
73
94
  ``` bash
74
- $ gem install yamt
95
+ $ gem install jekyll-yamt
75
96
  ```
76
97
 
77
- ## Usage
78
98
 
79
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
99
+ ## Customize
100
+
101
+ YAMT is easily customizable. If you don't need a functionality, just deactivate it in _data/settings.yml.
102
+ Most of the customizable things are self-explanatory and found in the _data folder and in the _config.yml.
103
+
104
+ ### Basics
105
+
106
+ Under the _data folder there are three files: pages, settings and social.
107
+ In pages you can add other pages that will show up in the nav-
108
+ In social you can add your socials that will show up in the nav. To add a social, find a suitable icon on [FontAwesome](https://fontawesome.com/) and add it's name in the name tag.
109
+ Brand defines Font Awesome's font type (fas is solid, fab is brand).
110
+ Out of the box this theme has support colors for a bunch of social. If your social isn't supported, just add the color in the header.css
111
+
112
+ In settings.yml you can activate or deactivate various functions of the theme, like analytics, disqus comments, related posts and so on.
113
+
114
+ ### Header
115
+ In _data/settings.yml you can choose to hide or show the subtitle, the page navigation or the social icons.
116
+
117
+ ### Home
118
+ In _data/settings.yml you can choose to hide or show the posts infos (date and read-time) and the featured image.
119
+
120
+ ### Post
121
+ In _data/settings.yml you can choose to hide or show the post infos, categories, related posts and comments.
122
+ Note that by removing categories the Categories Archives will no longer be reachable.
123
+
124
+ ### Contact Form
125
+ YAMT has a built-in contact form builded using [Netlify](https://app.netlify.com/) free form functionality. To make it work you only need the line `data-netlify="true"` when declaring a form.
126
+ If you don't want to use Netlify, remove the line `data-netlify="true"`.
80
127
 
81
128
  ## Development
82
129
 
130
+ [Contributions are welcomed and encouraged](https://github.com/PandaSekh/Jekyll-YAMT/issues).
131
+
83
132
  To set up your environment to develop this theme, run `bundle install`.
84
133
 
85
134
  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.
@@ -87,6 +136,10 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
87
136
  When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
88
137
  To add a custom directory to your theme-gem, please edit the regexp in `yamt.gemspec` accordingly.
89
138
 
90
- ## License
139
+ ## Credits
140
+ Inspired by [Lagrange by LeNPaul](https://lenpaul.github.io/Lagrange/).
141
+ Also great help from [this blog](https://blog.webjeda.com/), I've used this even before I created this theme.
142
+ Images from [Unsplash](https://unsplash.com/).
91
143
 
144
+ ## License
92
145
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,9 +1,9 @@
1
- <!-- Global site tag (gtag.js) - Google Analytics -->
2
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics-id }}"></script>
3
- <script>
4
- window.dataLayer = window.dataLayer || [];
5
- function gtag(){dataLayer.push(arguments);}
6
- gtag('js', new Date());
7
-
8
- gtag('config', '{{ site.analytics-id }}');
9
- </script>
1
+ <!-- Global site tag (gtag.js) - Google Analytics -->
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics-id }}"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+
8
+ gtag('config', '{{ site.analytics-id }}');
9
+ </script>
@@ -1,13 +1,13 @@
1
- <div class="categories">
2
- <span><p>Categories:</p>
3
- {% if post %}
4
- {% assign categories = post.categories %}
5
- {% else %}
6
- {% assign categories = page.categories %}
7
- {% endif %}
8
- {% for category in categories %}
9
- <a href="{{site.url}}/categories/#{{category|slugize}}">{{category}}</a>
10
- {% unless forloop.last %}&nbsp;{% endunless %}
11
- {% endfor %}
12
- </span>
1
+ <div class="categories">
2
+ <span><p>Categories:</p>
3
+ {% if post %}
4
+ {% assign categories = post.categories %}
5
+ {% else %}
6
+ {% assign categories = page.categories %}
7
+ {% endif %}
8
+ {% for category in categories %}
9
+ <a href="{{site.url}}/categories/#{{category|slugize}}">{{category}}</a>
10
+ {% unless forloop.last %}&nbsp;{% endunless %}
11
+ {% endfor %}
12
+ </span>
13
13
  </div>
@@ -1,19 +1,19 @@
1
- <section class="disqus">
2
- <p id="load-comments" onclick="loadDisqus()">Load Comments</p>
3
- <div id="disqus_thread"></div>
4
-
5
- <script id="loadDisqus" type="text/javascript">
6
- var disqus_loaded = false;
7
- var disqus_shortname = "{{ site.data.settings.disqus.disqus_shortname }}";
8
- var disqus_identifier = "{{ page.url }}";
9
- function loadDisqus() {
10
- var e = document.createElement('script');
11
- e.type = 'text/javascript';
12
- e.async = true;
13
- e.src = '//' + disqus_shortname + '.disqus.com/embed.js';
14
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(e);
15
- document.getElementById("load-comments").style.display = "none";
16
- };
17
- </script>
18
- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a></noscript>
1
+ <section class="disqus">
2
+ <p id="load-comments" onclick="loadDisqus()">Load Comments</p>
3
+ <div id="disqus_thread"></div>
4
+
5
+ <script id="loadDisqus" type="text/javascript">
6
+ var disqus_loaded = false;
7
+ var disqus_shortname = "{{ site.data.settings.disqus.disqus_shortname }}";
8
+ var disqus_identifier = "{{ page.url }}";
9
+ function loadDisqus() {
10
+ var e = document.createElement('script');
11
+ e.type = 'text/javascript';
12
+ e.async = true;
13
+ e.src = '//' + disqus_shortname + '.disqus.com/embed.js';
14
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(e);
15
+ document.getElementById("load-comments").style.display = "none";
16
+ };
17
+ </script>
18
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a></noscript>
19
19
  </section>
@@ -1,3 +1,3 @@
1
- <footer class= "footer">
2
- <p>Copyright© {{site.author.name}} 2020. All right reserved. Theme designed by <a href="https://alessiofranceschi.me/">Alessio Franceschi</a>.</p>
1
+ <footer class= "footer">
2
+ <p>Copyright© {{site.author.name}} 2020. All right reserved. Theme designed by <a href="https://alessiofranceschi.me/">Alessio Franceschi</a>.</p>
3
3
  </footer>
data/_includes/head.html CHANGED
@@ -1,37 +1,37 @@
1
- <html lang="en-US">
2
- <meta charset="UTF-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
-
5
- <title>
6
- {% if page.title == "Home" %}
7
- {{ site.title }} | {{ site.description }}
8
- {% else %}
9
- {{ page.title }} | {{ site.title }}
10
- {% endif %}
11
- </title>
12
- <meta name="description" content="
13
- {% if page.description %}{{ page.description }}
14
- {% else %}{{ site.description }}
15
- {% endif %}">
16
-
17
- <link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
18
- <link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon">
19
-
20
- <!-- CSS -->
21
- <link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl | replace: '//', '/' }}">
22
- <link rel="stylesheet" href="{{ "/assets/css/syntax.css" | prepend: site.baseurl | replace: '//', '/' }}">
23
-
24
- <!-- Icons -->
25
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
26
-
27
- <!-- Fonts -->
28
- <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=PT+Serif&display=swap" rel="stylesheet">
29
-
30
- <!-- SEO Plugin -->
31
- {% seo %}
32
-
33
- <!-- Google Analytics -->
34
- {% if site.data.settings.analytics-id%}
35
- {%- include analytics.html -%}
36
- {% endif %}
1
+ <html lang="en-US">
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+
5
+ <title>
6
+ {% if page.title == "Home" %}
7
+ {{ site.title }} | {{ site.description }}
8
+ {% else %}
9
+ {{ page.title }} | {{ site.title }}
10
+ {% endif %}
11
+ </title>
12
+ <meta name="description" content="
13
+ {% if page.description %}{{ page.description }}
14
+ {% else %}{{ site.description }}
15
+ {% endif %}">
16
+
17
+ <link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
18
+ <link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon">
19
+
20
+ <!-- CSS -->
21
+ <link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl | replace: '//', '/' }}">
22
+ <link rel="stylesheet" href="{{ "/assets/css/syntax.css" | prepend: site.baseurl | replace: '//', '/' }}">
23
+
24
+ <!-- Icons -->
25
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
26
+
27
+ <!-- Fonts -->
28
+ <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=PT+Serif&display=swap" rel="stylesheet">
29
+
30
+ <!-- SEO Plugin -->
31
+ {% seo %}
32
+
33
+ <!-- Google Analytics -->
34
+ {% if site.data.settings.analytics-id%}
35
+ {%- include analytics.html -%}
36
+ {% endif %}
37
37
  <!-- End Google Analytics -->
@@ -1,16 +1,25 @@
1
- <header id="header">
2
- <div id = site_title>
3
- <a href="{{ site.url }}">
4
- <h1>{{site.title}}</h1>
5
- </a>
6
- </div>
7
-
8
- <div id="subheader">
9
- <nav class="pages">
10
- {%- include pages.html -%}
11
- </nav>
12
- <nav class="social">
13
- {% include social.html %}
14
- </nav>
15
- </div>
1
+ <header id="header">
2
+ <div id = site_title>
3
+ <a href="{{ site.url }}">
4
+ <h1>{{site.title}}</h1>
5
+ </a>
6
+ {% if site.data.settings.subtitle.active %}
7
+ <h2>
8
+ {{ site.data.settings.subtitle.text }}
9
+ </h2>
10
+ {% endif %}
11
+ </div>
12
+
13
+ <div id="subheader">
14
+ {% if site.data.settings.nav.pages.active %}
15
+ <nav class="pages">
16
+ {%- include pages.html -%}
17
+ </nav>
18
+ {% endif %}
19
+ {% if site.data.settings.nav.social.active %}
20
+ <nav class="social">
21
+ {% include social.html %}
22
+ </nav>
23
+ {% endif %}
24
+ </div>
16
25
  </header>
data/_includes/pages.html CHANGED
@@ -1,3 +1,3 @@
1
- {% for item in site.data.pages.pages %}
2
- <a href="{{ site.url }}/{{ item.url }}">{{ item.name }}</a>
1
+ {% for item in site.data.pages.pages %}
2
+ <a href="{{ site.url }}/{{ item.url }}">{{ item.name }}</a>
3
3
  {% endfor %}
@@ -1,21 +1,21 @@
1
- {% if post.layout != post %}
2
- {% assign words = post.content | strip_html | number_of_words %}
3
- {% if words < 180 %}
4
- Less than 1 minute read
5
- {% elsif words < 360 %}
6
- 1 minute read
7
- {% else %}
8
- {{ words | divided_by:180 }} minute read
9
- {% endif %}
10
- {% endif %}
11
-
12
- {% if post.layout == post %}
13
- {% assign words = content | number_of_words %}
14
- {% if words < 180 %}
15
- Less than 1 minute read
16
- {% elsif words < 360 %}
17
- 1 minute read
18
- {% else %}
19
- {{ words | divided_by:180 }} minute read
20
- {% endif %}
1
+ {% if post.layout != post %}
2
+ {% assign words = post.content | strip_html | number_of_words %}
3
+ {% if words < 180 %}
4
+ Less than 1 minute read
5
+ {% elsif words < 360 %}
6
+ 1 minute read
7
+ {% else %}
8
+ {{ words | divided_by:180 }} minute read
9
+ {% endif %}
10
+ {% endif %}
11
+
12
+ {% if post.layout == post %}
13
+ {% assign words = content | number_of_words %}
14
+ {% if words < 180 %}
15
+ Less than 1 minute read
16
+ {% elsif words < 360 %}
17
+ 1 minute read
18
+ {% else %}
19
+ {{ words | divided_by:180 }} minute read
20
+ {% endif %}
21
21
  {% endif %}