jekyll_theme_1017 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 86fbee758e186d9482d7dbdb3c2ae05d93873b63e6ccfc9cf48533cf23f7d71e
4
+ data.tar.gz: 4faf731998a2313222e9040ae05c295cef87bb16a96954a94c84bea78483c02b
5
+ SHA512:
6
+ metadata.gz: b6c8483b5218d4da5019066d7d45b13badceb91a9cc79bdd09c2eefc695ea2a9e0f80b5a234ac9d8ea3a37390cb3707839f5897b88552fccc2b9c83a807065fa
7
+ data.tar.gz: 3b526d0d0803f051de68a77a5c664edc528fe1b8f918818ba1b7c053d0cd4b802a8084123339e3305c12e4de85601699e1e82f60b862b7d9e03870257572f6f0
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Atin Bainada
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.
@@ -0,0 +1,48 @@
1
+ # theme_1017
2
+
3
+ For my own use.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your Jekyll site's `Gemfile`:
9
+
10
+ ```ruby
11
+ gem "theme_1017"
12
+ ```
13
+
14
+ And add this line to your Jekyll site's `_config.yml`:
15
+
16
+ ```yaml
17
+ theme: theme_1017
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install theme_1017
27
+
28
+ ## Usage
29
+
30
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+
36
+ ## Development
37
+
38
+ To set up your environment to develop this theme, run `bundle install`.
39
+
40
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
41
+
42
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
43
+ To add a custom directory to your theme-gem, please edit the regexp in `theme_1017.gemspec` accordingly.
44
+
45
+ ## License
46
+
47
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
+
@@ -0,0 +1,10 @@
1
+ <footer class="footer container">
2
+ <hr />
3
+ <div class="social-links">
4
+ {% for link in site.social-links %}
5
+ <a class="social-link {{ link.name }}" href="{{ link.url }}">
6
+ <img src="{{ link.icon_path }}"></img>
7
+ </a>
8
+ {% endfor %}
9
+ </div>
10
+ </footer>
@@ -0,0 +1,99 @@
1
+ <head>
2
+ <link href="http://gmpg.org/xfn/11" rel="profile" />
3
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
4
+
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1.0, maximum-scale=1"
8
+ />
9
+
10
+ <title>
11
+ {% if page.title == "Home" %}
12
+ {{ site.title }}
13
+ {% elsif page.title == "Who am I?" %}
14
+ {{ page.title }}
15
+ {% else %}
16
+ {{ page.title }} &middot; {{ site.title }}
17
+ {% endif %}
18
+ </title>
19
+
20
+ {% if page.url and site.baseurl %}
21
+ <link rel="canonical" href="{{ page.url | absolute_url }}" />
22
+ {% endif %}
23
+
24
+ {% if page.custom_css %}
25
+ {% for stylesheet in page.custom_css %}
26
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/{{ stylesheet }}.css" />
27
+ {% endfor %}
28
+ {% endif %}
29
+
30
+ <link rel="stylesheet" href="{{ site.baseurl}}/assets/css/main.css"">
31
+
32
+ <link
33
+ rel="stylesheet"
34
+ href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"
35
+ />
36
+
37
+ <!-- Font Awesome -->
38
+ <link
39
+ rel="stylesheet"
40
+ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
41
+ integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
42
+ crossorigin="anonymous"
43
+ />
44
+
45
+ <link
46
+ rel="stylesheet"
47
+ href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400"
48
+ />
49
+
50
+ <!-- <link rel="apple-touch-icon" sizes="144x144" href="{{ '' | absolute_url }}"> -->
51
+ <link
52
+ rel="icon"
53
+ href="{{site.url}}{{site.baseurl}}/assets/img/avatar.png"
54
+ type="image/png"
55
+ />
56
+
57
+ <link
58
+ rel="alternate"
59
+ type="application/rss+xml"
60
+ title="RSS"
61
+ href="{{ '/atom.xml' | absolute_url }}"
62
+ />
63
+
64
+ <link
65
+ rel="stylesheet"
66
+ href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css"
67
+ integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X"
68
+ crossorigin="anonymous"
69
+ />
70
+
71
+ <!-- The loading of KaTeX is deferred to speed up page rendering -->
72
+ <script
73
+ defer
74
+ src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js"
75
+ integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4"
76
+ crossorigin="anonymous"
77
+ ></script>
78
+
79
+ <!-- To automatically render math in text elements, include the auto-render extension: -->
80
+ <script
81
+ defer
82
+ src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js"
83
+ integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa"
84
+ crossorigin="anonymous"
85
+ onload="renderMathInElement(document.body);"
86
+ ></script>
87
+
88
+ {% if site.google_analytics_id %}
89
+ <!-- Global site tag (gtag.js) - Google Analytics -->
90
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_id }}"></script>
91
+ <script>
92
+ window.dataLayer = window.dataLayer || [];
93
+ function gtag(){dataLayer.push(arguments);}
94
+ gtag('js', new Date());
95
+
96
+ gtag('config', '{{ site.google_analytics_id }}');
97
+ </script>
98
+ {% endif %}
99
+ </head>
@@ -0,0 +1,22 @@
1
+ <!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
2
+ styles, `#sidebar-checkbox` for behavior. -->
3
+ <input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" />
4
+
5
+ <div class="sidebar" id="sidebar">
6
+ <header class="avatar">
7
+ <a href="{{ site.url }}{{ site.me }}">
8
+ <img src="{{ site.url }}{{ site.avatar.normal }}" />
9
+ </a>
10
+ </header>
11
+ <nav class="sidebar-nav">
12
+ <ul>
13
+ {% for link in site.nav-links %}
14
+ <li class="nav-item {% if page.url == link.url %}active{% endif %}">
15
+ <a class="nav-link" href="{{ site.url }}{{ link.url }}">
16
+ <span>{{ link.title | upcase }}</span>
17
+ </a>
18
+ </li>
19
+ {% endfor %}
20
+ </ul>
21
+ </nav>
22
+ </div>
@@ -0,0 +1,44 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-us">
3
+ {% include head.html %}
4
+
5
+ <body>
6
+ {% include sidebar.html %}
7
+
8
+ <div class="wrap">
9
+ <div class="masthead">
10
+ <div class="container">
11
+ <h3 class="masthead-title">
12
+ <a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
13
+ </h3>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="container content">{{ content }}</div>
18
+ </div>
19
+
20
+ <label for="sidebar-checkbox" class="sidebar-toggle">
21
+ <i class="fas fa-bars fa-fw"></i>
22
+ </label>
23
+
24
+ {% include footer.html %}
25
+
26
+ <script>
27
+ (function(document) {
28
+ var toggle = document.querySelector('.sidebar-toggle');
29
+ var sidebar = document.querySelector('#sidebar');
30
+ var checkbox = document.querySelector('#sidebar-checkbox');
31
+
32
+ document.addEventListener('click', function(e) {
33
+ var target = e.target;
34
+
35
+ if(!checkbox.checked ||
36
+ sidebar.contains(target) ||
37
+ (target === checkbox || target === toggle)) return;
38
+
39
+ checkbox.checked = false;
40
+ }, false);
41
+ })(document);
42
+ </script>
43
+ </body>
44
+ </html>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>I'm not complete <em>yet</em>.</h1>
6
+
7
+ Hey there :wave:, I'm the <strong>{{ page.title }} page</strong>, nice to meet you too.
8
+ <br />
9
+ Were you looking for me or did you come here by mistake? In both cases I'm
10
+ currently in development. By the way just between us I think the
11
+ <a href="{{ site.me }}">owner of this site</a> is a li'l lazy. So come back later to see if I'm complete.
12
+
13
+ <p>
14
+ In the meantime, enjoy <a href="https://youtu.be/7ohbr90cKDc">this</a>.
15
+ </p>
16
+
17
+ If you think that something is missing from this page, you can contact
18
+ <a href="{{ site.me }}">Atin</a>, the owner of this site, via
19
+ <a href="mailto:{{ site.email }}">email</a> or this
20
+ <a href="{{ site.anon-form }}">anonymous form</a>.
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="page">
6
+ <h1 class="page-title">{{ page.title }}</h1>
7
+ {{ content }}
8
+ </div>
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="post">
6
+ <h1 class="post-title">{{ page.title }}</h1>
7
+ <span class="post-date">{{ page.date | date_to_string }}</span>
8
+ {{ content }}
9
+ </div>
10
+
11
+ {% if site.related_posts.size >= 1 %}
12
+ <div class="related">
13
+ <h2>Related posts</h2>
14
+ <ul class="related-posts">
15
+ {% for post in site.related_posts limit:3 %}
16
+ <li>
17
+ <h3>
18
+ <a href="{{ site.baseurl }}{{ post.url }}">
19
+ {{ post.title }}
20
+ <small>{{ post.date | date_to_string }}</small>
21
+ </a>
22
+ </h3>
23
+ </li>
24
+ {% endfor %}
25
+ </ul>
26
+ </div>
27
+ {% endif %}
@@ -0,0 +1,301 @@
1
+ * {
2
+ -webkit-box-sizing: border-box;
3
+ -moz-box-sizing: border-box;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html, body {
8
+ overflow-x: hidden;
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+
13
+ html {
14
+ height: 100%;
15
+ font-family: "PT Serif", Georgia, "Times New Roman", serif;
16
+ font-size-adjust: 100%;
17
+ }
18
+
19
+ body {
20
+ color: #333;
21
+ font-size: 20px;
22
+ position: relative;
23
+ margin: 0;
24
+ padding-bottom: 6rem;
25
+ min-height: 100%;
26
+ }
27
+
28
+ h1, h2, h3, h4, h5, h6 {
29
+ font-family: "PT Sans", Helvetica, Arial, sans-serif;
30
+ color: #313131;
31
+ line-height: 1.25;
32
+ margin-top: 1em;
33
+ margin-bottom: 16px;
34
+ }
35
+ h1 {
36
+ font-size: 2em;
37
+ }
38
+ h2 {
39
+ font-size: 1.7em;
40
+ }
41
+ h3 {
42
+ font-size: 1.45em;
43
+ }
44
+ h4 {
45
+ font-size: 1.2em;
46
+ }
47
+ h5 {
48
+ font-size: 1em;
49
+ }
50
+ h6 {
51
+ font-size: .8em;
52
+ }
53
+
54
+ .wrap {
55
+ position: relative;
56
+ width: 100%;
57
+ }
58
+
59
+ .container {
60
+ max-width: 55rem;
61
+ padding-left: 1rem;
62
+ padding-right: 1rem;
63
+ margin-left: auto;
64
+ margin-right: auto;
65
+ }
66
+
67
+ /*
68
+ * Masthead
69
+ *
70
+ * Super small header above the content for site name and short description.
71
+ */
72
+
73
+ .masthead {
74
+ padding: .7rem 0;
75
+ margin-bottom: 2rem;
76
+ border-bottom: 1px solid rgba(0,0,0,0.07);
77
+ box-shadow: 0 3px 5px 0 rgba(0,0,0,0.05);
78
+ }
79
+ .masthead-title {
80
+ margin-top: 0;
81
+ margin-bottom: 0;
82
+ color: #505050;
83
+ font-size: 30px;
84
+ a {
85
+ font-weight: 400;
86
+ color: #505050;
87
+ }
88
+ }
89
+
90
+ @media (max-width: 48em) {
91
+ .masthead-title {
92
+ text-align: center;
93
+ }
94
+ .masthead-title small {
95
+ display: none;
96
+ }
97
+ }
98
+
99
+ /* Slide effect
100
+ *
101
+ * Handle the sliding effects of the sidebar and content in one spot, seperate
102
+ * from the default styles.
103
+ *
104
+ * As an a heads up, we don't use `transform: translate3d()` here because when
105
+ * mixed with `position: fixed;` for the sidebar toggle, it creates a new
106
+ * containing block. Put simply, the fixed sidebar toggle behaves like
107
+ * `position: absolute;` when transformed.
108
+ *
109
+ * Read more about it at http://meyerweb.com/eric/thoughts/2011/09/12/.
110
+ */
111
+
112
+ .wrap, .sidebar, .sidebar-toggle, .footer {
113
+ -webkit-backface-visibility: hidden;
114
+ -ms-backface-visibility: hidden;
115
+ backface-visibility: hidden;
116
+ }
117
+ .wrap, .sidebar-toggle, .footer {
118
+ -webkit-transition: -webkit-transform 0.3s ease-in-out;
119
+ transition: transform 0.3s ease-in-out;
120
+ }
121
+
122
+ #sidebar-checkbox:checked + .sidebar {
123
+ z-index: 10;
124
+ visibility: visible;
125
+ }
126
+ #sidebar-checkbox:checked ~ .sidebar,
127
+ #sidebar-checkbox:checked ~ .wrap,
128
+ #sidebar-checkbox:checked ~ .sidebar-toggle,
129
+ #sidebar-checkbox:checked ~ .footer {
130
+ -webkit-transform: translateX(14rem);
131
+ -ms-transform: translateX(14rem);
132
+ transform: translateX(14rem);
133
+ }
134
+
135
+ table {
136
+ margin-bottom: 1rem;
137
+ width: 100%;
138
+ border: 1px solid #e5e5e5;
139
+ border-collapse: collapse;
140
+ }
141
+ td,
142
+ th {
143
+ padding: .25rem .5rem;
144
+ border: 1px solid #e5e5e5;
145
+ }
146
+ tbody tr:nth-child(odd) td,
147
+ tbody tr:nth-child(odd) th {
148
+ background-color: #f9f9f9;
149
+ }
150
+
151
+ /*
152
+ * Posts and pages
153
+ *
154
+ * Each post is wrapped in `.post` and is used on default and post layouts. Each
155
+ * page is wrapped in `.page` and is only used on the page layout.
156
+ */
157
+
158
+
159
+ .post {
160
+ font-size: 18px;
161
+ }
162
+
163
+ .page, .post {
164
+ margin-bottom: 4em;
165
+ }
166
+
167
+ /* Blog post or page title */
168
+ .page-title, .post-title, .post-title a {
169
+ color: #303030;
170
+ }
171
+ .page-title, .post-title {
172
+ margin-top: 0;
173
+ }
174
+
175
+ /* Meta data line below post title */
176
+ .post-date {
177
+ display: block;
178
+ margin-top: -0.5rem;
179
+ margin-bottom: 1rem;
180
+ color: #9a9a9a;
181
+ }
182
+
183
+ /* Related posts */
184
+ .related {
185
+ padding-top: 2rem;
186
+ padding-bottom: 2rem;
187
+ border-top: 1px solid #eee;
188
+ }
189
+ .related-posts {
190
+ padding-left: 0;
191
+ list-style: none;
192
+ h3 {
193
+ margin-top: 0;
194
+ }
195
+ li {
196
+ small {
197
+ font-size: 75%;
198
+ color: #999;
199
+ }
200
+ a {
201
+ &:hover {
202
+ color: #268bd2;
203
+ small {
204
+ color: inherit;
205
+ }
206
+ }
207
+ }
208
+ }
209
+ }
210
+
211
+ .pagination {
212
+ overflow: hidden; /* clearfix */
213
+ margin-left: -1rem;
214
+ margin-right: -1rem;
215
+ font-family: "PT Sans", Helvetica, Arial, sans-serif;
216
+ color: #ccc;
217
+ text-align: center;
218
+ }
219
+
220
+ /* Pagination items can be `span`s or `a`s */
221
+ .pagination-item {
222
+ display: block;
223
+ padding: 1rem;
224
+ border: 1px solid #eee;
225
+ }
226
+ .pagination-item:first-child {
227
+ margin-bottom: -1px;
228
+ }
229
+
230
+ /* Only provide a hover state for linked pagination items */
231
+ a.pagination-item:hover {
232
+ background-color: #f5f5f5;
233
+ }
234
+
235
+ @media (min-width: 30em) {
236
+ .pagination {
237
+ margin: 3rem 0;
238
+ }
239
+ .pagination-item {
240
+ float: left;
241
+ width: 50%;
242
+ }
243
+ .pagination-item:first-child {
244
+ margin-bottom: 0;
245
+ border-top-left-radius: 4px;
246
+ border-bottom-left-radius: 4px;
247
+ }
248
+ .pagination-item:last-child {
249
+ margin-left: -1px;
250
+ border-top-right-radius: 4px;
251
+ border-bottom-right-radius: 4px;
252
+ }
253
+ }
254
+
255
+ /*
256
+ * Reverse layout
257
+ *
258
+ * Flip the orientation of the page by placing the `.sidebar` and sidebar toggle
259
+ * on the right side.
260
+ */
261
+
262
+ .layout-reverse .sidebar {
263
+ left: auto;
264
+ right: -14rem;
265
+ }
266
+ .layout-reverse .sidebar-toggle {
267
+ left: auto;
268
+ right: 1rem;
269
+ }
270
+
271
+ .layout-reverse #sidebar-checkbox:checked ~ .sidebar,
272
+ .layout-reverse #sidebar-checkbox:checked ~ .wrap,
273
+ .layout-reverse #sidebar-checkbox:checked ~ .sidebar-toggle {
274
+ -webkit-transform: translateX(-14rem);
275
+ -ms-transform: translateX(-14rem);
276
+ transform: translateX(-14rem);
277
+ }
278
+
279
+ /*
280
+ * Overlay sidebar
281
+ *
282
+ * Make the sidebar content overlay the viewport content instead of pushing it
283
+ * aside when toggled.
284
+ */
285
+
286
+ .sidebar-overlay #sidebar-checkbox:checked ~ .wrap {
287
+ -webkit-transform: translateX(0);
288
+ -ms-transform: translateX(0);
289
+ transform: translateX(0);
290
+ }
291
+ .sidebar-overlay #sidebar-checkbox:checked ~ .sidebar-toggle {
292
+ box-shadow: 0 0 0 0.25rem #fff;
293
+ }
294
+ .sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
295
+ box-shadow: 0.25rem 0 0.5rem rgba(0, 0, 0, 0.1);
296
+ }
297
+
298
+ /* Only one tweak for a reverse layout */
299
+ .layout-reverse.sidebar-overlay #sidebar-checkbox:checked ~ .sidebar {
300
+ box-shadow: -0.25rem 0 0.5rem rgba(0, 0, 0, 0.1);
301
+ }