jekyll-theme-simplex 0.9.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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/_includes/footer.html +9 -0
- data/_includes/head.html +13 -0
- data/_includes/header.html +13 -0
- data/_includes/nav.html +32 -0
- data/_includes/scripts.html +2 -0
- data/_includes/snippet.html +30 -0
- data/_layouts/category.html +25 -0
- data/_layouts/default.html +20 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +7 -0
- data/_sass/_feed.scss +145 -0
- data/_sass/_footer.scss +49 -0
- data/_sass/_global.scss +67 -0
- data/_sass/_header.scss +283 -0
- data/_sass/_index.scss +8 -0
- data/_sass/_mixins.scss +67 -0
- data/_sass/_post.scss +11 -0
- data/_sass/_variables.scss +81 -0
- data/assets/fonts/Roboto-Bold.ttf +0 -0
- data/assets/fonts/Roboto-Bold.woff +0 -0
- data/assets/fonts/Roboto-Bold.woff2 +0 -0
- data/assets/fonts/Roboto-Regular.ttf +0 -0
- data/assets/fonts/Roboto-Regular.woff +0 -0
- data/assets/fonts/Roboto-Regular.woff2 +0 -0
- data/assets/fonts/RobotoMono-Bold.ttf +0 -0
- data/assets/fonts/RobotoMono-Bold.woff +0 -0
- data/assets/fonts/RobotoMono-Bold.woff2 +0 -0
- data/assets/fonts/RobotoMono-Regular.ttf +0 -0
- data/assets/fonts/RobotoMono-Regular.woff +0 -0
- data/assets/fonts/RobotoMono-Regular.woff2 +0 -0
- data/assets/fonts/RobotoSlab-Bold.ttf +0 -0
- data/assets/fonts/RobotoSlab-Bold.woff +0 -0
- data/assets/fonts/RobotoSlab-Bold.woff2 +0 -0
- data/assets/fonts/RobotoSlab-Regular.ttf +0 -0
- data/assets/fonts/RobotoSlab-Regular.woff +0 -0
- data/assets/fonts/RobotoSlab-Regular.woff2 +0 -0
- data/assets/fonts/fonts.css +54 -0
- data/assets/img/icons/golasblog_logo.svg +113 -0
- data/assets/img/icons/simplex_logo.svg +96 -0
- data/assets/img/icons/wrench.svg +54 -0
- data/assets/js/jquery.slim.min.js +2 -0
- data/assets/js/tools.js +14 -0
- data/assets/style.scss +29 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 77c604908694f8933df08b2357f297a65f174999b3c5f622c45521fb9d5771a8
|
4
|
+
data.tar.gz: b18139a2fd2fda92df5c5d420c7668a1109b778c11c85991c405388574525cc6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a3109eb171813fa92e3ba7542e50040eb2c9f041333ca9399e8cdc6b6eda779f90d72a175464ecc37738a5d787ac0422ac9ed1f8ceca87b748697f7c6ed48e3
|
7
|
+
data.tar.gz: 6fa72d0987272ad157ec3c78cc6557875149b44f3b38bab52a38a7cd833f7cb33760742345477d48968252b11e0d4a18846d34b3b8e1b59d5ea05290a3a1f4a5
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+

