jekyll-simple-template 0.0.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aac1a1e4e3f6b199a07f9697517fca3d8c7466ca
4
+ data.tar.gz: '0562639c3754336e064760b1866d7952122c81ce'
5
+ SHA512:
6
+ metadata.gz: bcd40181acf747f902607063ff1fd8e8bcc0ead76a006978dd517721d525a7bf92a81e0c17383bb93862d0fef242e4afb230402899a9e26dea74f66364f8ed36
7
+ data.tar.gz: 4f68e4d194bddfe838af8857213a7dc4f7068c1cd7e273a835c66e4c48fcb4e0de1f36a9d29f6f9eff98b349ddcf8fa8012c68d1425d3deb49984218110895fe
data/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2017-2018, Ankit R Gadiya
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,28 @@
1
+ <footer>
2
+ <hr />
3
+ {%- if site.data.social %}
4
+ <nav>
5
+ {%- if site.data.social.facebook %}
6
+ <a href="https://www.facebook.com/{{site.data.social.facebook}}">Facebook</a>
7
+ {%- endif %}
8
+ {%- if site.data.social.twitter %}
9
+ <a href="https://twitter.com/{{site.data.social.twitter}}">Twitter</a>
10
+ {%- endif %}
11
+ {%- if site.data.social.github %}
12
+ <a href="https://github.com/{{site.data.social.github}}">Github</a>
13
+ {%- endif %}
14
+ {%- if site.data.social.youtube %}
15
+ <a href="https://www.youtube.com/channel/{{site.data.social.youtube}}">Youtube</a>
16
+ {%- endif %}
17
+ {%- if site.data.social.instagram %}
18
+ <a href="https://www.instagram.com/{{site.data.social.instagram}}">Instagram</a>
19
+ {%- endif %}
20
+ {%- if site.data.social.linkedin %}
21
+ <a href="https://www.linkedin.com/{{site.data.social.linkedin}}">Linkedin</a>
22
+ {%- endif %}
23
+ </nav>
24
+ {%- endif %}
25
+ <p>
26
+ {{site.time | date :'%Y'}} &copy; {{site.author}}
27
+ </p>
28
+ </footer>
@@ -0,0 +1,7 @@
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.0">
5
+ {% seo -%}
6
+ {% include style.html -%}
7
+ </head>
@@ -0,0 +1,19 @@
1
+ <header>
2
+ <h1>{{site.title}}</h1>
3
+ {%- if site.data.navigation %}
4
+ <nav>
5
+ {%- for each in site.data.navigation %}
6
+ {%- if page.url == {{each.url}} %}
7
+ <strong>{{each.title}}</strong>
8
+ {%- else %}
9
+ {%- if each.url contains "://" %}
10
+ <a href="{{each.url}}">{{each.title}}</a>
11
+ {%- else %}
12
+ <a href="{{each.url | relative_url}}">{{each.title}}</a>
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- endfor %}
16
+ </nav>
17
+ {%- endif %}
18
+ <hr />
19
+ </header>
@@ -0,0 +1,6 @@
1
+ <style>
2
+ body{font-family: -apple-system, BlinkMacSystemFont,"Segoe UI", "Roboto", "Oxygen","Ubuntu", "Cantarell", "Fira Sans","Droid Sans", "Helvetica Neue", sans-serif;max-width:60em;padding:0 2%;margin:auto;}
3
+ header, footer, nav {text-align:center;}
4
+ footer {font-size: 0.8em;margin-top:5vh;}
5
+ pre {border:1px solid #212121;padding:1em;overflow:auto;}
6
+ </style>
@@ -0,0 +1,29 @@
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
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main>
6
+ <ul>
7
+ {%- for post in site.posts %}
8
+ <li>
9
+ {{post.date | date: "%d %b, %Y"}}
10
+ <a href="{{post.url | relative_url}}">{{post.title}}</a>
11
+ </li>
12
+ {%- endfor %}
13
+ </ul>
14
+ <p>Subscribe <a href="{{'/feed.xml' | relative_url}}">via RSS</a></p>
15
+ <nav>
16
+ <a href="{{'/blog/archives/' | relative_url}}">Archive</a>
17
+ <a href="{{'/blog/tags/' | relative_url}}">Tags</a>
18
+ </nav>
19
+ </main>
@@ -0,0 +1,9 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{site.lang}}">
3
+ {% include head.html -%}
4
+ <body>
5
+ {% include header.html -%}
6
+ {{content}}
7
+ {%- include footer.html -%}
8
+ </body>
9
+ </html>
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main>
6
+ {{content}}
7
+
8
+ {%- if site.posts.size > 0 %}
9
+ <h2>Latest Posts:</h2>
10
+ <ul>
11
+ {%- for each in site.posts limit:5 %}
12
+ <li>
13
+ <a href="{{each.url | relative_url}}">{{each.title}}</a>
14
+ </li>
15
+ {%- endfor %}
16
+ </ul>
17
+ {%- endif %}
18
+ </main>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main>
6
+ <h2>{{page.title}}</h2>
7
+ {{content}}
8
+ </main>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main>
6
+ <h2>{{page.title}}</h2>
7
+ <p>{{page.date | date: '%B %d, %Y'}}</p>
8
+ {{content-}}
9
+ {%- if page.tags %}
10
+ <p>
11
+ <b>Tags:</b>
12
+ {%- for each in page.tags %}
13
+ <a href="{{'/blog/tags/' | relative_url}}{{each}}">#{{each}}</a>
14
+ {%- endfor %}
15
+ </p>
16
+ {%- endif %}
17
+ </main>
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="refresh" content="0; url={{page.redirect}}" />
5
+ </head>
6
+ <body>
7
+ Redirecting
8
+ <a href="{{page.redirect}}">here</a>.
9
+ </body>
10
+ </html>
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-simple-template
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Ankit R Gadiya
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
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
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-feed
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-seo-tag
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jekyll-sitemap
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - ankit4922@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - LICENSE
105
+ - _includes/footer.html
106
+ - _includes/head.html
107
+ - _includes/header.html
108
+ - _includes/style.html
109
+ - _layouts/archive.html
110
+ - _layouts/blog.html
111
+ - _layouts/default.html
112
+ - _layouts/home.html
113
+ - _layouts/page.html
114
+ - _layouts/post.html
115
+ - _layouts/redirect.html
116
+ homepage: https://simple-template.gitlab.com/jekyll/
117
+ licenses:
118
+ - BSD-3-Clause
119
+ metadata:
120
+ plugin_type: theme
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.5.2.1
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: A very simple and minimal but fully functional template
141
+ test_files: []