jekyll-calculus-theme 0.3.3 → 0.4.0
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/_config.example.yml +0 -42
- data/_layouts/archive-tag.html +24 -0
- data/_layouts/archive-year.html +24 -0
- data/_layouts/default.html +5 -0
- data/_layouts/home.html +16 -2
- data/_layouts/post.html +1 -1
- data/_layouts/posts.html +24 -0
- data/_sass/_main.scss +88 -5
- metadata +4 -2
- data/_layouts/tag.html +0 -33
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6092427ba05fbeca92bd2c8e4cf9f9f65fe318169c83c0a5dbe261ea7871eb9a
|
|
4
|
+
data.tar.gz: a96f66dffd4c9dbc5672c18a70ada8c0ad2b8c15eaf439e9acb35e3093a1cb1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e441dfc73745558648b32d51d28c627be6d0d628399825ee59617e60a722d5b2bb0ce9ee5285ba542eb6e6c7580935ce006542954f406576d21054fb17ed8e0
|
|
7
|
+
data.tar.gz: 0df6417f39149f2dc51f1e7f7424db71b6622337c6887904bcfaeba6dd388a2c14b9a61514969e7f7c3f5be4146bd86d4fcceb88dd7cbc9d283d36734ca015cc
|
data/_config.example.yml
CHANGED
|
@@ -19,13 +19,6 @@ plugins:
|
|
|
19
19
|
- jekyll-seo-tag
|
|
20
20
|
- jekyll-sitemap
|
|
21
21
|
|
|
22
|
-
# Theme settings
|
|
23
|
-
show_excerpts: true
|
|
24
|
-
|
|
25
|
-
# Pagination (optional)
|
|
26
|
-
# paginate: 10
|
|
27
|
-
# paginate_path: "/page:num/"
|
|
28
|
-
|
|
29
22
|
# Exclude from processing
|
|
30
23
|
exclude:
|
|
31
24
|
- Gemfile
|
|
@@ -38,38 +31,3 @@ exclude:
|
|
|
38
31
|
- .sass-cache/
|
|
39
32
|
- .jekyll-cache/
|
|
40
33
|
- gemfiles/
|
|
41
|
-
|
|
42
|
-
# Collections (optional)
|
|
43
|
-
# collections:
|
|
44
|
-
# posts:
|
|
45
|
-
# output: true
|
|
46
|
-
# permalink: /:year/:month/:day/:title/
|
|
47
|
-
|
|
48
|
-
# Defaults
|
|
49
|
-
defaults:
|
|
50
|
-
- scope:
|
|
51
|
-
path: ""
|
|
52
|
-
type: "posts"
|
|
53
|
-
values:
|
|
54
|
-
layout: "post"
|
|
55
|
-
comments: true
|
|
56
|
-
- scope:
|
|
57
|
-
path: ""
|
|
58
|
-
type: "pages"
|
|
59
|
-
values:
|
|
60
|
-
layout: "page"
|
|
61
|
-
|
|
62
|
-
# Social links (optional)
|
|
63
|
-
# github_username: yourusername
|
|
64
|
-
# twitter_username: yourusername
|
|
65
|
-
|
|
66
|
-
# SEO settings
|
|
67
|
-
twitter:
|
|
68
|
-
username: yourusername
|
|
69
|
-
card: summary
|
|
70
|
-
|
|
71
|
-
social:
|
|
72
|
-
name: Your Name
|
|
73
|
-
links:
|
|
74
|
-
- https://twitter.com/yourusername
|
|
75
|
-
- https://github.com/yourusername
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
type: tag
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<section id="intro">
|
|
7
|
+
<div class="flex-row-between">
|
|
8
|
+
<h1>{{ site.title }}</h1>
|
|
9
|
+
<button title="Change theme" id="theme-toggle" onclick="modeSwitcher()">
|
|
10
|
+
<div></div>
|
|
11
|
+
</button>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<h2>Archive of posts with {{ page.type }} '{{ page.title }}'</h2>
|
|
15
|
+
<ul class="posts">
|
|
16
|
+
{% for post in page.posts %}
|
|
17
|
+
<li>
|
|
18
|
+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
|
19
|
+
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
|
|
20
|
+
</li>
|
|
21
|
+
{% endfor %}
|
|
22
|
+
</ul>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
type: year
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<section id="intro">
|
|
7
|
+
<div class="flex-row-between">
|
|
8
|
+
<h1>{{ site.title }}</h1>
|
|
9
|
+
<button title="Change theme" id="theme-toggle" onclick="modeSwitcher()">
|
|
10
|
+
<div></div>
|
|
11
|
+
</button>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>
|
|
15
|
+
<ul class="posts">
|
|
16
|
+
{% for post in page.posts %}
|
|
17
|
+
<li>
|
|
18
|
+
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
|
|
19
|
+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
|
20
|
+
</li>
|
|
21
|
+
{% endfor %}
|
|
22
|
+
</ul>
|
|
23
|
+
</section>
|
|
24
|
+
|
data/_layouts/default.html
CHANGED
|
@@ -49,6 +49,11 @@ layout: compress
|
|
|
49
49
|
</body>
|
|
50
50
|
|
|
51
51
|
<footer class="social-footer">
|
|
52
|
+
<div class="social-footer-icons">
|
|
53
|
+
<a href="{{ site.baseurl }}/feed.xml" title="RSS Feed">
|
|
54
|
+
<i class="fa fa-rss"></i>
|
|
55
|
+
</a>
|
|
56
|
+
</div>
|
|
52
57
|
<p>© {{ site.time | date: '%Y' }} · <a href="mailto:{{ site.author.email }}" >{{ site.author.name }}</a></p>
|
|
53
58
|
</footer>
|
|
54
59
|
</html>
|
data/_layouts/home.html
CHANGED
|
@@ -8,18 +8,32 @@ layout: default
|
|
|
8
8
|
<div></div>
|
|
9
9
|
</button>
|
|
10
10
|
</div>
|
|
11
|
+
|
|
11
12
|
<div class="bio">
|
|
12
13
|
{{ content }}
|
|
13
14
|
</div>
|
|
14
15
|
<div class="posts">
|
|
15
|
-
<h2>
|
|
16
|
+
<h2>Recent Posts</h2>
|
|
16
17
|
<ul>
|
|
17
|
-
{% for post in site.posts %}
|
|
18
|
+
{% for post in site.posts limit:3 %}
|
|
18
19
|
<li>
|
|
19
20
|
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
|
|
20
21
|
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %d, %Y" }}</time>
|
|
21
22
|
</li>
|
|
22
23
|
{% endfor %}
|
|
23
24
|
</ul>
|
|
25
|
+
<a href="{{ site.baseurl }}/posts/">... read all posts →</a>
|
|
24
26
|
</div>
|
|
25
27
|
</section>
|
|
28
|
+
|
|
29
|
+
<section class="tags" style="margin-top: 0.5rem;">
|
|
30
|
+
<h2>All tags:</h2>
|
|
31
|
+
{% assign tags = site.tags | sort %}
|
|
32
|
+
<ul>
|
|
33
|
+
{% for tag in tags %}
|
|
34
|
+
<li>
|
|
35
|
+
<a class="posts" href="{{ site.baseurl }}/archives/tag/{{ tag | first | slugify }}/">{{ tag[0] | slugify }} ({{ tag | last | size }}){% unless forloop.last %}, {% endunless %}</a>
|
|
36
|
+
</li>
|
|
37
|
+
{% endfor %}
|
|
38
|
+
</ul>
|
|
39
|
+
</section>
|
data/_layouts/post.html
CHANGED
|
@@ -14,7 +14,7 @@ layout: default
|
|
|
14
14
|
<h1 class="title">{{ page.title }}</h1>
|
|
15
15
|
<span class="meta">tags:
|
|
16
16
|
{% for tag in page.tags %}
|
|
17
|
-
<a href="{{ site.baseurl }}/tag/{{tag}}">{{tag}}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</span>
|
|
17
|
+
<a href="{{ site.baseurl }}/archives/tag/{{tag}}">{{tag}}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</span>
|
|
18
18
|
{{ content }}
|
|
19
19
|
</section>
|
|
20
20
|
|
data/_layouts/posts.html
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<section id="intro">
|
|
6
|
+
<div class="flex-row-between">
|
|
7
|
+
<h1>{{ site.title }}</h1>
|
|
8
|
+
<button title="Change theme" id="theme-toggle" onclick="modeSwitcher()">
|
|
9
|
+
<div></div>
|
|
10
|
+
</button>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div class="posts">
|
|
14
|
+
<h2>All Posts</h2>
|
|
15
|
+
<ul>
|
|
16
|
+
{% for post in site.posts %}
|
|
17
|
+
<li>
|
|
18
|
+
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
|
|
19
|
+
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %d, %Y" }}</time>
|
|
20
|
+
</li>
|
|
21
|
+
{% endfor %}
|
|
22
|
+
</ul>
|
|
23
|
+
</div>
|
|
24
|
+
</section>
|
data/_sass/_main.scss
CHANGED
|
@@ -237,7 +237,7 @@ section {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
section {
|
|
240
|
-
margin-top:
|
|
240
|
+
margin-top: 3.5rem;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
blockquote {
|
|
@@ -260,7 +260,7 @@ h4,
|
|
|
260
260
|
h5 {
|
|
261
261
|
font-weight: bold;
|
|
262
262
|
font-size: 1rem;
|
|
263
|
-
margin-bottom:
|
|
263
|
+
margin-bottom: 1rem;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
section h1:first-child {
|
|
@@ -337,7 +337,7 @@ main {
|
|
|
337
337
|
display: flex;
|
|
338
338
|
max-width: 47rem;
|
|
339
339
|
margin: -5rem auto 0;
|
|
340
|
-
padding: 2.4rem 2rem;
|
|
340
|
+
padding: 2.4rem 2rem 1rem;
|
|
341
341
|
flex-direction: column;
|
|
342
342
|
}
|
|
343
343
|
|
|
@@ -351,13 +351,16 @@ main {
|
|
|
351
351
|
.social-footer {
|
|
352
352
|
padding: 1rem;
|
|
353
353
|
display: flex;
|
|
354
|
+
flex-direction: column;
|
|
355
|
+
align-items: center;
|
|
356
|
+
gap: 0.5rem;
|
|
354
357
|
justify-content: center;
|
|
355
358
|
position: initial;
|
|
356
359
|
|
|
357
360
|
.social-footer-icons {
|
|
358
361
|
|
|
359
362
|
.fa {
|
|
360
|
-
font-size: 1.
|
|
363
|
+
font-size: 1.0rem;
|
|
361
364
|
color: #a9a9a9;
|
|
362
365
|
|
|
363
366
|
&:hover {
|
|
@@ -405,7 +408,7 @@ figcaption {
|
|
|
405
408
|
}
|
|
406
409
|
|
|
407
410
|
.bio {
|
|
408
|
-
margin-bottom: 5rem;
|
|
411
|
+
margin-bottom: 3.5rem;
|
|
409
412
|
}
|
|
410
413
|
|
|
411
414
|
::selection {
|
|
@@ -752,3 +755,83 @@ $link-color: var(--link-color);
|
|
|
752
755
|
|
|
753
756
|
}
|
|
754
757
|
}
|
|
758
|
+
// Post list with excerpts
|
|
759
|
+
.post-list-with-excerpts {
|
|
760
|
+
.post-item {
|
|
761
|
+
margin-bottom: 2.5rem;
|
|
762
|
+
padding-bottom: 2rem;
|
|
763
|
+
border-bottom: 1px solid var(--very-light-text-color);
|
|
764
|
+
|
|
765
|
+
&:last-child {
|
|
766
|
+
border-bottom: none;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
h3 {
|
|
770
|
+
margin-bottom: 0.5rem;
|
|
771
|
+
font-size: 1.3rem;
|
|
772
|
+
font-weight: bold;
|
|
773
|
+
|
|
774
|
+
a {
|
|
775
|
+
color: var(--main-text-color);
|
|
776
|
+
text-decoration: none;
|
|
777
|
+
|
|
778
|
+
&:hover {
|
|
779
|
+
color: var(--link-color);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
time {
|
|
785
|
+
display: block;
|
|
786
|
+
margin-bottom: 0.75rem;
|
|
787
|
+
font-size: 0.9rem;
|
|
788
|
+
color: var(--medium-text-color);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.post-excerpt {
|
|
792
|
+
color: var(--main-text-color);
|
|
793
|
+
line-height: 1.6;
|
|
794
|
+
margin-top: 0.75rem;
|
|
795
|
+
|
|
796
|
+
p {
|
|
797
|
+
margin: 0;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// Pagination styles
|
|
804
|
+
.pagination {
|
|
805
|
+
display: flex;
|
|
806
|
+
justify-content: space-between;
|
|
807
|
+
align-items: center;
|
|
808
|
+
margin-top: 3rem;
|
|
809
|
+
padding-top: 2rem;
|
|
810
|
+
border-top: 1px solid var(--very-light-text-color);
|
|
811
|
+
|
|
812
|
+
.pagination-link {
|
|
813
|
+
color: var(--link-color);
|
|
814
|
+
text-decoration: none;
|
|
815
|
+
padding: 0.5rem 1rem;
|
|
816
|
+
border: 1px solid var(--link-color);
|
|
817
|
+
border-radius: 4px;
|
|
818
|
+
transition: all 0.3s ease;
|
|
819
|
+
|
|
820
|
+
&:hover:not(.disabled) {
|
|
821
|
+
background-color: var(--link-color);
|
|
822
|
+
color: white;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
&.disabled {
|
|
826
|
+
color: var(--medium-text-color);
|
|
827
|
+
border-color: var(--very-light-text-color);
|
|
828
|
+
cursor: not-allowed;
|
|
829
|
+
opacity: 0.5;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.pagination-info {
|
|
834
|
+
color: var(--medium-text-color);
|
|
835
|
+
font-size: 0.9rem;
|
|
836
|
+
}
|
|
837
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-calculus-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jain Basil Aliyas
|
|
@@ -122,12 +122,14 @@ files:
|
|
|
122
122
|
- _includes/head.html
|
|
123
123
|
- _includes/inline.scss
|
|
124
124
|
- _layouts/about.html
|
|
125
|
+
- _layouts/archive-tag.html
|
|
126
|
+
- _layouts/archive-year.html
|
|
125
127
|
- _layouts/compress.html
|
|
126
128
|
- _layouts/default.html
|
|
127
129
|
- _layouts/home.html
|
|
128
130
|
- _layouts/page.html
|
|
129
131
|
- _layouts/post.html
|
|
130
|
-
- _layouts/
|
|
132
|
+
- _layouts/posts.html
|
|
131
133
|
- _sass/_main.scss
|
|
132
134
|
- assets/css/syntax.css
|
|
133
135
|
- assets/js/simple-jekyll-search.js
|
data/_layouts/tag.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: default
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<section class="posts">
|
|
6
|
-
<div class="flex-row-between">
|
|
7
|
-
<h1>Tag #{{page.tag}}</h1>
|
|
8
|
-
<a href="/"><i class="fa fa-home" aria-hidden="true"></i> Home</a>
|
|
9
|
-
</div>
|
|
10
|
-
<ul>
|
|
11
|
-
{% for post in site.posts %}
|
|
12
|
-
{% if post.tags contains page.tag %}
|
|
13
|
-
<li><a class="post" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a><time
|
|
14
|
-
datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</time></li>
|
|
15
|
-
{% endif %}
|
|
16
|
-
{% endfor %}
|
|
17
|
-
</ul>
|
|
18
|
-
</section>
|
|
19
|
-
|
|
20
|
-
<section class="tags">
|
|
21
|
-
<h2>All tags:</h2>
|
|
22
|
-
{% assign tags = site.tags | sort %}
|
|
23
|
-
{% for tag in tags %}
|
|
24
|
-
<ul>
|
|
25
|
-
<li>
|
|
26
|
-
<a class="posts" href=" {{ site.baseurl }}/tag/{{ tag | first | slugify }}/">{{ tag[0] | replace:'-', ' '
|
|
27
|
-
}} ({{ tag | last | size
|
|
28
|
-
}}){% unless forloop.last %}, {% endunless %}
|
|
29
|
-
{% endfor %}
|
|
30
|
-
</a>
|
|
31
|
-
</li>
|
|
32
|
-
</ul>
|
|
33
|
-
</section>
|