|
2
|
+
[](https://golas.blog/)
|
3
|
+
|
4
|
+
# <img src="assets/img/icons/simplex_logo.svg" alt="Simplex" height="50"/>
|
5
|
+
|
6
|
+
A *simple* yet neat blogging theme. Developed for the [golas blog](https://golas.blog/) project.
|
7
|
+
|
8
|
+
## ℹ Installation
|
9
|
+
|
10
|
+
Add this line to your Jekyll site's `Gemfile`:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem "jekyll-theme-simplex"
|
14
|
+
```
|
15
|
+
|
16
|
+
And add this line to your Jekyll site's `_config.yml`:
|
17
|
+
|
18
|
+
```yaml
|
19
|
+
theme: jekyll-theme-simplex
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install jekyll-theme-simplex
|
29
|
+
|
30
|
+
## ✔ Usage
|
31
|
+
|
32
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
|
33
|
+
|
34
|
+
## 🤝 Contributing
|
35
|
+
|
36
|
+
Bug reports and pull requests are welcome on [GitHub](https://github.com/andreondra/jekyll-theme-simplex).
|
37
|
+
|
38
|
+
## ⚙ Development
|
39
|
+
|
40
|
+
To set up your environment to develop this theme, run `bundle install`.
|
41
|
+
|
42
|
+
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.
|
43
|
+
|
44
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
45
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-simplex.gemspec` accordingly.
|
46
|
+
|
47
|
+
## ⚖ License
|
48
|
+
|
49
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
50
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<footer class="footer">
|
2
|
+
<section class="footer__about">
|
3
|
+
<p class="footer__about__copyright">{{ site.copyright }}</p>
|
4
|
+
{% if site.copyright != nil %}
|
5
|
+
<span class="divider">·</span>
|
6
|
+
{% endif %}
|
7
|
+
<span class="footer__about__theme"><p>theme</p><a id="simplex-logo" href="https://github.com/andreondra/jekyll-theme-simplex" target="_blank"><img alt="Simplex theme logo" src="{{ site.url }}/assets/img/icons/simplex_logo.svg"/></a><p>by <a href="https://ondrej.golasowski.com/">golas</a></p></span>
|
8
|
+
</section>
|
9
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
<link rel="stylesheet" href="{{ site.url }}/assets/fonts/fonts.css"/>
|
2
|
+
<link rel="stylesheet" href="{{ site.url }}/assets/style.css"/>
|
3
|
+
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
|
7
|
+
<title>
|
8
|
+
{% if page.title != nil %}
|
9
|
+
{{page.title}}
|
10
|
+
{% else %}
|
11
|
+
{{site.title}}
|
12
|
+
{% endif %}
|
13
|
+
</title>
|
data/_includes/nav.html
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
{% if include.embedded != nil %}
|
2
|
+
<ul class="list">
|
3
|
+
{% else %}
|
4
|
+
<ul class="list primary">
|
5
|
+
{% endif %}
|
6
|
+
{% for item in include.nav %}
|
7
|
+
<li class="item">
|
8
|
+
|
9
|
+
<div class="item-controls">
|
10
|
+
<a href="{{ site.url }}/{{ item.url }}">
|
11
|
+
{% for img in site.static_files %}
|
12
|
+
{% if img.name == item.icon and img.path contains "img/icons" %}
|
13
|
+
<img src="{{ site.url }}/{{ img.path }}"/>
|
14
|
+
{% endif %}
|
15
|
+
{% endfor %}
|
16
|
+
{% if item.hue != nil %}
|
17
|
+
<p style="color: {{ item.hue }}">{{ item.title }}</p>
|
18
|
+
{% else %}
|
19
|
+
<p>{{ item.title }}</p>
|
20
|
+
{% endif%}
|
21
|
+
</a>
|
22
|
+
|
23
|
+
{% if item.subnav %}
|
24
|
+
<a class="button-submenu" href="#"><i class="arrow"></i></a>
|
25
|
+
</div>
|
26
|
+
{% include nav.html nav=item.subnav embedded=true %}
|
27
|
+
{% else %}
|
28
|
+
</div>
|
29
|
+
{% endif %}
|
30
|
+
</li>
|
31
|
+
{% endfor %}
|
32
|
+
</ul>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<style>
|
2
|
+
.snippet_{{ post.id | slugify: "ascii" }}::after {
|
3
|
+
|
4
|
+
background-image:
|
5
|
+
radial-gradient(ellipse closest-side, var(--c-snippetBackgroundExternal), var(--c-snippetBackgroundInternal)),
|
6
|
+
url(
|
7
|
+
{% if post.image_dir == nil %}
|
8
|
+
{% assign url = post.path | split: "." | first | split: "/" | last %}
|
9
|
+
{{ site.url }}/assets/posts/{{ url }}/background_image.png
|
10
|
+
{% else if post.image_dir != "null" %}
|
11
|
+
{{ post.image_dir }}
|
12
|
+
{% endif %}
|
13
|
+
);
|
14
|
+
}
|
15
|
+
</style>
|
16
|
+
<a class="snippet__link" href="{{ post.url }}">
|
17
|
+
<section class="snippet__data">
|
18
|
+
<section class="snippet__data__metadata">
|
19
|
+
<p class="snippet__data__metadata__category" style="color: {{ site.category | where: "category", post.category | map: "hue" }}">{{ post.category | join: " · " }}</p>
|
20
|
+
<p class="snippet__data__metadata__date">{{ post.date | date: '%B %d, %Y' }}</p>
|
21
|
+
</section>
|
22
|
+
<h2 class="snippet__data__header">{{post.title }}</h2>
|
23
|
+
<p class="snippet__data__text">{{ post.excerpt | strip_html }}</p>
|
24
|
+
<div class="snippet__data__author">
|
25
|
+
{% assign author = site.authors | where: "nick", post.author | first %}
|
26
|
+
<img src="{{ site.url }}/{{ author.photo_dir }}"/>
|
27
|
+
<p>{{ author.full_name }}</p>
|
28
|
+
</div>
|
29
|
+
</section>
|
30
|
+
</a>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<section class="feed">
|
6
|
+
<section class="feed__description">
|
7
|
+
{% if page.title != nil %}
|
8
|
+
<h1>{{ page.title }}</h1>
|
9
|
+
{% endif %}
|
10
|
+
{% if page.description != nil %}
|
11
|
+
<p>{{ page.description }}</p>
|
12
|
+
{% endif %}
|
13
|
+
</section>
|
14
|
+
|
15
|
+
{% for post in site.posts %}
|
16
|
+
<section class="snippet snippet_{{ post.id | slugify: "ascii" }}">
|
17
|
+
{% for category in post.category %}
|
18
|
+
{% if page.category contains category %}
|
19
|
+
{% include snippet.html post=post %}
|
20
|
+
{% break %}
|
21
|
+
{% endif %}
|
22
|
+
{% endfor %}
|
23
|
+
</section>
|
24
|
+
{% endfor %}
|
25
|
+
</section>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
|
3
|
+
---
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html lang="en">
|
7
|
+
<head>
|
8
|
+
{% include head.html %}
|
9
|
+
</head>
|
10
|
+
<body class="index">
|
11
|
+
|
12
|
+
{% include header.html %}
|
13
|
+
|
14
|
+
{{content}}
|
15
|
+
|
16
|
+
{% include footer.html %}
|
17
|
+
|
18
|
+
{% include scripts.html %}
|
19
|
+
</body>
|
20
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
data/_sass/_feed.scss
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
// =============================
|
2
|
+
// feed.scss
|
3
|
+
// =============================
|
4
|
+
// Used for page feed - used in index and categories.
|
5
|
+
|
6
|
+
.feed{
|
7
|
+
|
8
|
+
padding: 2rem;
|
9
|
+
margin: 2rem;
|
10
|
+
max-width: 1000px;
|
11
|
+
width: 100%;
|
12
|
+
justify-self: center;
|
13
|
+
|
14
|
+
@include flexbox{
|
15
|
+
flex-direction: column;
|
16
|
+
};
|
17
|
+
|
18
|
+
&__description{
|
19
|
+
@include flexbox{
|
20
|
+
flex-direction: column;
|
21
|
+
};
|
22
|
+
|
23
|
+
text-align: center;
|
24
|
+
padding: 0 2rem;
|
25
|
+
min-width: 80%;
|
26
|
+
|
27
|
+
h1{
|
28
|
+
margin: 1rem 0 0 0;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.snippet{
|
33
|
+
|
34
|
+
@include flexbox;
|
35
|
+
position: relative;
|
36
|
+
min-width: 80%;
|
37
|
+
|
38
|
+
&__link{
|
39
|
+
text-decoration: none;
|
40
|
+
color: initial;
|
41
|
+
width: 100%;
|
42
|
+
height: 100%;
|
43
|
+
margin: 1rem 0;
|
44
|
+
padding: 1rem 2rem;
|
45
|
+
box-shadow: inset 0px 0px 14px -4px rgba(0, 0, 0, 0);
|
46
|
+
transition: $t-smooth;
|
47
|
+
|
48
|
+
&:hover{
|
49
|
+
transform: scale(.99);
|
50
|
+
box-shadow: inset 0px 0px 14px -4px rgba(0,0,0,0.5);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
@include for-size('tablet'){
|
55
|
+
width: 100%;
|
56
|
+
padding: 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
&__data{
|
60
|
+
|
61
|
+
@include flexbox{
|
62
|
+
flex-direction: column;
|
63
|
+
align-items: flex-start;
|
64
|
+
};
|
65
|
+
|
66
|
+
&__metadata{
|
67
|
+
font-family: var(--f-header);
|
68
|
+
|
69
|
+
@include flexbox;
|
70
|
+
|
71
|
+
&__category{
|
72
|
+
text-transform: uppercase;
|
73
|
+
margin: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
&__date{
|
77
|
+
margin: 0 0 0 1rem;
|
78
|
+
color: var(--c-snippetDate);
|
79
|
+
|
80
|
+
@include for-size('tablet'){
|
81
|
+
margin: 1rem 0 0 0;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
@include for-size('tablet'){
|
86
|
+
flex-direction: column;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
&__header{
|
91
|
+
margin: 1rem 0 0 0;
|
92
|
+
|
93
|
+
@include for-size('tablet'){
|
94
|
+
margin: 1rem 0 0 0;
|
95
|
+
text-align: center;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
&__text{
|
100
|
+
|
101
|
+
margin: 1rem 0 0 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
&__author{
|
105
|
+
|
106
|
+
margin: 1.5rem 0 0 0;
|
107
|
+
|
108
|
+
@include flexbox{
|
109
|
+
flex-direction: row;
|
110
|
+
};
|
111
|
+
|
112
|
+
img{
|
113
|
+
height: 2rem;
|
114
|
+
border-radius: 100%;
|
115
|
+
}
|
116
|
+
|
117
|
+
p{
|
118
|
+
margin: 0 0 0 1rem;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
@include for-size('tablet'){
|
123
|
+
align-items: center;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
&::after{
|
128
|
+
content: "";
|
129
|
+
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
|
130
|
+
z-index: -1;
|
131
|
+
background-size: cover;
|
132
|
+
background-repeat: no-repeat;
|
133
|
+
background-position: center;
|
134
|
+
opacity: .2;
|
135
|
+
|
136
|
+
@include for-size('tablet'){
|
137
|
+
opacity: .3;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
@include for-size('tablet'){
|
143
|
+
padding: 0;
|
144
|
+
}
|
145
|
+
}
|
data/_sass/_footer.scss
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
// =============================
|
2
|
+
// index.scss
|
3
|
+
// =============================
|
4
|
+
// Used for page footer.
|
5
|
+
|
6
|
+
.footer{
|
7
|
+
|
8
|
+
@include flexbox;
|
9
|
+
padding: 1rem 0 0 0;
|
10
|
+
|
11
|
+
&__about{
|
12
|
+
|
13
|
+
@include flexbox;
|
14
|
+
|
15
|
+
&__copyright{
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.divider{
|
20
|
+
margin: 0 1rem;
|
21
|
+
|
22
|
+
@include for-size('tablet'){
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
&__theme{
|
28
|
+
@include flexbox;
|
29
|
+
}
|
30
|
+
|
31
|
+
#simplex-logo{
|
32
|
+
|
33
|
+
img{
|
34
|
+
vertical-align: middle;
|
35
|
+
height: 1.25rem;
|
36
|
+
margin: 0 .5rem;
|
37
|
+
transition: $t-smooth;
|
38
|
+
|
39
|
+
&:hover{
|
40
|
+
transform: scale(1.05) rotate(-5deg);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@include for-size('tablet'){
|
46
|
+
flex-direction: column;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|