better-minima 0.1.1 → 0.1.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 +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +167 -34
- data/_includes/custom-head.html +6 -6
- data/_includes/disqus_comments.html +20 -20
- data/_includes/footer.html +28 -28
- data/_includes/google-analytics.html +9 -9
- data/_includes/head.html +14 -14
- data/_includes/header.html +31 -31
- data/_includes/landing-hero.html +12 -12
- data/_includes/landing.html +4 -4
- data/_includes/social.html +21 -21
- data/_layouts/default.html +10 -10
- data/_layouts/home.html +76 -76
- data/_layouts/html_scaffold.html +13 -13
- data/_layouts/page.html +14 -14
- data/_layouts/post.html +38 -38
- data/_sass/minima/_base.scss +291 -291
- data/_sass/minima/_layout.scss +382 -381
- data/_sass/minima/custom-styles.scss +2 -2
- data/_sass/minima/custom-variables.scss +1 -1
- data/_sass/minima/initialize.scss +50 -50
- data/_sass/minima/skins/classic.scss +91 -91
- data/_sass/minima/skins/dark.scss +95 -95
- data/_sass/minima/skins/solarized-dark.scss +4 -4
- data/_sass/minima/skins/solarized.scss +140 -140
- data/assets/better-minima-social-icons.svg +51 -51
- data/assets/css/style.scss +7 -7
- data/assets/img/posts/dirtycow.jpg +0 -0
- data/assets/img/posts/shellshock.jpg +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55990345de1e4c6c18a57843c6aed090241cdec08b6eb9a321e69eae372557da
|
4
|
+
data.tar.gz: 40701d3d53487a84c9d5746d9509f7e552d2a3a952554c053e6f6bd951e6edbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9254a57ea4056d41085c1c97b33ce3c20bf8101d46446345affa30ed7125ffa3ad24fb6b04c202b1a91a5b299e4871f9da8a157278b2ebb61b6c052bfc5b1336
|
7
|
+
data.tar.gz: '095a0dce7f5b1d7c1ef7af696156dc392d4b66ef7aaaf5d4c34a071312356e3195d9dcae6f0e46e752fa6ce3ceb39b730d23e3df55bbd89212da27bdb4d56b72'
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2016-present Parker Moore and the better-minima contributors
|
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.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016-present Parker Moore and the better-minima contributors
|
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
CHANGED
@@ -1,34 +1,167 @@
|
|
1
|
-
# better-minima
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
```
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
1
|
+
# better-minima
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/better-minima)
|
4
|
+
|
5
|
+
*Better-Minima* is based on [Minima](https://github.com/jekyll/minima) which is Jekyll's default theme.
|
6
|
+
Minima is a beautiful theme to begin with and has a clean look.
|
7
|
+
|
8
|
+
Better-Minima builds upon it by making the theme more suitable for a personal blog.
|
9
|
+
|
10
|
+
[Theme preview](http://keshiba.me)
|
11
|
+
|
12
|
+

|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your Jekyll site's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem "better-minima"
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
This will fetch the gem and store it locally.
|
27
|
+
|
28
|
+
Then, to use this theme, change the `theme` variable in your `_config.yml`
|
29
|
+
```
|
30
|
+
theme: "better-minima"
|
31
|
+
```
|
32
|
+
|
33
|
+
### NOTE - Github Pages
|
34
|
+
If you want to host your Jekyll blog on GitHub, you need to follow the steps given below.
|
35
|
+
|
36
|
+
|
37
|
+
#### Step1 - Add gem
|
38
|
+
Add the gem `jekyll-remote-theme` to your `Gemfile`.
|
39
|
+
```
|
40
|
+
gem "jekyll-remote-theme"
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Step2 - Modify _config.yml
|
44
|
+
Add the plugin `jekyll-remote-theme` to your plugins list in `_config.yml`
|
45
|
+
```
|
46
|
+
plugins:
|
47
|
+
- jekyll-remote-theme
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Step3 - Set remote-theme
|
51
|
+
Add the theme name `keshiba/better-minima` to the `remote-theme` variable.
|
52
|
+
```
|
53
|
+
theme: minima
|
54
|
+
remote-theme: "keshiba/better-minima"
|
55
|
+
```
|
56
|
+
|
57
|
+
#### Step4 - Install gem
|
58
|
+
Run the `bundle` command to download and install the plugin
|
59
|
+
```
|
60
|
+
$ bundle
|
61
|
+
```
|
62
|
+
|
63
|
+
## Usage
|
64
|
+
|
65
|
+
### Hero Name
|
66
|
+
To get your name on the homepage as shown in this preview, add the following block to `_config.yml`
|
67
|
+
```
|
68
|
+
author:
|
69
|
+
name: imarandomguy
|
70
|
+
```
|
71
|
+
|
72
|
+
### Social Links
|
73
|
+
To get the social links on your home page as shown in this preview, add the `social_links` block to `better-minima` config in `_config.yml`
|
74
|
+
```
|
75
|
+
better-minima:
|
76
|
+
social_links:
|
77
|
+
twitter: imarandomguy
|
78
|
+
github: randomguy
|
79
|
+
telegram: randomguy
|
80
|
+
```
|
81
|
+
|
82
|
+
For a list of all social links supported by this theme, take a look at this [_config.yml](https://github.com/keshiba/better-minima/blob/master/_config.yml) file.
|
83
|
+
|
84
|
+
### Featured Posts
|
85
|
+
A list of *Featured Posts* are displayed on the homepage.
|
86
|
+
To add a post to this list, set the `featured` variable to `true`.
|
87
|
+
|
88
|
+
```
|
89
|
+
---
|
90
|
+
title: "This is a featured post"
|
91
|
+
featured: true
|
92
|
+
---
|
93
|
+
Post content goes here
|
94
|
+
```
|
95
|
+
|
96
|
+
### Recent Posts
|
97
|
+
The "Recent Posts" section shows 10 recent posts (by default) in it.
|
98
|
+
To change the recent posts count, add the following property to `_config.yml`.
|
99
|
+
|
100
|
+
```
|
101
|
+
recent_posts_count: 15
|
102
|
+
```
|
103
|
+
|
104
|
+
### Pagination
|
105
|
+
|
106
|
+
Unlike minima, better-minima shows just the *Featured Posts* and *Recent Posts* on the homepage.
|
107
|
+
The "All Posts" section must be on a separate page for pagination to work correctly.
|
108
|
+
|
109
|
+
To enable pagination, follow the steps given below.
|
110
|
+
|
111
|
+
|
112
|
+
#### Step 1
|
113
|
+
|
114
|
+
To `_config.yml`, add the following properties
|
115
|
+
```
|
116
|
+
paginate: 5
|
117
|
+
paginate_root_path: "/blog/"
|
118
|
+
paginate_path: "/blog/page:num/
|
119
|
+
```
|
120
|
+
`paginate:5` - This enables pagination and instructs the theme to show *5* posts in a page.
|
121
|
+
|
122
|
+
`paginate_root_path: "/blog/"` - This is your preferred URL path to navigate to the "All Posts" section.
|
123
|
+
|
124
|
+
`paginate_path: "/blog/page:num/` - This is the path used by Minima to navigate to other pages while paginating. `:num` is the placeholder for page number.
|
125
|
+
|
126
|
+
#### Step 2
|
127
|
+
To `_config.yml`, add the plugin `jekyll-plugins` to the `plugins` block
|
128
|
+
|
129
|
+
```
|
130
|
+
plugins:
|
131
|
+
- jekyll-paginate
|
132
|
+
```
|
133
|
+
|
134
|
+
#### Step 3
|
135
|
+
Add gem dependency to `Gemfile`
|
136
|
+
|
137
|
+
```
|
138
|
+
gem 'jekyll-paginate', '>= 1.1.0
|
139
|
+
```
|
140
|
+
|
141
|
+
#### Step 4
|
142
|
+
|
143
|
+
Create a new folder in your project's base directory with the name which you provided for `paginate_root_path` in `_config.yml`
|
144
|
+
|
145
|
+
For example, if your jekyll site is located at `D:\Sites\MySite`, then you should create the folder at `D:\Sites\MySite\blog\`
|
146
|
+
|
147
|
+
|
148
|
+
#### Step 5
|
149
|
+
|
150
|
+
Download [index.html](https://github.com/keshiba/better-minima/blob/master/blog/index.html) into the folder which you created in Step-2.
|
151
|
+
|
152
|
+
This file will serve as the template for pagination and must be included exactly in the `paginate_root_path`.
|
153
|
+
|
154
|
+
|
155
|
+
## For More Information
|
156
|
+
|
157
|
+
Visit https://github.com/jekyll/minima
|
158
|
+
|
159
|
+
|
160
|
+
## Contributing
|
161
|
+
|
162
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/keshiba/better-minima. 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.
|
163
|
+
|
164
|
+
|
165
|
+
## License
|
166
|
+
|
167
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/_includes/custom-head.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
{% comment %}
|
2
|
-
Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons:
|
3
|
-
|
4
|
-
1. Head over to https://realfavicongenerator.net/ to add your own favicons.
|
5
|
-
2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
|
6
|
-
{% endcomment %}
|
1
|
+
{% comment %}
|
2
|
+
Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons:
|
3
|
+
|
4
|
+
1. Head over to https://realfavicongenerator.net/ to add your own favicons.
|
5
|
+
2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
|
6
|
+
{% endcomment %}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
{%- if page.comments != false and jekyll.environment == "production" -%}
|
2
|
-
|
3
|
-
<div id="disqus_thread"></div>
|
4
|
-
<script>
|
5
|
-
var disqus_config = function () {
|
6
|
-
this.page.url = '{{ page.url | absolute_url }}';
|
7
|
-
this.page.identifier = '{{ page.url | absolute_url }}';
|
8
|
-
};
|
9
|
-
|
10
|
-
(function() {
|
11
|
-
var d = document, s = d.createElement('script');
|
12
|
-
|
13
|
-
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
14
|
-
|
15
|
-
s.setAttribute('data-timestamp', +new Date());
|
16
|
-
(d.head || d.body).appendChild(s);
|
17
|
-
})();
|
18
|
-
</script>
|
19
|
-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
20
|
-
{%- endif -%}
|
1
|
+
{%- if page.comments != false and jekyll.environment == "production" -%}
|
2
|
+
|
3
|
+
<div id="disqus_thread"></div>
|
4
|
+
<script>
|
5
|
+
var disqus_config = function () {
|
6
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
7
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
8
|
+
};
|
9
|
+
|
10
|
+
(function() {
|
11
|
+
var d = document, s = d.createElement('script');
|
12
|
+
|
13
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
14
|
+
|
15
|
+
s.setAttribute('data-timestamp', +new Date());
|
16
|
+
(d.head || d.body).appendChild(s);
|
17
|
+
})();
|
18
|
+
</script>
|
19
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
20
|
+
{%- endif -%}
|
data/_includes/footer.html
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
<footer class="site-footer h-card">
|
2
|
-
<data class="u-url" href="{{ "/" | relative_url }}"></data>
|
3
|
-
|
4
|
-
<div class="wrapper">
|
5
|
-
|
6
|
-
{%- if site.author %}
|
7
|
-
<div class="footer-content">
|
8
|
-
{% if site.author.name -%}
|
9
|
-
©
|
10
|
-
{% endif -%}
|
11
|
-
{% if site.author.email -%}
|
12
|
-
<a class="u-email" href="mailto:{{ site.author.email }}">
|
13
|
-
<svg class="svg-icon" viewbox="0 0 24 24">
|
14
|
-
<use xlink:href="{{ 'assets/better-minima-social-icons.svg#mail' | relative_url }}"></use>
|
15
|
-
</svg>
|
16
|
-
</a>
|
17
|
-
{%- endif %}
|
18
|
-
<a href="{{ 'feed.xml' | relative_url }}">
|
19
|
-
<svg class="svg-icon" viewbox="0 0 24 24">
|
20
|
-
<use xlink:href="{{ 'assets/better-minima-social-icons.svg#rss' | relative_url }}"></use>
|
21
|
-
</svg>
|
22
|
-
</a>
|
23
|
-
</div>
|
24
|
-
{%- endif %}
|
25
|
-
|
26
|
-
</div>
|
27
|
-
|
28
|
-
</footer>
|
1
|
+
<footer class="site-footer h-card">
|
2
|
+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
|
3
|
+
|
4
|
+
<div class="wrapper">
|
5
|
+
|
6
|
+
{%- if site.author %}
|
7
|
+
<div class="footer-content">
|
8
|
+
{% if site.author.name -%}
|
9
|
+
© {{ site.time | date: "%Y" }} {{ site.author.name | escape }}
|
10
|
+
{% endif -%}
|
11
|
+
{% if site.author.email -%}
|
12
|
+
<a class="u-email" href="mailto:{{ site.author.email }}">
|
13
|
+
<svg class="svg-icon" viewbox="0 0 24 24">
|
14
|
+
<use xlink:href="{{ 'assets/better-minima-social-icons.svg#mail' | relative_url }}"></use>
|
15
|
+
</svg>
|
16
|
+
</a>
|
17
|
+
{%- endif %}
|
18
|
+
<a href="{{ 'feed.xml' | relative_url }}">
|
19
|
+
<svg class="svg-icon" viewbox="0 0 24 24">
|
20
|
+
<use xlink:href="{{ 'assets/better-minima-social-icons.svg#rss' | relative_url }}"></use>
|
21
|
+
</svg>
|
22
|
+
</a>
|
23
|
+
</div>
|
24
|
+
{%- endif %}
|
25
|
+
|
26
|
+
</div>
|
27
|
+
|
28
|
+
</footer>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
2
|
-
<script>
|
3
|
-
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
4
|
-
window.dataLayer = window.dataLayer || [];
|
5
|
-
function gtag(){dataLayer.push(arguments);}
|
6
|
-
gtag('js', new Date());
|
7
|
-
|
8
|
-
gtag('config', '{{ site.google_analytics }}');
|
9
|
-
</script>
|
1
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
2
|
+
<script>
|
3
|
+
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '{{ site.google_analytics }}');
|
9
|
+
</script>
|
data/_includes/head.html
CHANGED
@@ -1,14 +1,14 @@
|
|
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">
|
5
|
-
{%- seo -%}
|
6
|
-
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
7
|
-
{%- feed_meta -%}
|
8
|
-
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
9
|
-
{%- include google-analytics.html -%}
|
10
|
-
{%- endif -%}
|
11
|
-
|
12
|
-
{%- include custom-head.html -%}
|
13
|
-
|
14
|
-
</head>
|
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">
|
5
|
+
{%- seo -%}
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
7
|
+
{%- feed_meta -%}
|
8
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
9
|
+
{%- include google-analytics.html -%}
|
10
|
+
{%- endif -%}
|
11
|
+
|
12
|
+
{%- include custom-head.html -%}
|
13
|
+
|
14
|
+
</head>
|
data/_includes/header.html
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
<header class="site-header">
|
2
|
-
|
3
|
-
<div class="wrapper">
|
4
|
-
{%- assign default_paths = site.pages | map: "path" -%}
|
5
|
-
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
6
|
-
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
7
|
-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
8
|
-
|
9
|
-
{%- if titles_size > 0 -%}
|
10
|
-
<nav class="site-nav">
|
11
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
12
|
-
<label for="nav-trigger">
|
13
|
-
<span class="menu-icon">
|
14
|
-
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
15
|
-
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
|
16
|
-
</svg>
|
17
|
-
</span>
|
18
|
-
</label>
|
19
|
-
|
20
|
-
<div class="trigger">
|
21
|
-
{%- for path in page_paths -%}
|
22
|
-
{%- assign my_page = site.pages | where: "path", path | first -%}
|
23
|
-
{%- if my_page.title -%}
|
24
|
-
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
25
|
-
{%- endif -%}
|
26
|
-
{%- endfor -%}
|
27
|
-
</div>
|
28
|
-
</nav>
|
29
|
-
{%- endif -%}
|
30
|
-
</div>
|
31
|
-
</header>
|
1
|
+
<header class="site-header">
|
2
|
+
|
3
|
+
<div class="wrapper">
|
4
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
5
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
6
|
+
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
7
|
+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
8
|
+
|
9
|
+
{%- if titles_size > 0 -%}
|
10
|
+
<nav class="site-nav">
|
11
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
12
|
+
<label for="nav-trigger">
|
13
|
+
<span class="menu-icon">
|
14
|
+
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
15
|
+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
|
16
|
+
</svg>
|
17
|
+
</span>
|
18
|
+
</label>
|
19
|
+
|
20
|
+
<div class="trigger">
|
21
|
+
{%- for path in page_paths -%}
|
22
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
23
|
+
{%- if my_page.title -%}
|
24
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
25
|
+
{%- endif -%}
|
26
|
+
{%- endfor -%}
|
27
|
+
</div>
|
28
|
+
</nav>
|
29
|
+
{%- endif -%}
|
30
|
+
</div>
|
31
|
+
</header>
|
data/_includes/landing-hero.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
|
2
|
-
<div class="hero-wrapper">
|
3
|
-
{%- if site.author %}
|
4
|
-
{% if site.author.name -%}
|
5
|
-
<h1>{{ site.author.name | escape }}</h1>
|
6
|
-
{% endif -%}
|
7
|
-
|
8
|
-
<div class="social-links">
|
9
|
-
{%- include social.html -%}
|
10
|
-
</div>
|
11
|
-
{%- endif %}
|
12
|
-
|
1
|
+
|
2
|
+
<div class="hero-wrapper">
|
3
|
+
{%- if site.author %}
|
4
|
+
{% if site.author.name -%}
|
5
|
+
<h1>{{ site.author.name | escape }}</h1>
|
6
|
+
{% endif -%}
|
7
|
+
|
8
|
+
<div class="social-links">
|
9
|
+
{%- include social.html -%}
|
10
|
+
</div>
|
11
|
+
{%- endif %}
|
12
|
+
|
13
13
|
</div>
|
data/_includes/landing.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
<!-- Add Landing Page Content here - Author's name and social links -->
|
3
|
-
<div class="landing-wrapper">
|
4
|
-
{%- include landing-hero.html -%}
|
1
|
+
|
2
|
+
<!-- Add Landing Page Content here - Author's name and social links -->
|
3
|
+
<div class="landing-wrapper">
|
4
|
+
{%- include landing-hero.html -%}
|
5
5
|
</div>
|
data/_includes/social.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
{%- assign social = site.better-minima.social_links -%}
|
2
|
-
|
3
|
-
<ul class="social-media-list">
|
4
|
-
{%- for glb in social.gitlab -%}{%- if glb.username and glb.instance -%}<li><a rel="me" href="https://{{ glb.instance | cgi_escape | escape}}/{{glb.username}}" title="{{ glb.username | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#gitlab' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
|
5
|
-
{%- if social.dribbble -%}<li><a rel="me" href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#dribbble' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
6
|
-
{%- if social.facebook -%}<li><a rel="me" href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#facebook' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
7
|
-
{%- if social.flickr -%}<li><a rel="me" href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#flickr' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
8
|
-
{%- if social.github -%}<li><a rel="me" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#github' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
9
|
-
{%- if social.stackoverflow -%}<li><a rel="me" href="https://stackoverflow.com/users/{{ social.stackoverflow | cgi_escape | escape }}" title="{{ social.stackoverflow | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#stackoverflow' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
10
|
-
{%- if social.instagram -%}<li><a rel="me" href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#instagram' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
11
|
-
{%- if social.linkedin -%}<li><a rel="me" href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#linkedin' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
12
|
-
{%- if social.pinterest -%}<li><a rel="me" href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#pinterest' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
13
|
-
{%- for mst in social.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" title="{{ mst.username | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
|
14
|
-
{%- if social.twitter -%}<li><a rel="me" href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#twitter' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
15
|
-
{%- if social.youtube -%}<li><a rel="me" href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" title="{{ social.youtube | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
16
|
-
{%- if social.youtube_channel -%}<li><a rel="me" href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
17
|
-
{%- if social.telegram -%}<li><a rel="me" href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
18
|
-
{%- if social.keybase -%}<li><a rel="me" href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#keybase' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
19
|
-
{%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
20
|
-
{%- if social.devto -%}<li><a href="https://dev.to/{{ social.devto | cgi_escape | escape }}" title="{{ social.devto | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#devto' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
21
|
-
</ul>
|
1
|
+
{%- assign social = site.better-minima.social_links -%}
|
2
|
+
|
3
|
+
<ul class="social-media-list">
|
4
|
+
{%- for glb in social.gitlab -%}{%- if glb.username and glb.instance -%}<li><a rel="me" href="https://{{ glb.instance | cgi_escape | escape}}/{{glb.username}}" title="{{ glb.username | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#gitlab' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
|
5
|
+
{%- if social.dribbble -%}<li><a rel="me" href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#dribbble' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
6
|
+
{%- if social.facebook -%}<li><a rel="me" href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#facebook' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
7
|
+
{%- if social.flickr -%}<li><a rel="me" href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#flickr' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
8
|
+
{%- if social.github -%}<li><a rel="me" href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#github' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
9
|
+
{%- if social.stackoverflow -%}<li><a rel="me" href="https://stackoverflow.com/users/{{ social.stackoverflow | cgi_escape | escape }}" title="{{ social.stackoverflow | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#stackoverflow' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
10
|
+
{%- if social.instagram -%}<li><a rel="me" href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#instagram' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
11
|
+
{%- if social.linkedin -%}<li><a rel="me" href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#linkedin' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
12
|
+
{%- if social.pinterest -%}<li><a rel="me" href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#pinterest' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
13
|
+
{%- for mst in social.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" title="{{ mst.username | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
|
14
|
+
{%- if social.twitter -%}<li><a rel="me" href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#twitter' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
15
|
+
{%- if social.youtube -%}<li><a rel="me" href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" title="{{ social.youtube | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
16
|
+
{%- if social.youtube_channel -%}<li><a rel="me" href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
17
|
+
{%- if social.telegram -%}<li><a rel="me" href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
18
|
+
{%- if social.keybase -%}<li><a rel="me" href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#keybase' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
19
|
+
{%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
20
|
+
{%- if social.devto -%}<li><a href="https://dev.to/{{ social.devto | cgi_escape | escape }}" title="{{ social.devto | escape }}"><svg class="svg-icon grey" viewbox="0 0 24 24"><use xlink:href="{{ '/assets/better-minima-social-icons.svg#devto' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
21
|
+
</ul>
|
data/_layouts/default.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
---
|
2
|
-
layout: html_scaffold
|
3
|
-
---
|
4
|
-
|
5
|
-
{%- include header.html -%}
|
6
|
-
|
7
|
-
<main class="page-content" aria-label="Content">
|
8
|
-
<div class="wrapper">
|
9
|
-
{{ content }}
|
10
|
-
</div>
|
1
|
+
---
|
2
|
+
layout: html_scaffold
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- include header.html -%}
|
6
|
+
|
7
|
+
<main class="page-content" aria-label="Content">
|
8
|
+
<div class="wrapper">
|
9
|
+
{{ content }}
|
10
|
+
</div>
|
11
11
|
</main>
|