jekyll-simple-template 0.0.13 → 0.2.3
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 +4 -4
- data/README.md +2 -147
- data/_includes/footer.html +5 -0
- data/_includes/head.html +6 -0
- data/_includes/header.html +24 -12
- data/_includes/style.html +5 -3
- data/_layouts/404.html +9 -0
- data/_layouts/blog.html +0 -5
- data/_layouts/home.html +3 -1
- data/_layouts/page.html +3 -2
- data/_layouts/post.html +3 -11
- data/assets/highlight.css +78 -0
- metadata +5 -20
- data/_layouts/archive.html +0 -29
- data/_layouts/archives.html +0 -45
- data/_layouts/tags.html +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c419af058eb7682ee0898cebc6bbda1abea6206e9a35c707c40ed45bbd6875e2
|
4
|
+
data.tar.gz: f1e3590223a421f5ab83bcf352858bfa7fc12884a3ed293178c3a41de58ec623
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b804436c4ac601e18d861ae59a464e31e624ab225bbad4f04dde00260b76af83ea28828110e03962cc49577e00598a5e9b480c9dcd9b3b007d1c49c19c068f98
|
7
|
+
data.tar.gz: 70d12a5180ca8db2bb04a49281b960fa170c1916a9c216c8adc9e9f8557c427b958b35ac5d5cf0a1224f14354b4497690f82677d4f95e439d09c1971be6b1407
|
data/README.md
CHANGED
@@ -1,149 +1,4 @@
|
|
1
1
|
# Simple Template - Jekyll
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
[](https://travis-ci.org/simple-template/jekyll)
|
7
|
-
|
8
|
-
Demo: https://st.argp.in/jekyll/
|
9
|
-
|
10
|
-
This is [Jekyll](https://jekyllrb.com/) Version of [Simple
|
11
|
-
Template](https://simple-template.gitlab.io/). The template is designed to look
|
12
|
-
and stay minimal for the viewer but at the same time be fully featured for the
|
13
|
-
author. The template use the fact that barebone *HTML* is already responsive,
|
14
|
-
and hence, no *CSS* Framework is used at all. In fact for styling there is not
|
15
|
-
even a *CSS* file, the necesarry *CSS* is embedded into *HTML* itself, to
|
16
|
-
reduce the number of *HTTP* requests.
|
17
|
-
|
18
|
-
## Plugins
|
19
|
-
|
20
|
-
Instead of inventing the wheel, I used the following popular plugins for Jekyll,
|
21
|
-
to add features to the template:
|
22
|
-
|
23
|
-
* [jekyll-archives](https://github.com/jekyll/jekyll-archives): Generates
|
24
|
-
Archive pages for Year, Month, Day, Tags and Categories
|
25
|
-
* [jekyll-feed](https://github.com/jekyll/jekyll-feed): Generates the Atom (RSS
|
26
|
-
like) Feed for Blog Posts
|
27
|
-
* [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag): Adds necesarry
|
28
|
-
SEO information in the head tag
|
29
|
-
* [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap): Generates
|
30
|
-
sitemap.org compliant sitemap for the website
|
31
|
-
|
32
|
-
## Usage
|
33
|
-
|
34
|
-
The template is available as Ruby
|
35
|
-
[Gem](https://rubygems.org/gems/jekyll-simple-template/). To add the Gem to the
|
36
|
-
website do the following:
|
37
|
-
|
38
|
-
* Add the Gem in the `Gemfile`.
|
39
|
-
|
40
|
-
```
|
41
|
-
source "https://rubygems.org"
|
42
|
-
"jekyll-simple-template"
|
43
|
-
```
|
44
|
-
|
45
|
-
* Add the Theme in `_config.yml`.
|
46
|
-
|
47
|
-
```
|
48
|
-
theme: jekyll-simple-template
|
49
|
-
```
|
50
|
-
|
51
|
-
## Configuration
|
52
|
-
|
53
|
-
The template expects following variables in the `_config.yml`.
|
54
|
-
|
55
|
-
* `lang`: Langauge of the Website (for html tag)
|
56
|
-
* `title`: Title of the Website (for SEO and Header)
|
57
|
-
* `author`: Author of the Website (for SEO and Footer)
|
58
|
-
* `url`: Url of the website (for SEO)
|
59
|
-
* `baseurl` [Optional]: Baseurl of the Website (for relative URL)
|
60
|
-
* `logo`: Logo of the Website (for SEO)
|
61
|
-
|
62
|
-
[Example](https://github.com/simple-template/jekyll/blob/master/_config.yml)
|
63
|
-
|
64
|
-
### Navigation
|
65
|
-
|
66
|
-
For navigation links, the template looks for `_data/navigation.yml` file. The
|
67
|
-
links should be added to the file in following format.
|
68
|
-
|
69
|
-
```
|
70
|
-
- title: "Link Name"
|
71
|
-
url: "http://example.com"
|
72
|
-
```
|
73
|
-
|
74
|
-
**Note**: `url` can be external or relative.
|
75
|
-
|
76
|
-
[Example](https://github.com/simple-template/jekyll/blob/master/_data/navigation.yml)
|
77
|
-
|
78
|
-
### Social Links
|
79
|
-
|
80
|
-
For social links in footer, the template looks for `_data/social.yml` file.
|
81
|
-
Following is the supported social networks and format in which it should be
|
82
|
-
added.
|
83
|
-
|
84
|
-
```
|
85
|
-
facebook : username
|
86
|
-
twitter : username
|
87
|
-
github : username
|
88
|
-
youtube : channel
|
89
|
-
instagram: username
|
90
|
-
linkedin : username
|
91
|
-
```
|
92
|
-
|
93
|
-
[Example](https://github.com/simple-template/jekyll/blob/master/_data/social.yml)
|
94
|
-
|
95
|
-
### Micro.Blog
|
96
|
-
|
97
|
-
If you want to link the blog/site with [Micro.blog](https://micro.blog), add
|
98
|
-
following in `_config.yml`.
|
99
|
-
|
100
|
-
```
|
101
|
-
micro_blog: username
|
102
|
-
```
|
103
|
-
|
104
|
-
This will generate a link tag in head (to verify site) and add a link to follow
|
105
|
-
on Blog page.
|
106
|
-
|
107
|
-
### SEO
|
108
|
-
|
109
|
-
As mentioned above, the template uses
|
110
|
-
[jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag/) for adding SEO
|
111
|
-
information. All the options from that can be used. For more information read
|
112
|
-
its [Usage](https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md).
|
113
|
-
|
114
|
-
## Sitemap and Feed
|
115
|
-
|
116
|
-
As mentioned above, the template uses
|
117
|
-
[jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap/) and
|
118
|
-
[jekyll-feed](https://github.com/jekyll/jekyll-feed) for sitemap and feed
|
119
|
-
respectively. By default sitemap is available at `/sitemap.xml` and feed of
|
120
|
-
posts is available at `/feed.xml`. For more information about the plugins, check
|
121
|
-
out there repositories and read the documentations.
|
122
|
-
|
123
|
-
## Layouts
|
124
|
-
|
125
|
-
The template provides following layouts:
|
126
|
-
|
127
|
-
* `default`: The default layout
|
128
|
-
* `home`: For Homepage
|
129
|
-
* `blog`: For Blog page
|
130
|
-
* `page`: For Page
|
131
|
-
* `post`: For post
|
132
|
-
* `archive`: For Year, Month, Day and Tag archives
|
133
|
-
* `redirect`: For redirection pages
|
134
|
-
|
135
|
-
To override any of the built-in layouts, just create the file with same name in
|
136
|
-
`_layouts/` directory.
|
137
|
-
|
138
|
-
## Tests
|
139
|
-
|
140
|
-

|
141
|
-

|
142
|
-

|
143
|
-

|
144
|
-
|
145
|
-
## License
|
146
|
-
|
147
|
-
The template is Open Sourced and is Licensed under [BSD
|
148
|
-
3-Clause](https://github.com/simple-template/jekyll/blob/master/LICENSE)
|
149
|
-
License.
|
3
|
+
For more information checkout
|
4
|
+
[Wiki](https://github.com/simple-template/jekyll/wiki).
|
data/_includes/footer.html
CHANGED
data/_includes/head.html
CHANGED
@@ -12,4 +12,10 @@
|
|
12
12
|
{% endif -%}
|
13
13
|
{% seo -%}
|
14
14
|
{% include style.html -%}
|
15
|
+
{% if site.mathjax %}
|
16
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_CHTML-full" type="text/javascript"></script>
|
17
|
+
{% endif %}
|
18
|
+
{% if site.syntax_highlight -%}
|
19
|
+
<link href="{{'/assets/highlight.css' | relative_url}}" rel="stylesheet">
|
20
|
+
{% endif -%}
|
15
21
|
</head>
|
data/_includes/header.html
CHANGED
@@ -1,19 +1,31 @@
|
|
1
1
|
<header>
|
2
|
-
<h1>{{site.title | default: "Title"}}</h1>
|
3
|
-
{%- if site.data.navigation %}
|
4
2
|
<nav>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
<div class="left" style="text-align:left;float:left">
|
4
|
+
<a href="{{'/' | relative_url }}">
|
5
|
+
{{-site.title | default: "Title"-}}
|
6
|
+
</a>
|
7
|
+
</div>
|
8
|
+
{%- if site.data.navigation %}
|
9
|
+
<div class="right" style="text-align:right;">
|
10
|
+
{%- for each in site.data.navigation %}
|
11
|
+
{%- if each.url contains "://" %}
|
12
|
+
<a href="{{each.url}}">{{each.title}}</a>
|
13
|
+
{%- else %}
|
14
|
+
<a href="{{each.url | relative_url}}">{{each.title}}</a>
|
15
|
+
{%- endif %}
|
16
|
+
{% if forloop.last == false -%}
|
17
|
+
|
|
18
|
+
{%- endif -%}
|
19
|
+
{%- endfor %}
|
20
|
+
</div>
|
13
21
|
{%- endif %}
|
14
|
-
{%- endif %}
|
15
|
-
{%- endfor %}
|
16
22
|
</nav>
|
23
|
+
<h1>{{page.title | default: "Title"}}</h1>
|
24
|
+
{%- if page.description %}
|
25
|
+
<p>{{ page.description }}</p>
|
26
|
+
{%- endif %}
|
27
|
+
{%- if page.date %}
|
28
|
+
<p>{{page.date | date: '%B %d, %Y'}}</p>
|
17
29
|
{%- endif %}
|
18
30
|
<hr />
|
19
31
|
</header>
|
data/_includes/style.html
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
<style>
|
2
|
-
body{
|
3
|
-
|
4
|
-
|
2
|
+
body { max-width: 40em; margin: auto; font-family: -apple-system,
|
3
|
+
BlinkMacSystemFont,"Segoe UI", "Roboto", "Oxygen", "Ubuntu",
|
4
|
+
"Cantarell", "Fira Sans","Droid Sans", "Helvetica Neue",
|
5
|
+
sans-serif; padding: 0 2%; }
|
6
|
+
footer {text-align:center;font-size: 0.8em;margin-top:5vh;}
|
5
7
|
pre {border:1px solid #212121;padding:1em;overflow:auto;}
|
6
8
|
</style>
|
data/_layouts/404.html
ADDED
data/_layouts/blog.html
CHANGED
@@ -3,7 +3,6 @@ layout: default
|
|
3
3
|
---
|
4
4
|
|
5
5
|
<main>
|
6
|
-
<h2>Blog Posts</h2>
|
7
6
|
<ul>
|
8
7
|
{%- for post in site.posts %}
|
9
8
|
<li>
|
@@ -17,8 +16,4 @@ layout: default
|
|
17
16
|
or follow on <a href="https://micro.blog/{{site.micro_blog}}">Micro.Blog</a>
|
18
17
|
{%- endif %}
|
19
18
|
</p>
|
20
|
-
<nav>
|
21
|
-
<a href="{{'/blog/archives/' | relative_url}}">Archive</a>
|
22
|
-
<a href="{{'/blog/tags/' | relative_url}}">Tags</a>
|
23
|
-
</nav>
|
24
19
|
</main>
|
data/_layouts/home.html
CHANGED
@@ -3,9 +3,10 @@ layout: default
|
|
3
3
|
---
|
4
4
|
|
5
5
|
<main>
|
6
|
+
<article>
|
6
7
|
{{content}}
|
7
8
|
|
8
|
-
{%- if site.posts.size > 0 %}
|
9
|
+
{%- if site.posts.size > 0 and page.posts %}
|
9
10
|
<h2>Latest Posts:</h2>
|
10
11
|
<ul>
|
11
12
|
{%- for each in site.posts limit:5 %}
|
@@ -15,4 +16,5 @@ layout: default
|
|
15
16
|
{%- endfor %}
|
16
17
|
</ul>
|
17
18
|
{%- endif %}
|
19
|
+
</article>
|
18
20
|
</main>
|
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -3,15 +3,7 @@ layout: default
|
|
3
3
|
---
|
4
4
|
|
5
5
|
<main>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
{%- if page.tags %}
|
10
|
-
<p>
|
11
|
-
<b>Tags:</b>
|
12
|
-
{%- for each in page.tags %}
|
13
|
-
<a href="{{'/blog/tags/' | relative_url}}{{each | downcase}}/">#{{each}}</a>
|
14
|
-
{%- endfor %}
|
15
|
-
</p>
|
16
|
-
{%- endif %}
|
6
|
+
<article>
|
7
|
+
{{content-}}
|
8
|
+
</article>
|
17
9
|
</main>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
pre { border:1px solid #212121; padding:1em; overflow:auto; background:#f8f8f8;}
|
2
|
+
.highlight .hll { background-color: #ffffcc }
|
3
|
+
.highlight { background: #f8f8f8; }
|
4
|
+
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
|
5
|
+
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
|
6
|
+
.highlight .g { color: #000000 } /* Generic */
|
7
|
+
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
|
8
|
+
.highlight .l { color: #000000 } /* Literal */
|
9
|
+
.highlight .n { color: #000000 } /* Name */
|
10
|
+
.highlight .o { color: #ce5c00; font-weight: bold } /* Operator */
|
11
|
+
.highlight .x { color: #000000 } /* Other */
|
12
|
+
.highlight .p { color: #000000; font-weight: bold } /* Punctuation */
|
13
|
+
.highlight .ch { color: #8f5902; font-style: italic } /* Comment.Hashbang */
|
14
|
+
.highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
|
15
|
+
.highlight .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */
|
16
|
+
.highlight .cpf { color: #8f5902; font-style: italic } /* Comment.PreprocFile */
|
17
|
+
.highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */
|
18
|
+
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
|
19
|
+
.highlight .gd { color: #a40000 } /* Generic.Deleted */
|
20
|
+
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
|
21
|
+
.highlight .gr { color: #ef2929 } /* Generic.Error */
|
22
|
+
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
23
|
+
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
24
|
+
.highlight .go { color: #000000; font-style: italic } /* Generic.Output */
|
25
|
+
.highlight .gp { color: #8f5902 } /* Generic.Prompt */
|
26
|
+
.highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */
|
27
|
+
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
28
|
+
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
|
29
|
+
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
|
30
|
+
.highlight .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */
|
31
|
+
.highlight .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */
|
32
|
+
.highlight .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */
|
33
|
+
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
|
34
|
+
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
|
35
|
+
.highlight .ld { color: #000000 } /* Literal.Date */
|
36
|
+
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
|
37
|
+
.highlight .s { color: #4e9a06 } /* Literal.String */
|
38
|
+
.highlight .na { color: #c4a000 } /* Name.Attribute */
|
39
|
+
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
40
|
+
.highlight .nc { color: #000000 } /* Name.Class */
|
41
|
+
.highlight .no { color: #000000 } /* Name.Constant */
|
42
|
+
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
|
43
|
+
.highlight .ni { color: #ce5c00 } /* Name.Entity */
|
44
|
+
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
|
45
|
+
.highlight .nf { color: #000000 } /* Name.Function */
|
46
|
+
.highlight .nl { color: #f57900 } /* Name.Label */
|
47
|
+
.highlight .nn { color: #000000 } /* Name.Namespace */
|
48
|
+
.highlight .nx { color: #000000 } /* Name.Other */
|
49
|
+
.highlight .py { color: #000000 } /* Name.Property */
|
50
|
+
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
|
51
|
+
.highlight .nv { color: #000000 } /* Name.Variable */
|
52
|
+
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
|
53
|
+
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
|
54
|
+
.highlight .mb { color: #0000cf; font-weight: bold } /* Literal.Number.Bin */
|
55
|
+
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
|
56
|
+
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
|
57
|
+
.highlight .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */
|
58
|
+
.highlight .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */
|
59
|
+
.highlight .sa { color: #4e9a06 } /* Literal.String.Affix */
|
60
|
+
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
|
61
|
+
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
|
62
|
+
.highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */
|
63
|
+
.highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
|
64
|
+
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
|
65
|
+
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
|
66
|
+
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
67
|
+
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
|
68
|
+
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
|
69
|
+
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
|
70
|
+
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
|
71
|
+
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
|
72
|
+
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
73
|
+
.highlight .fm { color: #000000 } /* Name.Function.Magic */
|
74
|
+
.highlight .vc { color: #000000 } /* Name.Variable.Class */
|
75
|
+
.highlight .vg { color: #000000 } /* Name.Variable.Global */
|
76
|
+
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
|
77
|
+
.highlight .vm { color: #000000 } /* Name.Variable.Magic */
|
78
|
+
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-simple-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ankit R Gadiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: jekyll-archives
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: jekyll-feed
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,15 +93,14 @@ files:
|
|
107
93
|
- _includes/head.html
|
108
94
|
- _includes/header.html
|
109
95
|
- _includes/style.html
|
110
|
-
- _layouts/
|
111
|
-
- _layouts/archives.html
|
96
|
+
- _layouts/404.html
|
112
97
|
- _layouts/blog.html
|
113
98
|
- _layouts/default.html
|
114
99
|
- _layouts/home.html
|
115
100
|
- _layouts/page.html
|
116
101
|
- _layouts/post.html
|
117
102
|
- _layouts/redirect.html
|
118
|
-
-
|
103
|
+
- assets/highlight.css
|
119
104
|
homepage: https://st.argp.in/jekyll/
|
120
105
|
licenses:
|
121
106
|
- BSD-3-Clause
|
@@ -137,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
122
|
version: '0'
|
138
123
|
requirements: []
|
139
124
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.7.
|
125
|
+
rubygems_version: 2.7.8
|
141
126
|
signing_key:
|
142
127
|
specification_version: 4
|
143
128
|
summary: A very simple and minimal but fully functional template
|
data/_layouts/archive.html
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{%- if page.type == "year" -%}
|
6
|
-
{%- capture type -%}from {{page.date | date: "%Y"}}{%- endcapture -%}
|
7
|
-
{%- elsif page.type == "month" -%}
|
8
|
-
{%- capture type -%}from {{page.date | date: "%B %Y"}}{%- endcapture -%}
|
9
|
-
{%- elsif page.type == "day" -%}
|
10
|
-
{%- capture type -%}from {{page.date | date: "%d %B, %Y"}}{%- endcapture -%}
|
11
|
-
{%- elsif page.type == "tag" -%}
|
12
|
-
{%- capture type -%}with tag "{{page.title | capitalize}}"{%- endcapture -%}
|
13
|
-
{%- endif -%}
|
14
|
-
|
15
|
-
<main>
|
16
|
-
<h2>Archive of posts {{type}}</h2>
|
17
|
-
|
18
|
-
<ul>
|
19
|
-
{%- for post in page.posts %}
|
20
|
-
<li>
|
21
|
-
{{post.date | date: "%d %b, %Y"}} <a href="{{post.url | relative_url}}">{{post.title}}</a>
|
22
|
-
</li>
|
23
|
-
{%- endfor %}
|
24
|
-
</ul>
|
25
|
-
<nav>
|
26
|
-
<a href="{{'/blog/archives/' | relative_url}}">Archive</a>
|
27
|
-
<a href="{{'/blog/tags/' | relative_url}}">Tags</a>
|
28
|
-
</main>
|
29
|
-
|
data/_layouts/archives.html
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: page
|
3
|
-
---
|
4
|
-
|
5
|
-
{%-
|
6
|
-
assign postsByYear = site.posts |
|
7
|
-
group_by_exp:"post", "post.date |
|
8
|
-
date: '%Y'"
|
9
|
-
%}
|
10
|
-
<ul>
|
11
|
-
{%- for year in postsByYear %}
|
12
|
-
<li>
|
13
|
-
<a href="{{'/blog/' | relative_url}}{{year.name}}">{{year.name}}</a>
|
14
|
-
{%-
|
15
|
-
assign postsByMonth = year.items |
|
16
|
-
group_by_exp:"post", "post.date | date: '%B'"
|
17
|
-
%}
|
18
|
-
<ul>
|
19
|
-
{%- for month in postsByMonth %}
|
20
|
-
<li>
|
21
|
-
<a href="{{'/blog/' | relative_url}}{{year.name}}/{{month.name | date: "%m"}}/">
|
22
|
-
{{-month.name-}}
|
23
|
-
</a>
|
24
|
-
{%-
|
25
|
-
assign postsByDay = month.items |
|
26
|
-
group_by_exp:"post", "post.date | date: '%d'"
|
27
|
-
%}
|
28
|
-
<ul>
|
29
|
-
{%- for day in postsByDay %}
|
30
|
-
<li>
|
31
|
-
<a href="{{'/blog/' | relative_url}}{{year.name}}/{{month.name | date: "%m"}}/{{day.name}}/">
|
32
|
-
{{-day.name-}}
|
33
|
-
</a>
|
34
|
-
</li>
|
35
|
-
{%- endfor %}
|
36
|
-
</ul>
|
37
|
-
</li>
|
38
|
-
{%- endfor %}
|
39
|
-
</ul>
|
40
|
-
</li>
|
41
|
-
{%- endfor %}
|
42
|
-
</ul>
|
43
|
-
<nav>
|
44
|
-
<a href="{{ '/blog/tags/' | relative_url}}">Tags</a>
|
45
|
-
</nav>
|
data/_layouts/tags.html
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: page
|
3
|
-
---
|
4
|
-
|
5
|
-
<ul>
|
6
|
-
{%- for tag in site.tags %}
|
7
|
-
{%- assign tag_name = tag | first | capitalize | replace: "-", " "%}
|
8
|
-
{%- assign tag_posts = tag | last %}
|
9
|
-
<li>
|
10
|
-
<a href="{{'/blog/tags/' | relative_url}}{{tag | first | downcase}}/">
|
11
|
-
{{tag_name}}
|
12
|
-
</a>
|
13
|
-
<small>{{tag_posts | size}} Posts</small>
|
14
|
-
</li>
|
15
|
-
{%- endfor %}
|
16
|
-
</ul>
|
17
|
-
<nav>
|
18
|
-
<a href="{{'/blog/archives/' | relative_url}}">Archive</a>
|
19
|
-
</nav>
|