spaacedout 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/LICENSE.haackbar +21 -0
  4. data/LICENSE.plainwhite-jekyll +21 -0
  5. data/README.md +131 -0
  6. data/_includes/comments/comments.html +3 -0
  7. data/_includes/comments/comments_link.html +3 -0
  8. data/_includes/comments/disqus_comments.html +20 -0
  9. data/_includes/comments/disqus_comments_link.html +7 -0
  10. data/_includes/end-notice.html +2 -0
  11. data/_includes/footer.html +3 -0
  12. data/_includes/head.html +22 -0
  13. data/_includes/head/google-adsense.html +1 -0
  14. data/_includes/head/google-analytics.html +6 -0
  15. data/_includes/head/stylesheets.html +4 -0
  16. data/_includes/head/twitter.html +8 -0
  17. data/_includes/header.html +43 -0
  18. data/_includes/info-notice.html +2 -0
  19. data/_includes/pagination.html +10 -0
  20. data/_includes/post/archive_post.html +19 -0
  21. data/_includes/post/edit.html +11 -0
  22. data/_includes/post/meta.html +23 -0
  23. data/_includes/post/tags.html +4 -0
  24. data/_includes/social-links.html +11 -0
  25. data/_includes/warning-notice.html +2 -0
  26. data/_layouts/default.html +14 -0
  27. data/_layouts/home.html +40 -0
  28. data/_layouts/page.html +14 -0
  29. data/_layouts/post.html +23 -0
  30. data/_sass/SpaacedOut.scss +3 -0
  31. data/_sass/core/base.scss +67 -0
  32. data/_sass/core/core.scss +8 -0
  33. data/_sass/core/footer.scss +6 -0
  34. data/_sass/core/header.scss +204 -0
  35. data/_sass/core/main.scss +19 -0
  36. data/_sass/core/notice.scss +16 -0
  37. data/_sass/core/post.scss +72 -0
  38. data/_sass/syntax-highlight.scss +156 -0
  39. data/_sass/variables/variables.scss +54 -0
  40. data/assets/js/utils.js +114 -0
  41. data/assets/pages/archives.md +14 -0
  42. data/assets/pages/tags.md +49 -0
  43. data/assets/style.scss +4 -0
  44. data/assets/syntax-highlight.scss +4 -0
  45. metadata +213 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a2e673b1216d5de609f61335f792223e79c6ae21dd6b97a34ec9a9e69f483f93
