jekyll-theme-scaffold 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +176 -0
- data/_includes/archive-by-tagories.html +71 -0
- data/_includes/archive-by-years.html +32 -0
- data/_includes/back-to-top.html +6 -0
- data/_includes/custom-head.html +6 -0
- data/_includes/disqus.html +17 -0
- data/_includes/footer.html +33 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +15 -0
- data/_includes/mathjax.html +2 -0
- data/_layouts/archive.html +15 -0
- data/_layouts/default.html +21 -0
- data/_layouts/home.html +54 -0
- data/_layouts/page.html +8 -0
- data/_layouts/post.html +67 -0
- data/_sass/scaffold/_archive.scss +44 -0
- data/_sass/scaffold/_base.scss +103 -0
- data/_sass/scaffold/_code.scss +27 -0
- data/_sass/scaffold/_footer.scss +29 -0
- data/_sass/scaffold/_header.scss +47 -0
- data/_sass/scaffold/_highlight-dark.scss +84 -0
- data/_sass/scaffold/_highlight-light.scss +84 -0
- data/_sass/scaffold/_home.scss +39 -0
- data/_sass/scaffold/_layout.scss +5 -0
- data/_sass/scaffold/_main.scss +15 -0
- data/_sass/scaffold/_pagination.scss +47 -0
- data/_sass/scaffold/_post.scss +101 -0
- data/_sass/scaffold/_variables.scss +56 -0
- data/assets/css/scaffold/normalize.css +349 -0
- data/assets/css/scaffold/open-color.css +343 -0
- data/assets/css/scaffold/styles.scss +4 -0
- metadata +174 -0
data/_layouts/home.html
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
<div class="separator">posts</div>
|
8
|
+
<div class="posts">
|
9
|
+
{%- if paginator -%}
|
10
|
+
{%- assign posts = paginator.posts -%}
|
11
|
+
{%- else -%}
|
12
|
+
{%- assign posts = site.posts -%}
|
13
|
+
{%- endif -%}
|
14
|
+
{% for post in posts %}
|
15
|
+
<section class="post post-card">
|
16
|
+
<h2 class="post-title">
|
17
|
+
<a href="{{ post.url | relative_url }}">
|
18
|
+
{{ post.title }}
|
19
|
+
</a>
|
20
|
+
</h2>
|
21
|
+
|
22
|
+
<div class="post-meta">
|
23
|
+
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
|
24
|
+
{%- if jekyll.environment == "production" and site.disqus and post.comments != false -%}
|
25
|
+
<span> • </span>
|
26
|
+
<a class="comment-count" href="{{ post.url | relative_url }}#disqus_thread">
|
27
|
+
<span class="disqus-comment-count" data-disqus-url="{{ post.url | absolute_url }}"></span>
|
28
|
+
</a>
|
29
|
+
{%- endif -%}
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<p>{{ post.excerpt | strip_html }}</p>
|
33
|
+
</section>
|
34
|
+
{% endfor %}
|
35
|
+
</div>
|
36
|
+
|
37
|
+
{%- if jekyll.environment == "production" and site.disqus -%}
|
38
|
+
<script id="dsq-count-scr" src="//{{ site.disqus }}.disqus.com/count.js" async></script>
|
39
|
+
{%- endif -%}
|
40
|
+
|
41
|
+
{% if paginator %}
|
42
|
+
<div class="pagination">
|
43
|
+
{% if paginator.next_page %}
|
44
|
+
<a class="pagination-item older" href="{{ paginator.next_page_path | relative_url }}">Older</a>
|
45
|
+
{% else %}
|
46
|
+
<span class="pagination-item older">Older</span>
|
47
|
+
{% endif %}
|
48
|
+
{% if paginator.previous_page %}
|
49
|
+
<a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: relative_url }}">Newer</a>
|
50
|
+
{% else %}
|
51
|
+
<span class="pagination-item newer">Newer</span>
|
52
|
+
{% endif %}
|
53
|
+
</div>
|
54
|
+
{% endif %}
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="post">
|
6
|
+
<h1 class="post-title">{{ page.title }}</h1>
|
7
|
+
<div class="post-meta">
|
8
|
+
{%- assign date_format = site.date_format | default: "%-d %b %Y" -%}
|
9
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: date_format }}</time>
|
10
|
+
{%- if page.last_modified_at -%}
|
11
|
+
<span> ~ </span>
|
12
|
+
{%- assign mdate = page.last_modified_at | date_to_xmlschema -%}
|
13
|
+
<time datetime="{{ mdate }}" itemprop="dateModified">
|
14
|
+
{{ mdate | date: date_format }}
|
15
|
+
</time>
|
16
|
+
{%- endif -%}
|
17
|
+
{%- if page.author -%}
|
18
|
+
<span> • </span>
|
19
|
+
{% for author in page.author %}
|
20
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
21
|
+
{{ author }}
|
22
|
+
</span>
|
23
|
+
{%- if forloop.last == false %}, {% endif -%}
|
24
|
+
{% endfor %}
|
25
|
+
{%- endif -%}
|
26
|
+
</div>
|
27
|
+
|
28
|
+
{{ content }}
|
29
|
+
|
30
|
+
{% if page.tags.size > 0 %}
|
31
|
+
<div class="post-meta post-tags-section">
|
32
|
+
<i class="post-tags-icon fas fa-tags"></i>
|
33
|
+
<ul class="post-tags">
|
34
|
+
{%- for tag in page.tags -%}
|
35
|
+
<li>
|
36
|
+
{% assign slugified_tag = tag | slugify %}
|
37
|
+
{%- if site.tags_path -%}
|
38
|
+
<a class="post-tag" href="{{ site.tags_path | relative_url }}#{{ slugified_tag }}">{{ slugified_tag }}</a>
|
39
|
+
{%- else -%}
|
40
|
+
<span class="post-tag">{{ slugified_tag }}</span>
|
41
|
+
{%- endif -%}
|
42
|
+
</li>
|
43
|
+
{%- endfor -%}
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
{% endif %}
|
47
|
+
</article>
|
48
|
+
|
49
|
+
{% if jekyll.environment == "production" and site.disqus and page.comments != false %}
|
50
|
+
{% include disqus.html %}
|
51
|
+
{% endif %}
|
52
|
+
|
53
|
+
{% if site.related_posts != empty %}
|
54
|
+
<aside class="related">
|
55
|
+
<h2>Related posts</h2>
|
56
|
+
<ul class="related-posts">
|
57
|
+
{% for post in site.related_posts limit:3 %}
|
58
|
+
<li>
|
59
|
+
<a href="{{ post.url | relative_url }}">
|
60
|
+
{{ post.title }}
|
61
|
+
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
|
62
|
+
</a>
|
63
|
+
</li>
|
64
|
+
{% endfor %}
|
65
|
+
</ul>
|
66
|
+
</aside>
|
67
|
+
{% endif %}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.taxonomies-wrapper {
|
2
|
+
margin-top: var(--spacer-2);
|
3
|
+
margin-bottom: var(--spacer-2);
|
4
|
+
}
|
5
|
+
|
6
|
+
.taxonomies {
|
7
|
+
list-style: none;
|
8
|
+
display: grid;
|
9
|
+
grid-column-gap: 2em;
|
10
|
+
grid-template-columns: repeat(2, 1fr);
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
font-weight: bold;
|
14
|
+
|
15
|
+
.taxonomy {
|
16
|
+
display: flex;
|
17
|
+
padding: 0.25em 0;
|
18
|
+
justify-content: space-between;
|
19
|
+
color: inherit;
|
20
|
+
text-decoration: none;
|
21
|
+
border-bottom: 1px solid;
|
22
|
+
margin-bottom: var(--spacer);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.post-list-by-taxonomy {
|
27
|
+
time {
|
28
|
+
font-family: var(--code-font);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.back-to-top {
|
33
|
+
display: block;
|
34
|
+
font-size: 0.8em;
|
35
|
+
text-transform: uppercase;
|
36
|
+
text-align: right;
|
37
|
+
text-decoration: none;
|
38
|
+
}
|
39
|
+
|
40
|
+
@media (min-width: $sm-screen) {
|
41
|
+
.taxonomies {
|
42
|
+
grid-template-columns: repeat(3, 1fr);
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
* {
|
2
|
+
box-sizing: border-box;
|
3
|
+
}
|
4
|
+
|
5
|
+
body {
|
6
|
+
font-family: var(--body-font);
|
7
|
+
font-size: var(--body-font-size);
|
8
|
+
line-height: var(--body-line-height);
|
9
|
+
color: var(--body-color);
|
10
|
+
background-color: var(--body-bg);
|
11
|
+
}
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: var(--link-color);
|
15
|
+
text-decoration: none;
|
16
|
+
|
17
|
+
// `:focus` is linked to `:hover` for basic accessibility
|
18
|
+
&:hover,
|
19
|
+
&:focus {
|
20
|
+
color: var(--link-hover-color);
|
21
|
+
text-decoration: underline;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
figure {
|
26
|
+
margin: 0;
|
27
|
+
}
|
28
|
+
img {
|
29
|
+
display: block;
|
30
|
+
max-width: 100%;
|
31
|
+
margin-top: var(--spacer) 0;
|
32
|
+
border-radius: var(--border-radius);
|
33
|
+
}
|
34
|
+
|
35
|
+
table {
|
36
|
+
width: 100%;
|
37
|
+
border: 0 solid var(--border-color);
|
38
|
+
border-collapse: collapse;
|
39
|
+
margin: var(--spacer) 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
td,
|
43
|
+
th {
|
44
|
+
padding: .25rem .5rem;
|
45
|
+
border-color: inherit;
|
46
|
+
border-style: solid;
|
47
|
+
border-width: 0;
|
48
|
+
border-bottom-width: 1px;
|
49
|
+
}
|
50
|
+
|
51
|
+
th {
|
52
|
+
text-align: left;
|
53
|
+
}
|
54
|
+
|
55
|
+
thead th {
|
56
|
+
border-bottom-color: currentColor;
|
57
|
+
}
|
58
|
+
|
59
|
+
hr {
|
60
|
+
border: 0;
|
61
|
+
border-top: 1px solid var(--border-color);
|
62
|
+
}
|
63
|
+
|
64
|
+
mark {
|
65
|
+
padding: .15em .3em;
|
66
|
+
border-radius: var(--border-radius);
|
67
|
+
color: var(--body-bg);
|
68
|
+
background-color: var(--mark-color);
|
69
|
+
}
|
70
|
+
|
71
|
+
blockquote {
|
72
|
+
padding-left: 1em;
|
73
|
+
margin: var(--spacer) 0;
|
74
|
+
color: var(--body-color-light);
|
75
|
+
border-left: .25em solid var(--border-color);
|
76
|
+
|
77
|
+
p:last-child {
|
78
|
+
margin-bottom: 0;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
code,
|
83
|
+
pre {
|
84
|
+
font-family: var(--code-font);
|
85
|
+
}
|
86
|
+
|
87
|
+
code {
|
88
|
+
padding: .1em .25em;
|
89
|
+
background-color: var(--border-color);
|
90
|
+
border-radius: var(--border-radius);
|
91
|
+
}
|
92
|
+
|
93
|
+
pre {
|
94
|
+
display: block;
|
95
|
+
overflow: auto;
|
96
|
+
padding: var(--spacer);
|
97
|
+
margin: var(--spacer) 0;
|
98
|
+
|
99
|
+
code {
|
100
|
+
padding: 0;
|
101
|
+
background-color: inherit;
|
102
|
+
}
|
103
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.highlight {
|
2
|
+
border-radius: var(--border-radius);
|
3
|
+
}
|
4
|
+
|
5
|
+
.rouge-table {
|
6
|
+
margin: 0;
|
7
|
+
font-size: 100%;
|
8
|
+
|
9
|
+
&,
|
10
|
+
td,
|
11
|
+
th {
|
12
|
+
border: 0;
|
13
|
+
padding: 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
pre {
|
17
|
+
padding: 0;
|
18
|
+
margin: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.gutter {
|
22
|
+
vertical-align: top;
|
23
|
+
user-select: none;
|
24
|
+
opacity: .25;
|
25
|
+
padding-right: var(--spacer);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.footer {
|
2
|
+
margin: var(--spacer-3) 0;
|
3
|
+
}
|
4
|
+
|
5
|
+
.social-icons {
|
6
|
+
list-style: none;
|
7
|
+
padding: 0;
|
8
|
+
height: calc(var(--body-line-height) * var(--body-font-size));
|
9
|
+
}
|
10
|
+
.social-icon-item {
|
11
|
+
float: left;
|
12
|
+
margin-right: var(--spacer);
|
13
|
+
}
|
14
|
+
.social-icon {
|
15
|
+
color: inherit;
|
16
|
+
}
|
17
|
+
|
18
|
+
@media (min-width: $md-screen) {
|
19
|
+
.footer {
|
20
|
+
display: flex;
|
21
|
+
}
|
22
|
+
.footer-column {
|
23
|
+
width: 100%;
|
24
|
+
}
|
25
|
+
|
26
|
+
.social-icons {
|
27
|
+
margin: 0;
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
.masthead {
|
2
|
+
padding: var(--spacer) 0;
|
3
|
+
margin-bottom: var(--spacer-3);
|
4
|
+
}
|
5
|
+
|
6
|
+
.masthead-title {
|
7
|
+
font-size: 120%;
|
8
|
+
font-weight: bold;
|
9
|
+
color: var(--heading-color);
|
10
|
+
|
11
|
+
&:hover,
|
12
|
+
&:focus {
|
13
|
+
color: var(--heading-color);
|
14
|
+
text-decoration: none;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.masthead-tagline {
|
19
|
+
color: var(--body-color-light);
|
20
|
+
}
|
21
|
+
|
22
|
+
.nav {
|
23
|
+
margin-top: var(--spacer);
|
24
|
+
}
|
25
|
+
.nav-list {
|
26
|
+
list-style: none;
|
27
|
+
margin: 0;
|
28
|
+
padding: 0;
|
29
|
+
}
|
30
|
+
.nav-item {
|
31
|
+
display: inline-block;
|
32
|
+
margin-right: 1em;
|
33
|
+
|
34
|
+
&:before {
|
35
|
+
content: "/";
|
36
|
+
}
|
37
|
+
|
38
|
+
a {
|
39
|
+
color: inherit;
|
40
|
+
|
41
|
+
&:hover,
|
42
|
+
&:focus {
|
43
|
+
color: var(--link-hover-color);
|
44
|
+
text-decoration: none;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
.highlight table td { padding: 5px; }
|
2
|
+
.highlight table pre { margin: 0; }
|
3
|
+
.highlight, .highlight .w {
|
4
|
+
color: #fbf1c7;
|
5
|
+
background-color: #282828;
|
6
|
+
}
|
7
|
+
.highlight .err {
|
8
|
+
color: #fb4934;
|
9
|
+
background-color: #282828;
|
10
|
+
font-weight: bold;
|
11
|
+
}
|
12
|
+
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
|
13
|
+
color: #928374;
|
14
|
+
font-style: italic;
|
15
|
+
}
|
16
|
+
.highlight .cp {
|
17
|
+
color: #8ec07c;
|
18
|
+
}
|
19
|
+
.highlight .nt {
|
20
|
+
color: #fb4934;
|
21
|
+
}
|
22
|
+
.highlight .o, .highlight .ow {
|
23
|
+
color: #fbf1c7;
|
24
|
+
}
|
25
|
+
.highlight .p, .highlight .pi {
|
26
|
+
color: #fbf1c7;
|
27
|
+
}
|
28
|
+
.highlight .gi {
|
29
|
+
color: #b8bb26;
|
30
|
+
background-color: #282828;
|
31
|
+
}
|
32
|
+
.highlight .gd {
|
33
|
+
color: #fb4934;
|
34
|
+
background-color: #282828;
|
35
|
+
}
|
36
|
+
.highlight .gh {
|
37
|
+
color: #b8bb26;
|
38
|
+
font-weight: bold;
|
39
|
+
}
|
40
|
+
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
|
41
|
+
color: #fb4934;
|
42
|
+
}
|
43
|
+
.highlight .kc {
|
44
|
+
color: #d3869b;
|
45
|
+
}
|
46
|
+
.highlight .kt {
|
47
|
+
color: #fabd2f;
|
48
|
+
}
|
49
|
+
.highlight .kd {
|
50
|
+
color: #fe8019;
|
51
|
+
}
|
52
|
+
.highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
|
53
|
+
color: #b8bb26;
|
54
|
+
font-style: italic;
|
55
|
+
}
|
56
|
+
.highlight .si {
|
57
|
+
color: #b8bb26;
|
58
|
+
font-style: italic;
|
59
|
+
}
|
60
|
+
.highlight .sr {
|
61
|
+
color: #b8bb26;
|
62
|
+
font-style: italic;
|
63
|
+
}
|
64
|
+
.highlight .se {
|
65
|
+
color: #fe8019;
|
66
|
+
}
|
67
|
+
.highlight .nn {
|
68
|
+
color: #8ec07c;
|
69
|
+
}
|
70
|
+
.highlight .nc {
|
71
|
+
color: #8ec07c;
|
72
|
+
}
|
73
|
+
.highlight .no {
|
74
|
+
color: #d3869b;
|
75
|
+
}
|
76
|
+
.highlight .na {
|
77
|
+
color: #b8bb26;
|
78
|
+
}
|
79
|
+
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
|
80
|
+
color: #d3869b;
|
81
|
+
}
|
82
|
+
.highlight .ss {
|
83
|
+
color: #83a598;
|
84
|
+
}
|