millennial 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bb2dd80edda25e0cc99ff57be8abe6e464e0cc21386cf9097b812b9f4e4aa82a
4
+ data.tar.gz: 13542f3cd48af48167df96b4ba7a05869a5ba798eda5f8b927d25e4e651c93ff
5
+ SHA512:
6
+ metadata.gz: e0f4075ce7605b174925df4b59e18a160b841a9ed8d5d3a37ffd9ff3af0629c3f3afb58a108db11e90e3c75ba37f99e432a4916105f3f6f4f35a014c061faba4
7
+ data.tar.gz: b2d249ebab4ce83d82107fcb3c954eda67389d926cf6c5b0e36303bd92a0da3b5eb290224115156d3aab0e7def6274604b2eeff8214932dd9e06ff526d41df99
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Paul Le
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,267 @@
1
+ # Millennial
2
+
3
+ Millennial is a minimalist Jekyll theme for running a simple, clean, content-focused publishing platform for your publication site or blog through [Github Pages](https://pages.github.com/), or on your own server. Everything that you will ever need to know about this Jekyll theme is included in the README below, which you can also find in [the demo site](https://lenpaul.github.io/Millennial/). For a guide on how to start a blog or personal website using Jekyll and GitHub Pages, please check out [this article](https://hungryminds.ca/how-to-start-a-blog-or-personal-website-using-jekyll-and-github-pages/).
4
+
5
+ ![alt text](https://user-images.githubusercontent.com/8409329/32801138-33a72030-c94a-11e7-8a62-6184e6df5a8f.png "Millennial Demo Image")
6
+
7
+ ## Notable features
8
+
9
+ * Compatible with GitHub Pages.
10
+
11
+ * Support for Jekyll's built-in Sass/SCSS preprocessor and data files for making customizing easier.
12
+
13
+ * [Google Analytics](https://www.google.com/analytics/) support.
14
+
15
+ * Commenting support powered by [Disqus](https://disqus.com/).
16
+
17
+ * Optimized for search engines.
18
+
19
+ * LaTeX support through [MathJax](https://www.mathjax.org/).
20
+
21
+ ## Table of Contents
22
+
23
+ 1. [Introduction](#introduction)
24
+ 1. [What is Jekyll](#what-is-jekyll)
25
+ 2. [Never Used Jeykll Before?](#never-used-jekyll-before)
26
+ 2. [Installation](#installation)
27
+ 1. [GitHub Pages Installation](#github-pages-installation)
28
+ 2. [Local Installation](#local-installation)
29
+ 3. [Directory Structure](#directory-structure)
30
+ 4. [Starting From Scratch](#starting-from-scratch)
31
+ 3. [Configuration](#configuration)
32
+ 1. [Sample Posts](#sample-posts)
33
+ 2. [Site Variables](#site-variables)
34
+ 3. [Adding Menu Pages](#adding-menu-pages)
35
+ 4. [Posts](#posts)
36
+ 5. [Layouts](#layouts)
37
+ 6. [YAML Front Block Matter](#yaml-front-block-matter)
38
+ 4. [Features](#features)
39
+ 1. [Design Considerations](#design-considerations)
40
+ 2. [Disqus](#disqus)
41
+ 3. [Google Analytics](#google-analytics)
42
+ 4. [RSS Feeds](#rss-feeds)
43
+ 5. [Social Media Icons](#social-media-icons)
44
+ 6. [MathJax](#mathjax)
45
+ 7. [Syntax Highlighting](#syntax-highlighting)
46
+ 8. [Markdown](#markdown)
47
+ 5. [Everything Else](#everything-else)
48
+ 6. [Contributing](#Contributing)
49
+ 7. [Questions?](#questions)
50
+ 8. [Credits](#credits)
51
+ 9. [License](#license)
52
+
53
+ ## Introduction
54
+
55
+ Millennial is a Jekyll theme that was built to be 100% compatible with [GitHub Pages](https://pages.github.com/). If you are unfamiliar with GitHub Pages, you can check out [their documentation](https://help.github.com/categories/github-pages-basics/) for more information. [Jonathan McGlone's guide](http://jmcglone.com/guides/github-pages/) on creating and hosting a personal site on GitHub is also a good resource.
56
+
57
+ ### What is Jekyll?
58
+
59
+ Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites. Basically, Jekyll takes your page content along with template files and produces a complete website. For more information, visit the [official Jekyll site](https://jekyllrb.com/docs/home/) for their documentation. Codecademy also offers a great course on [how to deploy a Jekyll site](https://www.codecademy.com/learn/deploy-a-website) for complete beginners.
60
+
61
+ ### Never Used Jekyll Before?
62
+
63
+ The beauty of hosting your website on GitHub is that you don't have to actually have Jekyll installed on your computer. Everything can be done through the GitHub code editor, with minimal knowledge of how to use Jekyll or the command line. All you have to do is add your posts to the `_posts` directory and edit the `_config.yml` file to change the site settings. With some rudimentary knowledge of HTML and CSS, you can even modify the site to your liking. This can all be done through the GitHub code editor, which acts like a content management system (CMS).
64
+
65
+ ## Installation
66
+
67
+ ### GitHub Pages Installation
68
+
69
+ To start using Jekyll right away with GitHub Pages, [fork the Millennial repository on GitHub](https://github.com/LeNPaul/Millennial/fork). From there, you can rename your repository to `USERNAME.github.io`, where `USERNAME` is your GitHub username, and edit the `settings.yml` file in the `_data` folder to your liking. Ensure that you have a branch named `gh-pages`. Your website should be ready immediately at 'http://USERNAME.github.io'. Note: if you are hosting several sites under the same GitHub username, then you will have to use [Project Pages instead of User Pages](https://help.github.com/articles/user-organization-and-project-pages/) - just change the repository name to something other than 'http://USERNAME.github.io'.
70
+
71
+ Head over to the `_posts` directory to view all the posts that are currently on the website, and to see examples of what post files generally look like. You can simply just duplicate the template post and start adding your own content.
72
+
73
+ ### Local Installation
74
+
75
+ For a full local installation of Millennial, [download your own copy of Millennial](https://github.com/LeNPaul/Millennial/archive/gh-pages.zip) and unzip it into it's own directory. From there, open up your favorite command line tool, enter `bundle install`, and then enter `jekyll serve`. Your site should be up and running locally at [http://localhost:4000](http://localhost:4000).
76
+
77
+ ### Directory Structure
78
+
79
+ If you are familiar with Jekyll, then the Millennial directory structure shouldn't be too difficult to navigate. The following some highlights of the differences you might notice between the default directory structure. More information on what these folders and files do can be found in the [Jekyll documentation site](https://jekyllrb.com/docs/structure/).
80
+
81
+ ```bash
82
+ Millennial/
83
+ ├── _data # Data files
84
+ | └── settings.yml # Theme settings and custom text
85
+ ├── _includes # Theme includes
86
+ ├── _layouts # Theme layouts (see below for details)
87
+ ├── _posts # Where all your posts will go
88
+ ├── assets # Style sheets and images are found here
89
+ | ├── css # Style sheets go here
90
+ | | └── _sass # Folder containing SCSS files
91
+ | | └── main.scss # Main SCSS file
92
+ | | └── syntax.css # Style sheet for code syntax highlighting
93
+ | └── img # Images go here
94
+ ├── pages # Category pages
95
+ ├── _config.yml # Site build settings
96
+ ├── Gemfile # Ruby Gemfile for managing Jekyll plugins
97
+ ├── index.md # Home page
98
+ ├── LICENSE.md # License for this theme
99
+ ├── README.md # Includes all of the documentation for this theme
100
+ └── rss-feed.xml # Generates RSS 2.0 file which Jekyll points to
101
+ ```
102
+
103
+ ### Starting From Scratch
104
+
105
+ To completely start from scratch, simply delete all the files in the `_posts`, `assets/img`, and `pages` folder, and add your own content. You may also replace the `README.md` file with your own README. Everything in the `_data` folder and `_config.yml` file can be edited to suit your needs. You may also change the `favicon.ico` file to your own favicon.
106
+
107
+ ## Configuration
108
+
109
+ ### Sample Posts
110
+
111
+ Visit the [the demo site](https://lenpaul.github.io/Millennial/) to find sample posts that show what different types of text formatting look like. You can find these posts in the `_posts` folder, which show what the best practices for setting up your own site are.
112
+
113
+ ### Site Variables
114
+
115
+ To change site build settings, edit the `_config.yml` file found in the root of your repository, which you can tweak however you like. More information on configuration settings and plugins can be found on [the Jekyll documentation site](https://jekyllrb.com/docs/configuration/). This is also where you will be able to customize the title, description, and the author/owner of your site.
116
+
117
+ If you are hosting your site on GitHub Pages, then committing a change to the `_config.yml` file will force a rebuild of your site with Jekyll. Any changes made should be viewable soon after. If you are hosting your site locally, then you must run `jekyll serve` again for the changes to take place.
118
+
119
+ In the `settings.yml` file found in the `_data` folder, you will be able to customize your site settings, such as setting Disqus comments, Google Analytics, what shows up in your menu, and social media information.
120
+
121
+ ### Adding Menu Pages
122
+
123
+ The menu pages are found in the `menu` folder in the root directory, and can be added to your menu in the `settings.yml` file.
124
+
125
+ ### Posts
126
+
127
+ You will find example posts in your `_posts` directory. Go ahead and edit any post and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
128
+
129
+ To add new posts, simply add a file in the `_posts` directory that follows the convention of `YYYY-MM-DD-name-of-post.md` and includes the necessary front matter. Take a look at any sample post to get an idea about how it works. If you already have a website built with Jekyll, simply copy over your posts to migrate to Millennial.
130
+
131
+ ### Layouts
132
+
133
+ There are two main layout options that are included with Millennial: post and page. Layouts are specified through the [YAML front block matter](https://jekyllrb.com/docs/frontmatter/). Any file that contains a YAML front block matter will be processed by Jekyll. For example:
134
+
135
+ ```
136
+ ---
137
+ layout: post
138
+ title: "Example Post"
139
+ ---
140
+ ```
141
+
142
+ Examples of what posts looks like can be found in the `_posts` directory, which includes this post you are reading right now. Posts are the basic blog post layout, which includes a header image, post content, author name, date published, social media sharing links, and related posts.
143
+
144
+ Pages are essentially the post layout without any of the extra features of the posts layout. An example of what pages look like can be found at the [documentation page](https://lenpaul.github.io/Millennial/pages/documentation.html).
145
+
146
+ In addition to the two main layout options above, there are also custom layouts that have been created for the [home page](https://lenpaul.github.io/Millennial/) and the [contacts page](https://lenpaul.github.io/Millennial/pages/contact.html). These are simply just page layouts with some [Liquid template code](https://shopify.github.io/liquid/). Check out the `index.html` file in the root directory for what the code looks like.
147
+
148
+ ### YAML Front Block Matter
149
+
150
+ The recommended YAML front block is:
151
+
152
+ ```
153
+ ---
154
+ layout:
155
+ title:
156
+ author:
157
+ categories:
158
+ tags: []
159
+ image:
160
+ ---
161
+ ```
162
+
163
+ `layout` specifies which layout to use, `title` is the page or post title, `categories` can be used to better organize your posts, `tags` are used when generating related posts based on the topic of the post, and `image` specifies which images to use. Have a look at some posts in the `_posts` directory to see how these variables are set.
164
+
165
+ ## Features
166
+
167
+ ### Design Considerations
168
+
169
+ Millennial was designed to be a minimalist theme in order for the focus to remain on your content. For example, links are signified mainly through an underline text-decoration, in order to maximize the perceived affordance of clickability (I originally just wanted to make the links a darker shade of grey).
170
+
171
+ ### Disqus
172
+
173
+ Millennial supports comments at the end of posts through [Disqus](https://disqus.com/). In order to activate Disqus commenting, set `disqus.comments` to true in the `_data/settings.yml` file. If you do not have a Disqus account already, you will have to set one up, and create a profile for your website. You will be given a `disqus_shortname` that will be used to generate the appropriate comments sections for your site. More information on [how to set up Disqus](http://www.perfectlyrandom.org/2014/06/29/adding-disqus-to-your-jekyll-powered-github-pages/).
174
+
175
+ ### Google Analytics
176
+
177
+ It is possible to track your site statistics through [Google Analytics](https://www.google.com/analytics/). Similar to Disqus, you will have to create an account for Google Analytics, and enter the correct Google ID for your site under `google-ID` in the `settings.yml` file. More information on [how to set up Google Analytics](https://michaelsoolee.com/google-analytics-jekyll/). Note: If you are not using Google Analytics, please change `google-ID` to an empty string.
178
+
179
+ ### RSS Feeds
180
+
181
+ Atom is supported by default through [jekyll-feed](https://github.com/jekyll/jekyll-feed). With jekyll-feed, you can set configuration variables such as 'title', 'description', and 'author', in the `_config.yml` file.
182
+
183
+ RSS 2.0 is also supported through [RSS auto-discovery](http://www.rssboard.org/rss-autodiscovery). The `rss-feed.xml` file (based on the template found at [jekyll-rss-feeds](https://github.com/snaptortoise/jekyll-rss-feeds)) that the feed path points to when using RSS 2.0 is automatically generated based on the appropriate configuration variables found in `_data/settings.yml`.
184
+
185
+ To use RSS 2.0, ensure the following is done:
186
+
187
+ * Uncomment the last two lines in the `_config.yml` file.
188
+
189
+ * In `_data/settings.yml`, under 'social', comment out the rss-square that points to `feed.xml`, and uncomment the rss-square that points to `rss-feed.xml`.
190
+
191
+ * In `_includes/head.html`, comment out `{% feed_meta %}` and uncomment the line under the RSS 2.0 comment.
192
+
193
+ ### Social Media Icons
194
+
195
+ All social media icons are courtesy of [Font Awesome](http://fontawesome.io/). You can change which icons appear, as well as the account that they link to, in the `settings.yml` file in the `_data` folder.
196
+
197
+ ### MathJax
198
+
199
+ Millennial comes out of the box with [MathJax](https://www.mathjax.org/), which allows you to display mathematical equations in your posts through the use of [LaTeX](http://www.andy-roberts.net/writing/latex/mathematics_1).
200
+
201
+ ### Syntax Highlighting
202
+
203
+ Millennial provides syntax highlighting through [fenced code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/). Syntax highlighting allows you to display source code in different colors and fonts depending on what programming language is being displayed. You can find the full list of supported programming languages [here](https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers). Another option is to embed your code through [Gist](https://en.support.wordpress.com/gist/).
204
+
205
+ ### Markdown
206
+
207
+ As always, Jekyll offers support for GitHub Flavored Markdown, which allows you to format your posts using the [Markdown syntax](https://guides.github.com/features/mastering-markdown/). Examples of these text formatting features can be seen below. You can find this post in the `_posts` directory as well as the `README.md` file.
208
+
209
+ ## Everything Else
210
+
211
+ Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll's GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
212
+
213
+ [jekyll-docs]: http://jekyllrb.com/docs/home
214
+ [jekyll-gh]: https://github.com/jekyll/jekyll
215
+ [jekyll-talk]: https://talk.jekyllrb.com/
216
+
217
+ ## Contributing
218
+
219
+ If you would like to make a feature request, or report a bug or typo in the documentation, then please [submit a GitHub issue](https://github.com/LeNPaul/Millennial/issues/new). If you would like to make a contribution, then feel free to [submit a pull request](https://help.github.com/articles/about-pull-requests/) - as a bonus, I will credit all contributors below! If this is your first pull request, it may be helpful to read up on the [GitHub Flow](https://guides.github.com/introduction/flow/) first.
220
+
221
+ Millennial has been designed as a base for users to customize and fit to their own unique needs. Please keep this in mind when requesting features and/or submitting pull requests. Some examples of changes that I would love to see are things that would make the site easier to use, or better ways of doing things. Please avoid changes that do not benefit the majority of users.
222
+
223
+ ## Questions?
224
+
225
+ This theme is completely free and open source software. You may use it however you want, as it is distributed under the [MIT License](http://choosealicense.com/licenses/mit/). If you are having any problems, any questions or suggestions, feel free to [tweet at me](https://twitter.com/intent/tweet?text=My%question%about%Millennial%is:%&via=paululele), or [file a GitHub issue](https://github.com/lenpaul/Millennial/issues/new).
226
+
227
+ ## Credits
228
+
229
+ ### Creator
230
+
231
+ #### Paul Le
232
+
233
+ * [www.lenpaul.com](http://lenpaul.com)
234
+
235
+ * [Twitter](https://twitter.com/paululele)
236
+
237
+ * [GitHub](https://github.com/LeNPaul)
238
+
239
+ ### Contributors
240
+
241
+ * [b-morawiec](https://github.com/b-morawiec)
242
+
243
+ * [JainVikas](https://github.com/JainVikas)
244
+
245
+ * [mschaeffner](https://github.com/mschaeffner)
246
+
247
+ * [cfe316](https://github.com/cfe316)
248
+
249
+ * [JeremyGonzales](https://github.com/JeremyGonzales)
250
+
251
+ ### Icons + Demo Images
252
+
253
+ * [Death to Stock](https://deathtothestockphoto.com/)
254
+
255
+ * [Font Awesome](http://fontawesome.io/)
256
+
257
+ ### Other
258
+
259
+ * [Jekyll](https://jekyllrb.com/)
260
+
261
+ * [Free Code Camp](https://www.freecodecamp.org)
262
+
263
+ * [Khan Academy](https://www.khanacademy.org/)
264
+
265
+ ## License
266
+
267
+ Open sourced under the [MIT license](https://github.com/LeNPaul/Millennial/blob/gh-pages/LICENSE.md).
@@ -0,0 +1,14 @@
1
+ <section class="disqus">
2
+ <div id="disqus_thread"></div>
3
+ <script type="text/javascript">
4
+ var disqus_shortname = "{{ site.data.settings.disqus.disqus_shortname }}";
5
+ var disqus_identifier = "{{ page.url }}";
6
+ (function() {
7
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
8
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
9
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
10
+ })();
11
+ </script>
12
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
13
+ <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
14
+ </section>
@@ -0,0 +1,7 @@
1
+ <article>
2
+ <a href="{{ site.github.url }}{{ post.url }}">
3
+ <div class="featured-post" {% if post.image %}style="background-image:url({{ site.github.url }}/assets/img/{{ post.image }})"{% endif %}>
4
+ <h2><span>{{ post.title }}</span></h2>
5
+ </div>
6
+ </a>
7
+ </article>
@@ -0,0 +1,6 @@
1
+ <footer class="footer">
2
+ {% for item in site.data.settings.social %}
3
+ <a href="{{ item.link }}" class="menu-link" target="_blank"><i class="fa fa-{{ item.icon }}" aria-hidden="true"></i></a>
4
+ {% endfor %}
5
+ <div class="footer-description"><a href="{{ site.github.url }}/">{{ site.title }} | {{ site.description }} by {{ site.author }}</a></div>
6
+ </footer>
@@ -0,0 +1,8 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6
+ ga('create', '{{ site.data.settings.google-ID }}', 'auto');
7
+ ga('send', 'pageview');
8
+ </script>
@@ -0,0 +1,27 @@
1
+ <head>
2
+ <title>
3
+ {% if page.title == "Home" %}
4
+ {{ site.title }} | {{ site.description }}
5
+ {% else %}
6
+ {{ page.title }} | {{ site.title }}
7
+ {% endif %}
8
+ </title>
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <meta charset="utf-8">
11
+ <link rel="stylesheet" href="{{ site.github.url }}/assets/css/main.css">
12
+ <link rel="stylesheet" href="{{ site.github.url }}/assets/css/syntax.css">
13
+ <!-- Use Atom -->
14
+ {% feed_meta %}
15
+ <!-- RSS-v2.0
16
+ <link href="{{ site.github.url }}/rss-feed.xml" type="application/rss+xml" rel="alternate" title="{{ site.title }} | {{ site.description }}"/>
17
+ //-->
18
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Source+Code+Pro">
19
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
20
+ <script type="text/javascript" async
21
+ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">
22
+ </script>
23
+ <!-- Google Analytics -->
24
+ {% include google-analytics.html %}
25
+ <!-- Use Jekyll SEO plugin -->
26
+ {% seo %}
27
+ </head>
@@ -0,0 +1,24 @@
1
+ <header class="site-header">
2
+ <h3 class="site-title">
3
+ <a href="{{ site.github.url }}/">{{ site.title }}</a>
4
+ </h3>
5
+ <nav class="menu-list">
6
+ {% for item in site.data.settings.menu %}
7
+ <a href="{{ site.github.url }}/{{ item.url }}" class="menu-link">{{ item.name }}</a>
8
+ {% endfor %}
9
+ {% for item in site.data.settings.social %}
10
+ <a href="{{ item.link }}" class="menu-link" target="_blank"><i class="fa fa-{{ item.icon }}" aria-hidden="true"></i></a>
11
+ {% endfor %}
12
+ </nav>
13
+ <div class="dropdown">
14
+ <button class="dropbtn"><i class="fa fa-bars" aria-hidden="true"></i></button>
15
+ <div class="dropdown-content">
16
+ {% for item in site.data.settings.menu %}
17
+ <a href="{{ site.github.url }}/{{ item.url }}" class="menu-link">{{ item.name }}</a>
18
+ {% endfor %}
19
+ {% for item in site.data.settings.social %}
20
+ <a href="{{ item.link }}" class="menu-link" target="_blank"><i class="fa fa-{{ item.icon }}" aria-hidden="true"></i></a>
21
+ {% endfor %}
22
+ </div>
23
+ </div>
24
+ </header>
@@ -0,0 +1,17 @@
1
+ <span class="post-date">
2
+ {{ site.data.settings.post_date_prefix }}
3
+ {% assign d = page.date | date: "%-d" %}
4
+ {{ page.date | date: "%B" }}
5
+ {% case d %}
6
+ {% when '1' or '21' or '31' %}{{ d }}st
7
+ {% when '2' or '22' %}{{ d }}nd
8
+ {% when '3' or '23' %}{{ d }}rd
9
+ {% else %}{{ d }}th{% endcase %},
10
+ {{ page.date | date: "%Y" }}
11
+ by
12
+ {% if page.author %}
13
+ {{ page.author }}
14
+ {% else %}
15
+ {{ site.author }}
16
+ {% endif %}
17
+ </span>
@@ -0,0 +1,7 @@
1
+ <div class="post-share">
2
+ <div class="post-date">{{ site.data.settings.sharing_button_prompt }}</div>
3
+ <div class="sharing-icons">
4
+ <a href="https://twitter.com/intent/tweet?text={{ page.title }}&amp;url={{ site.github.url }}{{ page.url }}" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a>
5
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.github.url }}{{ page.url }}&amp;title={{ page.title }}" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a>
6
+ </div>
7
+ </div>
@@ -0,0 +1,29 @@
1
+ <div class="related">
2
+ <h2>{{ site.data.settings.related_posts }}</h2>
3
+ {% assign listed_posts_urls = page.url | split: ' ' %}
4
+ <ul class="related-posts">
5
+ {% for tag in page.tags %}
6
+ {% for mypost in site.tags[tag] limit:2 %}
7
+ {% if listed_posts_urls contains mypost.url %}
8
+ {% else %}
9
+ <li>
10
+ <h3>
11
+ <a href="{{ site.github.url }}{{ mypost.url }}">
12
+ <div class="related-thumbnail">
13
+ {% if mypost.image %}
14
+ <img src="{{ site.url }}{{ site.baseurl }}/assets/img/{{ mypost.image }}">
15
+ {% endif %}
16
+ </div>
17
+ <div class="related-title">
18
+ {{ mypost.title }}
19
+ </div>
20
+ <!--<small>{{ mypost.date | date: "%B %-d, %Y" }}</small>-->
21
+ </a>
22
+ </h3>
23
+ </li>
24
+ {% assign listed_posts_urls = listed_posts_urls | push: mypost.url %}
25
+ {% endif %}
26
+ {% endfor %}
27
+ {% endfor %}
28
+ </ul>
29
+ </div>