4
+ data.tar.gz: f7da0da6753838d3e89c5d08bc55779c333a2cc44e20c112576d8c53653c86f5
5
+ SHA512:
6
+ metadata.gz: 15e39eb5fbf84e4ed606fc710827c06b2e5a5bb601a705d323e65831717da599f35370c984619417e1362151ee63e959f08ceb59005038d73d908656f3700327
7
+ data.tar.gz: 194826dae67fca9244bbc01cc617fab1ae9e2d3c4efe4be67509a08cee5f73ff28c2a650781a91cae3aa9f71cad05e922133d862d509c5555cdcfe165312654c
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Jason Gaylord
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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Phil Haack
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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Samarjeet
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.
@@ -0,0 +1,131 @@
1
+ [![Gem Version](https://badge.fury.io/rb/SpaacedOut.svg)](https://badge.fury.io/rb/SpaacedOut)
2
+
3
+ # Welcome to the SpaacedOut Jekyll Theme
4
+ Here's a new, responsive GitHub Pages and Jekyll theme called SpaacedOut. You can see the full details of this theme at
5
+ [jasongaylord/SpaacedOut](https://jasong.us/2ywUm3C). This theme is a mashup of the 2019 version of [JasonGaylord.com](https://jasong.us/2SHDm1C), the [Haacked theme](https://jasong.us/2SItEvN), and the [plainwhite theme](https://jasong.us/2WxMoPJ).
6
+
7
+ This theme has several features enabled by default:
8
+
9
+ 1. Post Excerpts on the Home Page
10
+ 2. Google Analytics tracking
11
+ 3. Post Archival by Year
12
+ 4. Social Media Icons in the Site Header
13
+ 5. Disqus comment support
14
+ 6. Dynamic menu support
15
+ 7. Automatic Line Numbering and Language Indicator for Syntax Highlighting
16
+ 8. Git link for editing
17
+
18
+ These features are explained in greater detail in the [custom installation](#custom-installation) section below.
19
+
20
+ # Installation
21
+ This theme is typically used as a [remote theme on GitHub pages](https://jasong.us/3bc5XCq) and through the Jekyll remote theme plugin [explained on my blog](https://jasong.us/35luIer).
22
+
23
+ To use the theme, there are two different methods:
24
+
25
+ 1. [Abbreviated Installation](#abbreviated-installation) - A quick installation to begin using SpaacedOut right away
26
+ 2. [Custom Installation](#custom-installation) - A more in depth overview to allow customization of the SpaacedOut theme
27
+
28
+ ## Abbreviated Installation
29
+ Please note that if you have modified your `_config.yml` already, you should probably resort to the [Custom Installation](#custom-installation) instructions below.
30
+
31
+ To get started, you should copy all [settings from the SpaacedOut `_config.yml`](https://jasong.us/2A05ExK) and past the values into your `_config.yml` file replacing everything. Next, review the settings and modify the values to reflect your site (i.e. Change 'My Blog' to the title you'd like on your site).
32
+
33
+ If you are looking for futher customization, please [continue](#custom-installation). Otherwise, you should be ok to check in your changes and view the site in GitHub Pages.
34
+
35
+ If everything came out ok, it should resemble this:
36
+
37
+ ![](https://cdn.jasongaylord.com/images/2020/05/11/SpaacedOut-Theme.jpg)
38
+
39
+ In addition, there's full mobile support with a flyout menu:
40
+
41
+ ![](https://cdn.jasongaylord.com/images/2020/05/11/SpaacedOut-Theme-Mobile.jpg)
42
+
43
+ ## Custom Installation
44
+ Below you'll find a basic overview to customize the theme. In addition, each area of the configuration is explained via comments in the [`_config.yml`](https://jasong.us/3fqiwO2) Additional details to assist in customizing the theme can be found in the [Dissecting the Theme](#dissecting-the-theme) section below.
45
+
46
+ ### Home Layout
47
+ `home.html` is the default page for the site and is the initial page that loads when your site loads. The current home layout includes a placeholder for text followed by a paginated list of posts. The placeholder will allow you to add content to `index.html` or `index.md` (located at the root of your site) which will be placed above the paginated list. This is a great way to introduce the visitors to your site.
48
+
49
+ In addition, if you include `<!--more-->` in your post, only the content above the comment will be shown as an excerpt on your homepage and within the post archives.
50
+
51
+ ### Content Extras
52
+ Rather than overriding each of the includes or layouts simply to add content, I've added a mechanism to add content to the common areas of the site. Since GitHub Pages currently supports Jekyl 3.8 and not 4.0, we cannot use dynamic includes. The following are configuration elements that, when setting the value to `true`, will render their respective files in your sites local `_includes` folder. These files can be defined under the `content` node in the `_config.yml` file:
53
+
54
+ - `head-s` - This allows additional scripts and styles to be added to the head of the site. If setting to `true`, you'll need to create the following in your local site: `_includes\head-suffix.html`.
55
+ - `header-s` - This allows for additional content to be dropped in between the title and the menu on the left side. If setting to `true`, you'll need to create the following in your local site: `_includes\header-suffix.html`.
56
+
57
+ ### Override Layout, Includes, or Style
58
+ Any of the layouts or includes can be overwritten. Simply copy over the file or directory to your site and modify as you see fit.
59
+
60
+ If you are looking for your own color scheme, fonts, or sizes, I'd recommend the following steps:
61
+
62
+ 1. Create your own SASS file in the `assets` directory called `style.scss`.
63
+ 2. Copy the _variables_ found in `_sass_\variables\variables.scss` in the _SpaacedOut_ theme into your new `style.scss` file. You only need to include the variables that you are replacing.
64
+ 3. Below the _variables_ contents you just copied, add a new line to import the `SpaacedOut.scss` file like:
65
+
66
+ ```css
67
+ @import "SpaacedOut";
68
+ ```
69
+
70
+ ## Dissecting the Theme
71
+
72
+ ### Layouts
73
+ The files mentioned below can be found in the `_layouts` directory. If you are unfamiliar with layouts, these are similar to a template or master page in other languages.
74
+
75
+ - `default.html` - This is the default layout for the site. The other layouts below all derive their layouts from this.
76
+ - `home.html` - As [mentioned above](#home-layout), this is the initial page of the website.
77
+ - `page.html` - This layout is used for pages found in the `_page` or the `assets\pages` directories.
78
+ - `post.html` - This layout is used for blog\news posts.
79
+
80
+ ### Includes
81
+ The files mentioned below can be found in the `_includes` directory. Includes are partial content that can be injected and loaded in either a layout or another include.
82
+
83
+ - `footer.html` - This is the footer section of the site and includes a copyright tag and the reference to the theme.
84
+ - `head.html` - This includes the HTML head section content. If you'd like to add additional style and/or scripts, you don't need to override this [[Read More]](#content-extras). Additional configuration items can be found in the `_includes\head` directory:
85
+ - `google-analytics.html` - This configures Google Analytics if defined in your `_config_yml`
86
+ - `stylesheets.html` - This lists the stylesheets that are used for the site.
87
+ - `twitter.html` - If the Twitter social icon is defined, this places a Twitter card on the site.
88
+ - `header.html` - This is the header section of the site and includes the title, avatar, menu, and social icons (if present).
89
+ - `pagination.html` - This handles the pagination of posts.
90
+ - `social-links.html` - This handles the display of the social links.
91
+ - `_includes\comments` directory:
92
+ - `comments.html` - Used to reference the comment block at the bottom of content. If you want to expand beyond disqus, this is where you could do it.
93
+ - `comments_link.html` - Used to reference the comment count at the top of content. If you want to expand beyond disqus, this is where you could do it.
94
+ - `disqus_comments.html` - This contains the link to the disqus JavaScript file.
95
+ - `disqus_comments_link.html` - This contains the reference to the specific diqus identifier based on the page or post URL
96
+ - `_includes\post` directory:
97
+ - `archive_post.html` - The post template in the archive list.
98
+ - `edit.html` - Contains the markup used to build the suggest edit link on the page.
99
+ - `meta.html` - Includes the post meta data such as the comment link, date, and tags
100
+ - `tags.html` - Includes the list of tags in the top of a post.
101
+
102
+ ### Styles
103
+ There are two primary style sheets that are referenced in the `_includes\head.html` file. You'll notice that both reference a `.css` extension as opposed to a `.scss` extension. This is because Jekyll compiles the SASS to CSS:
104
+
105
+ 1. `assets\style.scss` - This references the `_sass\SpaacedOut.scss` file which in turn includes `variables\variables.scss` and `core\core.scss`, both found in the `_sass` directory.
106
+ 2. `assets\syntax-highlight.scss` - This applies syntax highlighting to the Rouge highlight plugin for Jekyll. This was modified slightly from the post found at [https://textuploader.com/1odmf](https://jasong.us/3fAIFKa).
107
+
108
+ ### Included Pages
109
+ Inside of the `assets` folder, you'll find a `pages` directory. Currently, only the `archives.md` file exists inside of this directory. This file displays the _archive_ menu option in the theme and lists the posts in descending order by year.
110
+
111
+ ### Scripts
112
+ Inside of the `assets` folder, you'll find a `js\utils.js` file. You'll notice that throughout the site, I'm not using a JavaScript framework, such as jQuery, or a CSS framework, like BootStrap. The goal is to keep this theme very lightweight. So, the `utils.js` file contains a namespaced list of functions.
113
+
114
+ ### Plugins
115
+ The following plugins are installed in the *SpaceOut* theme:
116
+
117
+ - `jekyll-avatar` - For usage, visit [benbalter/jekyll-avatar](https://jasong.us/2WdRFNL). This allows you to quickly and easily add a specified user's GitHub avatar to your site.
118
+ - `jekyll-feed` - For usage, visit [jekyll/jekyll-feed](https://jasong.us/2WCveR0). This plugin will automatically generate an Atom feed at /feed.xml that can be overwritten.
119
+ - `jekyll-paginate` - For usage, visit [jekyll/jekyll-paginate](https://jasong.us/3drrhp1). While this plugin is no longer active, it remains the easiest way to paginate in GitHug pages.
120
+ - `jekyll-remote-theme` - For usage, visit [benbalter/jekyll-remote-theme](https://jasong.us/3d65jIj). This will allow you to point at a remove theme.
121
+ - `jekyll-seo-tag` - For usage, visit [jekyll/jekyll-seo-tag](https://jasong.us/2ynPApj). This provides many SEO tags at the head of the site.
122
+ - `jekyll-sitemap` - For usage, visit [jekyll/jekyll-sitemap](https://jasong.us/2ynRztL). This plugin generates a sitemaps.org compatible sitemap for your site.
123
+
124
+ # Contributing
125
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/jasongaylord/SpaacedOut](https://jasong.us/2ywUm3C).
126
+
127
+ # Development
128
+ I've blogged about getting started with themes and Jekyl. You can read more about it at [https://www.jasongaylord.com/blog/creating-a-jekyll-theme-from-windows](https://jasong.us/35luIer)
129
+
130
+ # License
131
+ The theme is available as open source under the terms of the [MIT License](https://jasong.us/2zlpRh5).
@@ -0,0 +1,3 @@
1
+ {% if site.comments.disqus_shortname %}
2
+ {% include comments/disqus_comments.html %}
3
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ {% if site.comments.disqus_shortname %}
2
+ {% include comments/disqus_comments_link.html %}
3
+ {% endif %}
@@ -0,0 +1,20 @@
1
+ {% if page.comments != false %}
2
+
3
+ <div id="disqus_thread"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+
13
+ s.src = 'https://{{ site.comments.disqus_shortname }}.disqus.com/embed.js';
14
+
15
+ s.setAttribute('data-timestamp', +new Date());
16
+ (d.head || d.body).appendChild(s);
17
+ })();
18
+ </script>
19
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ {% if post.disqus_identifier %}
2
+ {% assign disqus_identifier = post.disqus_identifier %}
3
+ {% else %}
4
+ {% assign disqus_identifier = page.disqus_identifier %}
5
+ {% endif %}
6
+
7
+ <span class="comments"><a href="{{ post.url }}#disqus_thread"{% if disqus_identifier %} data-disqus-identifier="{{ disqus_identifier }}"{% endif %}>comments</a></span>
@@ -0,0 +1,2 @@
1
+ </div>
2
+ </blockquote>
@@ -0,0 +1,3 @@
1
+ <footer>
2
+ &copy; 2020 {{ site.title }}. Theme from <a href="https://github.com/jasongaylord/SpaacedOut" target="_blank">jasongaylord/SpaacedOut</a>.
3
+ </footer>
@@ -0,0 +1,22 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ {% feed_meta %}
6
+ {% seo %}
7
+ {% if site.twitter_username %}{% include head/twitter.html %}{% endif %}
8
+ {% include head/stylesheets.html %}
9
+ <script src="{{ '/assets/js/utils.js' | relative_url }}"></script>
10
+ {% if jekyll.environment == 'production' and site.google.analytics %}
11
+ {% include head/google-analytics.html %}
12
+ {% endif %}
13
+ {% if jekyll.environment == 'production' and site.google.adsense %}
14
+ {% include head/google-adsense.html %}
15
+ {% endif %}
16
+ {% if site.content.head-s %}
17
+ {% include head-suffix.html %}
18
+ {% endif %}
19
+ {% if site.content.head-suffix %}
20
+ {% include {{ site.content.head-suffix }} %}
21
+ {% endif %}
22
+ </head>
@@ -0,0 +1 @@
1
+ <script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
@@ -0,0 +1,6 @@
1
+ <script>
2
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
3
+ ga('create', '{{ site.google.analytics }}', 'auto');
4
+ ga('send', 'pageview');
5
+ </script>
6
+ <script async src='https://www.google-analytics.com/analytics.js'></script>
@@ -0,0 +1,4 @@
1
+ <link rel="stylesheet" href="{{ '/assets/style.css' | relative_url }}">
2
+ <link rel="stylesheet" href="{{ '/assets/syntax-highlight.css' | relative_url }}">
3
+ <link href="https://fonts.googleapis.com/css?family=Merriweather:400|Lato|Raleway:700,900" rel="stylesheet">
4
+ <script src="https://kit.fontawesome.com/506794c6fa.js" crossorigin="anonymous"></script>
@@ -0,0 +1,8 @@
1
+ <meta name="twitter:site" content="{{ site.twitter_username }}" />
2
+ <meta name="twitter:creator" content="{{ site.twitter_username }}" />
3
+ <meta name="twitter:card" content="summary">
4
+ <meta name="twitter:card" content="summary_large_image" />
5
+ <meta name="twitter:title" content="{{ post.title | default:page.title | default:site.title }}" />
6
+ <meta name="twitter:description" content="{{ post.description | default:page.description | default:site.description }}" />
7
+ <meta name="twitter:url" content="{{ site.url }}" />
8
+ {% if post.excerpt_image or page.excerpt_image or site.avatar_url %}<meta name="twitter:image" content="{{ post.excerpt_image | default:page.excerpt_image | default:site.avatar_url }}" />{% endif %}<meta name="twitter:site" content="@{{ site.twitter_username }}" />
@@ -0,0 +1,43 @@
1
+ <header class="header">
2
+ {% if site.contact.avatar-image %}
3
+ <a href="{{ "/" | relative_url }}"><img src="{{ site.contact.avatar-image }}" alt="{{ site.title | escape }}" class="site-avatar"></a>
4
+ {% endif %}
5
+ <a href="{{ "/" | relative_url }}" class="site-title" rel="author">{{ site.title | escape }}</a>
6
+ {% if site.subtitle %}
7
+ <div class="site-subtitle">
8
+ {{ site.subtitle }}
9
+ </div>
10
+ {% endif %}
11
+ {% if site.content.header-s %}
12
+ {% include header-suffix.html %}
13
+ {% endif %}
14
+ {% if site.content.header-suffix %}
15
+ {% include {{ site.content.header-suffix }} %}
16
+ {% endif %}
17
+
18
+ <div id="menu-toggle" class="menu-toggle"><i class="fas fa-bars" aria-hidden="true"></i><i class="fas fa-times" aria-hidden="true"></i></div>
19
+
20
+ <div class="main-navigation" aria-label="Main Navigation">
21
+ {% assign page_paths = site.pages | where: 'include_nav', true | map: "path" %}
22
+ {% if page_paths %}
23
+ <nav class="site-nav">
24
+ <ul>
25
+ {% for path in page_paths %}
26
+ {% assign my_page = site.pages | where: "path", path | first %}
27
+ {% if my_page.title or my_page.nav_title %}
28
+ {% assign title = my_page.nav_title | default: my_page.title %}
29
+ <li><a class="nav-link" href="{{ my_page.url | relative_url }}">{{ title | escape }}</a></li>
30
+ {% endif %}
31
+ {% endfor %}
32
+ {% if site.contact.url %}
33
+ <li><a class="page-link" href="{{ site.contact.url }}">Contact</a></li>
34
+ {% endif %}
35
+ </ul>
36
+ </nav>
37
+ {% endif %}
38
+
39
+ <div class="social-links">
40
+ {% include social-links.html %}
41
+ </div>
42
+ </div>
43
+ </header>
@@ -0,0 +1,2 @@
1
+ <blockquote>
2
+ <div class="notice info">
@@ -0,0 +1,10 @@
1
+ <!-- pagination -->
2
+ <!-- Pagination adapted from https://blog.webjeda.com/jekyll-pagination/ -->
3
+ {% if paginator.total_pages > 1 %}
4
+ {% assign current_modulo = paginator.page | minus: 1 | modulo: site.page_group_size | plus: 1 %}
5
+ {% assign low_page = paginator.page | minus: current_modulo | plus: 1 %}
6
+ {% assign high_page = low_page | plus: site.page_group_size | minus: 1 | at_most: paginator.total_pages %}
7
+ <div class="pagination">
8
+ {% if paginator.previous_page %}<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-prev">&laquo; Prev</a>{% else %}<span class="prev">&laquo; Prev</span>{% endif %}{% if low_page > 1 %}<a href="{{ site.baseurl }}/" class="page-num">1</a>{% assign previous_page_group = low_page | minus: 1 %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', previous_page_group }}" class="page-num">...</a>{% endif %}{% for page in (low_page..high_page) %}{% if page == paginator.page %}<span class="page-num">{{ page }}</span>{% elsif page == 1 %}<a href="/" class="page-num">{{ page }}</a>{% else %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page-num">{{ page }}</a>{% endif %}{% endfor %}{% if paginator.total_pages > high_page %}{% assign next_page_group = high_page | plus: 1 %}{% if next_page_group < paginator.total_pages %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', next_page_group }}" class="page-total"> ...</a>{% endif %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', paginator.total_pages }}" class="page-total">{{paginator.total_pages}}</a>{% endif %}{% if paginator.next_page %}<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-next">Next &raquo;</a>{% else %}<span class="next">Next &raquo;</span>{% endif %}
9
+ </div>
10
+ {% endif %}
@@ -0,0 +1,19 @@
1
+ {% capture date %}{{ post.date }}{% endcapture %}
2
+ {% capture this_year %}{{ date | date: "%Y" }}{% endcapture %}
3
+ {% capture number %}{{ forloop.length }}{% endcapture %}
4
+ {% unless year == this_year %}
5
+ {% assign year = this_year %}
6
+ {% unless forloop.first %}
7
+ </ul>
8
+ {% endunless %}
9
+ <h2 class="year">{{ date | date: "%Y" }}</h2>
10
+ <ul>
11
+ {% endunless %}
12
+ <li>
13
+ <a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a>
14
+ <div class="meta">
15
+ {% if site.comments.enabled and site.comments.show_count == true %}
16
+ {% include comments/comments_link.html %}
17
+ {% endif %}
18
+ </div>
19
+ </li>
@@ -0,0 +1,11 @@
1
+ {% if post.url %}
2
+ {% assign path = post.path %}
3
+ {% else %}
4
+ {% assign path = page.path %}
5
+ {% endif %}
6
+ {% assign git_owner = site.git.owner | default: 'github' %}
7
+ {% assign git_host = site.git.host | default: 'https://github.com/' %}
8
+ {% assign git_repository = site.git.repository | default: site.github.repository_url | default: 'jekyll' %}
9
+ {% assign git_branch = site.git.branch | default: site.github.source.branch | default: 'gh-pages' %}
10
+
11
+ <a href="{{ git_host }}{{ git_owner }}//{{ git_repository }}/edit/{{ git_branch }}/{{ path }}" target="_blank">suggest edit</a>
@@ -0,0 +1,23 @@
1
+ <div class="meta">
2
+ <ul class="tags">{% include post/tags.html %}</ul>
3
+ <div class="post-date">
4
+ <div class="meta-part">
5
+ <i class="far fa-calendar-alt"></i>
6
+ <time class="date dt-published" datetime="{{ page.date | default:post.date | date_to_xmlschema }}" itemprop="datePublished">
7
+ {% assign date_format = "%b %-d, %Y" %}
8
+ {{ page.date | default:post.date | date: date_format }}
9
+ </time>
10
+ <span class="vertical-bar">|</span>
11
+ </div>
12
+ {% if site.comments.enabled and site.comments.show_count == true %}
13
+ <div class="meta-part">
14
+ {% include comments/comments_link.html %}
15
+ <span class="vertical-bar">|</span>
16
+ </div>
17
+ {% endif %}
18
+ <div class="meta-part">
19
+ <i class="fas fa-pencil-alt"></i>
20
+ <span class="edit">{% include post/edit.html %}</span>
21
+ </div>
22
+ </div>
23
+ </div>
@@ -0,0 +1,4 @@
1
+ {% assign tags = page.tags | default: post.tags %}
2
+ {% for tag in tags %}
3
+ <li><a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a></li>
4
+ {% endfor %}
@@ -0,0 +1,11 @@
1
+ <ul class="social-media-list">
2
+ {% if site.social.facebook %}<li><a href="https://www.facebook.com/{{ site.social.facebook | cgi_escape | escape }}" target="_blank"><i class="fab fa-facebook"></i></a></li>{% endif %}
3
+ {% if site.social.github %}<li><a href="https://github.com/{{ site.social.github | cgi_escape | escape }}" target="_blank"><i class="fab fa-github"></i></a></li>{% endif %}
4
+ {% if site.social.instagram %}<li><a href="https://instagram.com/{{ site.social.instagram | cgi_escape | escape }}" target="_blank"><i class="fab fa-instagram"></i></a></li>{% endif %}
5
+ {% if site.social.linkedin %}<li><a href="https://www.linkedin.com/in/{{ site.social.linkedin | cgi_escape | escape }}" target="_blank"><i class="fab fa-linkedin"></i></a></li>{% endif %}
6
+ {% if site.social.pinterest %}<li><a href="https://www.pinterest.com/{{ site.social.pinterest | cgi_escape | escape }}" target="_blank"><i class="fab fa-pinterest"></i></a></li>{% endif %}
7
+ {% if site.social.stackoverflow %}<li><a href="https://stackoverflow.com/users/{{ site.social.stackoverflow | cgi_escape | escape }}/" target="_blank"><i class="fab fa-stack-overflow"></i></a></li>{% endif %}
8
+ {% if site.social.twitter %}<li><a href="https://twitter.com/{{ site.social.twitter | cgi_escape | escape }}" target="_blank"><i class="fab fa-twitter"></i></a></li>{% endif %}
9
+ {% if site.social.youtube %}<li><a href="https://youtube.com/{{ site.social.youtube | cgi_escape | escape }}" target="_blank"><i class="fab fa-youtube"></i></a></li>{% endif %}
10
+ {% if site.rss %}<li><a href="{{ site.feed.url | "/feed.xml" }}" target="_blank"><i class="fas fa-rss"></i></a></li>{% endif %}
11
+ </ul>
@@ -0,0 +1,2 @@
1
+ <blockquote>
2
+ <div class="notice warning">