jekyll-theme-simple-blog 0.0.1
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.
- checksums.yaml +7 -0
- data/404.md +12 -0
- data/LICENSE +116 -0
- data/README.md +203 -0
- data/_includes/site-header.html +38 -0
- data/_includes/social-metatags.html +130 -0
- data/_layouts/default.html +136 -0
- data/_layouts/home.html +30 -0
- data/_layouts/page.html +10 -0
- data/_layouts/post.html +25 -0
- data/_sass/blog.scss +48 -0
- data/_sass/blog/_base.scss +30 -0
- data/_sass/blog/_layout.scss +142 -0
- data/_sass/jekyll-theme-simple-blog.scss +435 -0
- data/_sass/normalize.scss +424 -0
- data/_sass/rouge-github.scss +209 -0
- data/_sass/variables.scss +23 -0
- data/about.md +15 -0
- data/assets/css/style.scss +4 -0
- data/assets/patterns/asanoha-400px.png +0 -0
- data/assets/patterns/contemporary_china.png +0 -0
- data/assets/patterns/contemporary_china_2.png +0 -0
- data/assets/patterns/new_year_background.png +0 -0
- data/assets/patterns/paisley.png +0 -0
- data/assets/patterns/readme.txt +8 -0
- data/assets/patterns/sayagata-400px.png +0 -0
- data/assets/patterns/seigaiha.png +0 -0
- data/assets/patterns/swirl_pattern.png +0 -0
- data/assets/patterns/symphony.png +0 -0
- data/assets/patterns/upfeathers.png +0 -0
- data/assets/patterns/wov.png +0 -0
- data/contact.md +16 -0
- data/index.md +19 -0
- metadata +91 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4f37e0a7e294c85e269c962b3091eabfe9b30c97
|
4
|
+
data.tar.gz: 96c7d3acbe3a93df9991b5eed619cbc2b096cc28
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bda8eab0edaf4644836f48ff7f30a3b9bcc435d4834ae93df032937b616c7b5e48e24ffd19dba09b8c3ae97bcc20ae8d54aef7f91674644e6405ad2d6e23ff10
|
7
|
+
data.tar.gz: 5e2298feb9a31990195813823ee1ed3624cf2ef4586ee9d02bf9a098b7844c364969f9df79fcfa193083e98d5f0a58ecbb3911891ddd58c0218cd14ed8336cca
|
data/404.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: 404 Error
|
4
|
+
tagline: Ah snap! We could not find what you are looking for!
|
5
|
+
permalink: /404.html
|
6
|
+
header:
|
7
|
+
image: /assets/patterns/sayagata-400px.png
|
8
|
+
---
|
9
|
+
|
10
|
+
Try got get back to the Home Page and start over!
|
11
|
+
|
12
|
+
[Go to the Home Page](./)
|
data/LICENSE
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
CC0 1.0 Universal
|
2
|
+
|
3
|
+
Statement of Purpose
|
4
|
+
|
5
|
+
The laws of most jurisdictions throughout the world automatically confer
|
6
|
+
exclusive Copyright and Related Rights (defined below) upon the creator and
|
7
|
+
subsequent owner(s) (each and all, an "owner") of an original work of
|
8
|
+
authorship and/or a database (each, a "Work").
|
9
|
+
|
10
|
+
Certain owners wish to permanently relinquish those rights to a Work for the
|
11
|
+
purpose of contributing to a commons of creative, cultural and scientific
|
12
|
+
works ("Commons") that the public can reliably and without fear of later
|
13
|
+
claims of infringement build upon, modify, incorporate in other works, reuse
|
14
|
+
and redistribute as freely as possible in any form whatsoever and for any
|
15
|
+
purposes, including without limitation commercial purposes. These owners may
|
16
|
+
contribute to the Commons to promote the ideal of a free culture and the
|
17
|
+
further production of creative, cultural and scientific works, or to gain
|
18
|
+
reputation or greater distribution for their Work in part through the use and
|
19
|
+
efforts of others.
|
20
|
+
|
21
|
+
For these and/or other purposes and motivations, and without any expectation
|
22
|
+
of additional consideration or compensation, the person associating CC0 with a
|
23
|
+
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
|
24
|
+
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
|
25
|
+
and publicly distribute the Work under its terms, with knowledge of his or her
|
26
|
+
Copyright and Related Rights in the Work and the meaning and intended legal
|
27
|
+
effect of CC0 on those rights.
|
28
|
+
|
29
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
30
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
31
|
+
Related Rights"). Copyright and Related Rights include, but are not limited
|
32
|
+
to, the following:
|
33
|
+
|
34
|
+
i. the right to reproduce, adapt, distribute, perform, display, communicate,
|
35
|
+
and translate a Work;
|
36
|
+
|
37
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
38
|
+
|
39
|
+
iii. publicity and privacy rights pertaining to a person's image or likeness
|
40
|
+
depicted in a Work;
|
41
|
+
|
42
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
43
|
+
subject to the limitations in paragraph 4(a), below;
|
44
|
+
|
45
|
+
v. rights protecting the extraction, dissemination, use and reuse of data in
|
46
|
+
a Work;
|
47
|
+
|
48
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
49
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
50
|
+
protection of databases, and under any national implementation thereof,
|
51
|
+
including any amended or successor version of such directive); and
|
52
|
+
|
53
|
+
vii. other similar, equivalent or corresponding rights throughout the world
|
54
|
+
based on applicable law or treaty, and any national implementations thereof.
|
55
|
+
|
56
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention of,
|
57
|
+
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
|
58
|
+
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
|
59
|
+
and Related Rights and associated claims and causes of action, whether now
|
60
|
+
known or unknown (including existing as well as future claims and causes of
|
61
|
+
action), in the Work (i) in all territories worldwide, (ii) for the maximum
|
62
|
+
duration provided by applicable law or treaty (including future time
|
63
|
+
extensions), (iii) in any current or future medium and for any number of
|
64
|
+
copies, and (iv) for any purpose whatsoever, including without limitation
|
65
|
+
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
|
66
|
+
the Waiver for the benefit of each member of the public at large and to the
|
67
|
+
detriment of Affirmer's heirs and successors, fully intending that such Waiver
|
68
|
+
shall not be subject to revocation, rescission, cancellation, termination, or
|
69
|
+
any other legal or equitable action to disrupt the quiet enjoyment of the Work
|
70
|
+
by the public as contemplated by Affirmer's express Statement of Purpose.
|
71
|
+
|
72
|
+
3. Public License Fallback. Should any part of the Waiver for any reason be
|
73
|
+
judged legally invalid or ineffective under applicable law, then the Waiver
|
74
|
+
shall be preserved to the maximum extent permitted taking into account
|
75
|
+
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
|
76
|
+
is so judged Affirmer hereby grants to each affected person a royalty-free,
|
77
|
+
non transferable, non sublicensable, non exclusive, irrevocable and
|
78
|
+
unconditional license to exercise Affirmer's Copyright and Related Rights in
|
79
|
+
the Work (i) in all territories worldwide, (ii) for the maximum duration
|
80
|
+
provided by applicable law or treaty (including future time extensions), (iii)
|
81
|
+
in any current or future medium and for any number of copies, and (iv) for any
|
82
|
+
purpose whatsoever, including without limitation commercial, advertising or
|
83
|
+
promotional purposes (the "License"). The License shall be deemed effective as
|
84
|
+
of the date CC0 was applied by Affirmer to the Work. Should any part of the
|
85
|
+
License for any reason be judged legally invalid or ineffective under
|
86
|
+
applicable law, such partial invalidity or ineffectiveness shall not
|
87
|
+
invalidate the remainder of the License, and in such case Affirmer hereby
|
88
|
+
affirms that he or she will not (i) exercise any of his or her remaining
|
89
|
+
Copyright and Related Rights in the Work or (ii) assert any associated claims
|
90
|
+
and causes of action with respect to the Work, in either case contrary to
|
91
|
+
Affirmer's express Statement of Purpose.
|
92
|
+
|
93
|
+
4. Limitations and Disclaimers.
|
94
|
+
|
95
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
96
|
+
surrendered, licensed or otherwise affected by this document.
|
97
|
+
|
98
|
+
b. Affirmer offers the Work as-is and makes no representations or warranties
|
99
|
+
of any kind concerning the Work, express, implied, statutory or otherwise,
|
100
|
+
including without limitation warranties of title, merchantability, fitness
|
101
|
+
for a particular purpose, non infringement, or the absence of latent or
|
102
|
+
other defects, accuracy, or the present or absence of errors, whether or not
|
103
|
+
discoverable, all to the greatest extent permissible under applicable law.
|
104
|
+
|
105
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
106
|
+
that may apply to the Work or any use thereof, including without limitation
|
107
|
+
any person's Copyright and Related Rights in the Work. Further, Affirmer
|
108
|
+
disclaims responsibility for obtaining any necessary consents, permissions
|
109
|
+
or other rights required for any use of the Work.
|
110
|
+
|
111
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
112
|
+
party to this document and has no duty or obligation with respect to this
|
113
|
+
CC0 or use of the Work.
|
114
|
+
|
115
|
+
For more information, please see
|
116
|
+
<http://creativecommons.org/publicdomain/zero/1.0/>
|
data/README.md
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
# The Simple Blog Theme
|
2
|
+
|
3
|
+
[](https://travis-ci.org/lorepirri/jekyll-theme-simple-blog) [](https://badge.fury.io/rb/jekyll-theme-simple-blog)
|
4
|
+
|
5
|
+
*Simple Blog is a Jekyll theme for GitHub Pages. It is based on [Cayman Blog Theme](https://github.com/lorepirri/cayman-blog). You can [preview the theme to see what it looks like](http://lorepirri.github.io/jekyll-theme-simple-blog), or even [use it today](#usage).*
|
6
|
+
|
7
|
+
<img src="https://raw.githubusercontent.com/lorepirri/jekyll-theme-simple-blog/master/thumbnail.png" alt="Thumbnail of jekyll-theme-simple-blog" style="max-width:30%; border: 1px solid grey;"/> <img src="https://raw.githubusercontent.com/lorepirri/jekyll-theme-simple-blog/master/thumbnail-mobile.png" alt="Thumbnail of jekyll-theme-simple-blog for mobile" style="width: 239px; height: 424px;"/>
|
8
|
+
|
9
|
+
## Install
|
10
|
+
|
11
|
+
Simple Blog Theme has been developed as a Jekyll theme gem for easier use. It is also 100% compatible with GitHub Pages — just with a more involved installation process according to whether you’re _running Jekyll v3.3+ and self-hosting_, or if you’re *hosting with GitHub Pages*.
|
12
|
+
|
13
|
+
## Self hosting
|
14
|
+
|
15
|
+
If you’re running Jekyll v3.3+ and **self-hosting** you can quickly install the theme as Ruby gem:
|
16
|
+
|
17
|
+
1. Add this line to your Jekyll site’s Gemfile:
|
18
|
+
|
19
|
+
```
|
20
|
+
gem "jekyll-theme-simple-blog"
|
21
|
+
```
|
22
|
+
|
23
|
+
2. Add this line to your Jekyll site’s _config.yml file:
|
24
|
+
|
25
|
+
```
|
26
|
+
theme: jekyll-theme-simple-blog
|
27
|
+
```
|
28
|
+
|
29
|
+
3. Then run Bundler to install the theme gem and dependencies:
|
30
|
+
|
31
|
+
```
|
32
|
+
script/bootstrap
|
33
|
+
```
|
34
|
+
|
35
|
+
## Hosting with GitHub Pages
|
36
|
+
|
37
|
+
If you’re *hosting your blog with GitHub Pages* you’ll have to consider this:
|
38
|
+
|
39
|
+
:warning: As stated in the official [Jekyll documentation](https://jekyllrb.com/docs/themes/#installing-a-theme):
|
40
|
+
|
41
|
+
> If you’re publishing your Jekyll site on [GitHub Pages](https://pages.github.com/), note that GitHub Pages supports only some gem-based themes. See [Supported Themes](https://pages.github.com/themes/) in GitHub’s documentation to see which themes are supported.
|
42
|
+
|
43
|
+
Therefore, this theme, as well as many others, can not be installed in the same way as the ones officially supported by GitHub Pages (e.g. Cayman, Minima), a bit more effort has to be put on.
|
44
|
+
|
45
|
+
The easiest way I found to install _Simple Blog Theme_, is [installing the theme gem](gem-install), and then [converting the gem-based theme to regular theme](https://jekyllrb.com/docs/themes/#converting-gem-based-themes-to-regular-themes).
|
46
|
+
|
47
|
+
Alternatively, for new projects, one could fork the whole theme, and keep only the interesting files.
|
48
|
+
|
49
|
+
|
50
|
+
### Gem Install
|
51
|
+
|
52
|
+
This method is preferred for existing _Jekyll blogs_, as well as newly created ones. Notice that the files `index.md`, `about.md`, `contact.md` will be overwritten (only `index.md` is really needed, the other two are just placeholders).
|
53
|
+
|
54
|
+
1. Install the theme gem: ` $ gem install jekyll-theme-simple-blog`
|
55
|
+
3. Run `$ gem env gemdir` to know where the gem was installed
|
56
|
+
4. Open the folder shown in the output
|
57
|
+
5. Open the folder `gems`
|
58
|
+
5. Open the theme folder (e.g. `jekyll-theme-simple-blog-0.0.5`)
|
59
|
+
6. Copy all the files into your newly created or existing blog folder
|
60
|
+
7. Leave empty `theme` your site's `_config.yml`:
|
61
|
+
|
62
|
+
```yml
|
63
|
+
theme:
|
64
|
+
```
|
65
|
+
6. Modify `_config.yml`, `about.md`, `contact.md` for your project
|
66
|
+
7. [Customize the theme](customizing)
|
67
|
+
|
68
|
+
### Install as a Fork
|
69
|
+
|
70
|
+
1. [Fork the repo](https://github.com/lorepirri/jekyll-theme-simple-blog)
|
71
|
+
2. Clone down the repo with `$ git clone git@github.com:username/reponame.git`
|
72
|
+
3. Delete the `screenshot.png` and `screenshot-mobile.png` files
|
73
|
+
3. Empty the `_posts` folder
|
74
|
+
4. Install bundler and gems with `$ script/bootstrap`
|
75
|
+
5. Run Jekyll with `$ script/server`
|
76
|
+
6. Modify `_config.yml`, `about.md`, `contact.md` for your project
|
77
|
+
7. [Customize the theme](customizing)
|
78
|
+
|
79
|
+
## Customizing
|
80
|
+
|
81
|
+
### Configuration variables
|
82
|
+
|
83
|
+
Simple Blog will respect the following variables, if set in your site's `_config.yml`:
|
84
|
+
|
85
|
+
```yml
|
86
|
+
title: [The title of your site]
|
87
|
+
description: [A short description of your site's purpose]
|
88
|
+
```
|
89
|
+
|
90
|
+
Additionally, you may choose to set the following optional variables:
|
91
|
+
|
92
|
+
```yml
|
93
|
+
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
|
94
|
+
google_analytics: [Your Google Analytics tracking ID]
|
95
|
+
```
|
96
|
+
|
97
|
+
### RSS feeds
|
98
|
+
|
99
|
+
To enable RSS feeds and also make visible an RSS feeds button in the footer, the [Jekyll Feed plugin](https://github.com/jekyll/jekyll-feed) must be installed.
|
100
|
+
|
101
|
+
Add this line to your site's Gemfile:
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
gem 'jekyll-feed'
|
105
|
+
```
|
106
|
+
|
107
|
+
And then add this line to your site's `_config.yml`:
|
108
|
+
|
109
|
+
```yml
|
110
|
+
gems:
|
111
|
+
- jekyll-feed
|
112
|
+
```
|
113
|
+
|
114
|
+
For more information about configuring this plugin, see the official [Jekyll Feed plugin](https://github.com/jekyll/jekyll-feed) page.
|
115
|
+
|
116
|
+
### SEO tags
|
117
|
+
|
118
|
+
Simple Blog includes simple SEO tags from [jekyll-social-metatags](https://github.com/lorepirri/jekyll-social-metatags). Have a look at the page for its usage.
|
119
|
+
|
120
|
+
The usage is compatible with the plugin [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag), which provides a battle-tested template of crowdsourced best-practices.
|
121
|
+
|
122
|
+
To switch to a better SEO tags however, one should install [Jekyll Feed plugin](https://github.com/jekyll/jekyll-feed):
|
123
|
+
|
124
|
+
1. Add this line to your site's Gemfile:
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
gem 'jekyll-seo-tag'
|
128
|
+
```
|
129
|
+
|
130
|
+
2. And then add this line to your site's `_config.yml`:
|
131
|
+
|
132
|
+
```yml
|
133
|
+
gems:
|
134
|
+
- jekyll-seo-tag
|
135
|
+
```
|
136
|
+
|
137
|
+
3. Replace with the following, the `<!-- jekyll-seo-tag -->` comment in your site's `default.html`:
|
138
|
+
|
139
|
+
```liquid
|
140
|
+
{% seo %}
|
141
|
+
```
|
142
|
+
|
143
|
+
For more information about configuring this plugin, see the official [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag) page.
|
144
|
+
|
145
|
+
|
146
|
+
### Stylesheet
|
147
|
+
|
148
|
+
If you'd like to add your own custom styles:
|
149
|
+
|
150
|
+
1. Create a file called `/assets/css/style.scss` in your site
|
151
|
+
2. Add the following content to the top of the file, exactly as shown:
|
152
|
+
```scss
|
153
|
+
---
|
154
|
+
---
|
155
|
+
|
156
|
+
@import "{{ site.theme }}";
|
157
|
+
```
|
158
|
+
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
|
159
|
+
|
160
|
+
### Layouts
|
161
|
+
|
162
|
+
If you'd like to change the theme's HTML layout:
|
163
|
+
|
164
|
+
1. [Copy the original template](https://github.com/lorepirri/jekyll-theme-simple-blog/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
|
165
|
+
2. Create a file called `/_layouts/default.html` in your site
|
166
|
+
3. Paste the default layout content copied in the first step
|
167
|
+
4. Customize the layout as you'd like
|
168
|
+
|
169
|
+
### Sass variables
|
170
|
+
|
171
|
+
If you'd like to change the theme's [Sass variables](https://github.com/lorepirri/jekyll-theme-simple-blog/blob/master/_sass/variables.scss), set new values before the `@import` line in your stylesheet:
|
172
|
+
|
173
|
+
```scss
|
174
|
+
$section-headings-color: #0086b3;
|
175
|
+
|
176
|
+
@import "{{ site.theme }}";
|
177
|
+
```
|
178
|
+
|
179
|
+
## Roadmap
|
180
|
+
|
181
|
+
See the [open issues](https://github.com/lorepirri/jekyll-theme-simple-blog/issues) for a list of proposed features (and known issues).
|
182
|
+
|
183
|
+
## Project philosophy
|
184
|
+
|
185
|
+
The Simple Blog Theme is intended to make it quick and easy for GitHub Pages users to create their first (or 100th) website. The theme should meet the vast majority of users' needs out of the box, erring on the side of simplicity rather than flexibility, and provide users the opportunity to opt-in to additional complexity if they have specific needs or wish to further customize their experience (such as adding custom CSS or modifying the default layout). It should also look great, but that goes without saying.
|
186
|
+
|
187
|
+
## Contributing
|
188
|
+
|
189
|
+
Interested in contributing to Simple Blog? We'd love your help. Simple Blog is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](CONTRIBUTING.md) for instructions on how to contribute.
|
190
|
+
|
191
|
+
### Previewing the theme locally
|
192
|
+
|
193
|
+
If you'd like to preview the theme locally (for example, in the process of proposing a change):
|
194
|
+
|
195
|
+
1. Clone down the theme's repository (`git clone https://github.com/lorepirri/jekyll-theme-simple-blog`)
|
196
|
+
2. `cd` into the theme's directory
|
197
|
+
3. Run `script/bootstrap` to install the necessary dependencies
|
198
|
+
4. Run `script/server` to start the preview server
|
199
|
+
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
200
|
+
|
201
|
+
### Running tests
|
202
|
+
|
203
|
+
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` one before the test script will work.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<header class="site-header" role="banner">
|
2
|
+
|
3
|
+
<div class="wrapper">
|
4
|
+
{% assign default_paths = site.pages | map: "path" %}
|
5
|
+
{% assign page_paths = site.header_pages | default: default_paths %}
|
6
|
+
|
7
|
+
{% if page.layout != 'home' %}
|
8
|
+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if page_paths %}
|
12
|
+
<nav class="site-nav">
|
13
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
14
|
+
<label for="nav-trigger">
|
15
|
+
<span class="menu-icon">
|
16
|
+
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
17
|
+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
|
18
|
+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
|
19
|
+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
|
20
|
+
</svg>
|
21
|
+
</span>
|
22
|
+
</label>
|
23
|
+
|
24
|
+
<div class="trigger">
|
25
|
+
{% for path in page_paths %}
|
26
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
27
|
+
{% if my_page.title %}
|
28
|
+
{% if my_page.title contains "404" %}
|
29
|
+
{% else %}
|
30
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
31
|
+
{% endif %}
|
32
|
+
{% endif %}
|
33
|
+
{% endfor %}
|
34
|
+
</div>
|
35
|
+
</nav>
|
36
|
+
{% endif %}
|
37
|
+
</div>
|
38
|
+
</header>
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
|
2
|
+
<html itemscope itemtype="http://schema.org/Article">
|
3
|
+
|
4
|
+
{% if page.title %}
|
5
|
+
{% assign page_title = page.title | escape %}
|
6
|
+
{% else %}
|
7
|
+
{% assign page_title = site.title | escape %}
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
|
11
|
+
{% if page.author or page.facebook.publisher %}
|
12
|
+
{% assign page_author = page.author | default: nil | escape %}
|
13
|
+
{% assign facebook_publisher = page.facebook.publisher | default: nil | escape %}
|
14
|
+
{% assign twitter_creator = page.twitter.username | default: site.twitter.site | default: nil | escape %}
|
15
|
+
{% else %}
|
16
|
+
{% assign page_author = site.author | default: nil | escape %}
|
17
|
+
{% assign facebook_publisher = site.facebook.publisher | default: nil | escape %}
|
18
|
+
{% assign twitter_creator = site.twitter.username | default: nil | escape %}
|
19
|
+
{% endif %}
|
20
|
+
|
21
|
+
{% assign page_description = page.excerpt | default: site.description | default: site.github.project_tagline | strip_html | normalize_whitespace | truncate: 152 | escape %}
|
22
|
+
|
23
|
+
{%if page.image %}
|
24
|
+
{% assign page_image = site.url | append: site.baseurl | append: page.image %}
|
25
|
+
{%else if site.image %}
|
26
|
+
{% assign page_image = site.url | append: site.baseurl | append: site.image %}
|
27
|
+
{%endif %}
|
28
|
+
|
29
|
+
{% assign canonical_url = page.url | replace:'index.html','' | absolute_url %}
|
30
|
+
|
31
|
+
<!-- Place this data between the <head> tags of your website -->
|
32
|
+
{%if page_author %}
|
33
|
+
<meta name="author" content="{{ page_author }}">
|
34
|
+
{%endif %}
|
35
|
+
<meta name="description" content="{{ page_description }}" />
|
36
|
+
{%if page.tags.length > 0 %}
|
37
|
+
<meta name="keywords" itemprop="tags" content="{{ page.tags | join: ', ' | escape }}"/>
|
38
|
+
{%endif %}
|
39
|
+
{%if page.keywords %}
|
40
|
+
<meta name="keywords" itemprop="keywords" content="{{ page.keywords | escape }}">
|
41
|
+
{%endif %}
|
42
|
+
{%if page.categories.length > 0 %}
|
43
|
+
<meta name="keywords" itemprop="categories" content="{{ page.categories | join: ', ' | escape }}">
|
44
|
+
{%endif %}
|
45
|
+
{%if page.category %}
|
46
|
+
<meta name="keywords" itemprop="category" content="{{ category | escape }}">
|
47
|
+
{%endif %}
|
48
|
+
|
49
|
+
<!-- Schema.org markup for Google+ -->
|
50
|
+
<meta itemprop="name" content="{{ page_title }}">
|
51
|
+
<meta itemprop="description" content="{{ page_description }}">
|
52
|
+
{%if page_image %}
|
53
|
+
<meta itemprop="image" content="{{ page_image }}">
|
54
|
+
{%endif %}
|
55
|
+
|
56
|
+
<!-- Twitter Card data -->
|
57
|
+
<meta name="twitter:card" content="summary_large_image">
|
58
|
+
|
59
|
+
{%if site.twitter.site %}
|
60
|
+
<meta name="twitter:site" content="@{{ site.twitter.site }}">
|
61
|
+
{%endif %}
|
62
|
+
|
63
|
+
<meta name="twitter:title" content="{{ page_title }}">
|
64
|
+
<meta name="twitter:description" content="{{ page_description }}">
|
65
|
+
|
66
|
+
{%if twitter_creator %}
|
67
|
+
<meta name="twitter:creator" content="@{{ twitter_creator }}">
|
68
|
+
{%endif %}
|
69
|
+
|
70
|
+
<!-- Twitter summary card with large image must be at least 280x150px -->
|
71
|
+
{%if page_image %}
|
72
|
+
<meta name="twitter:image:src" content="{{ page_image }}">
|
73
|
+
<meta property="twitter:image" content="{{ page_image }}">
|
74
|
+
{%endif %}
|
75
|
+
<meta property="twitter:url" content="{{ canonical_url }}">
|
76
|
+
|
77
|
+
<!-- Open Graph data -->
|
78
|
+
<meta property="og:title" content="{{ page_title }}" />
|
79
|
+
<meta property="og:type" content="article" />
|
80
|
+
<meta property="og:url" content="{{ canonical_url }}" />
|
81
|
+
{%if page_image %}
|
82
|
+
<meta property="og:image" content="{{ page_image }}" />
|
83
|
+
{%endif %}
|
84
|
+
<meta property="og:description" content="{{ page_description }}" />
|
85
|
+
<meta property="og:site_name" content="{{ site.title }}" />
|
86
|
+
{%if page.date %}
|
87
|
+
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" />
|
88
|
+
{%endif %}
|
89
|
+
{%if page.modified_date %}
|
90
|
+
<meta property="article:modified_time" content="{{ page.modified_date | date_to_xmlschema }}" />
|
91
|
+
{%endif %}
|
92
|
+
|
93
|
+
{%if site.facebook.admins %}
|
94
|
+
<meta property="fb:admins" content="{{ site.facebook.admins }}" />
|
95
|
+
{%endif %}
|
96
|
+
|
97
|
+
{%if site.facebook.app_id %}
|
98
|
+
<meta property="fb:app_id" content="{{ site.facebook.app_id }}">
|
99
|
+
{%endif %}
|
100
|
+
|
101
|
+
{%if site.facebook.profile_id %}
|
102
|
+
<meta property="fb:profile_id" content="{{ site.facebook.profile_id }}">
|
103
|
+
{%endif %}
|
104
|
+
|
105
|
+
{%if facebook_publisher %}
|
106
|
+
<meta property="article:author" content="https://www.facebook.com/{{ facebook_publisher }}">
|
107
|
+
{%endif %}
|
108
|
+
|
109
|
+
{%if page.tags %}
|
110
|
+
{% for tag in page.tags %}
|
111
|
+
<meta property="article:tag" content="{{ tag | escape }}">
|
112
|
+
{% endfor %}
|
113
|
+
{%endif %}
|
114
|
+
|
115
|
+
{%if page.keywords %}
|
116
|
+
{% assign keywordsList = page.keywords | split:', ' %}
|
117
|
+
{% for keyword in keywordsList %}
|
118
|
+
<meta property="article:tag" content="{{ keyword | escape }}">
|
119
|
+
{% endfor %}
|
120
|
+
{%endif %}
|
121
|
+
|
122
|
+
{%if page.categories %}
|
123
|
+
{% for category in page.categories %}
|
124
|
+
<meta property="article:tag" content="{{ category | escape }}">
|
125
|
+
{% endfor %}
|
126
|
+
{%endif %}
|
127
|
+
|
128
|
+
{%if page.category %}
|
129
|
+
<meta property="article:tag" content="{{ category | escape }}">
|
130
|
+
{%endif %}
|