jekyll-theme-onion 0.1.3
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 +77 -0
- data/_config.yml +60 -0
- data/_includes/custom-head.html +6 -0
- data/_includes/footer.html +10 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head.html +14 -0
- data/_includes/header.html +24 -0
- data/_includes/social.html +21 -0
- data/_layouts/default.html +24 -0
- data/_layouts/home.html +53 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +19 -0
- data/_sass/_404.scss +321 -0
- data/_sass/_highlight.scss +207 -0
- data/_sass/_main.scss +193 -0
- data/assets/css/main.scss +12 -0
- data/assets/flags/gb.svg +52 -0
- data/assets/flags/mk.svg +30 -0
- data/assets/flags/se.svg +28 -0
- data/assets/minima-social-icons.svg +50 -0
- data/assets/onion-logo.png +0 -0
- data/assets/sample-photo.jpg +0 -0
- metadata +122 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 56792a57a4df90d8f43a42a1b5c19437e257672a1bfa981496dc136170a9ae3e
|
4
|
+
data.tar.gz: cebb2d163798e70a6658a5e97362f6ce90ce4944af99ede61f7a8ac8902969a9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e411031eaece7707acefd24a74169fb655ba6452f89bb51be506afc9c1fd9a1830bc5dfb46666d80623113ce17db51fa3f7cc4c2d74643f862c14ee6bb9834fb
|
7
|
+
data.tar.gz: f8f1c7f4e74b81757a69b3b5995233337b576fe80fbffa65532bfd227ebcfd829bf9caaa5e87bfb69fe6f3ae2680aff2732e25e054ce0927ffb7dbd9159cc426
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 sini6a
|
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,77 @@
|
|
1
|
+
# jekyll-theme-onion
|
2
|
+
|
3
|
+

|
4
|
+
|
5
|
+
Jekyll theme inspired by [**TOR**](https://en.wikipedia.org/wiki/Tor_(network)) network.
|
6
|
+
|
7
|
+
This theme has one set of colors and that is dark background with shades of purple:
|
8
|
+
- Background: #161412
|
9
|
+
- Text: #DDD9D6
|
10
|
+
- Link: #59316B
|
11
|
+
- Hover link: #7D4698
|
12
|
+
|
13
|
+
The owner of the logo is [TOR Project](https://www.torproject.org/about/trademark/) and their license for using applies.
|
14
|
+
|
15
|
+
The icons on the bottom of the site are taken from original theme [Minima](https://github.com/jekyll/minima) and ther [license](https://en.wikipedia.org/wiki/MIT_License) for using applies.
|
16
|
+
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
Add this line to your Jekyll site's `Gemfile`:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
gem "jekyll-theme-onion"
|
24
|
+
```
|
25
|
+
|
26
|
+
And add this line to your Jekyll site's `_config.yml`:
|
27
|
+
|
28
|
+
```yaml
|
29
|
+
theme: jekyll-theme-onion
|
30
|
+
```
|
31
|
+
|
32
|
+
And then execute:
|
33
|
+
|
34
|
+
$ bundle
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
$ gem install jekyll-theme-onion
|
39
|
+
|
40
|
+
## Usage
|
41
|
+
|
42
|
+
_includes:
|
43
|
+
- custom-head.html is a place where you should write additional header tags.
|
44
|
+
- footer.html is a place where footer copyright text and icons are located.
|
45
|
+
- google-analytics.html is a script used for Google Analytics and this should be left as it is unless something is changed in future.
|
46
|
+
- head.html is a default header tags used for including styles and meta tags.
|
47
|
+
- header.html is a header with onion logo, language selector and navigation.
|
48
|
+
- social.html is a part of footer which includes all icons used in the theme.
|
49
|
+
|
50
|
+
_layouts:
|
51
|
+
- default.html is a default layout for displaying websites.
|
52
|
+
- about.html is same as default layout but exists for compatibility reasons.
|
53
|
+
- home.html is a layout which displays posts.
|
54
|
+
- post.html is a post layout for displaying posts. It includes navigation of the bottom of the page such as *Go Home* button and *To Top*.
|
55
|
+
|
56
|
+
_sass
|
57
|
+
- _404.scss is a *404 Not Found* page styles which includes glitch effect.
|
58
|
+
- _highlight.scss is a rouge syntax highlighter style.
|
59
|
+
- _main.scss is a main theme style which includes all custom defined styles.
|
60
|
+
|
61
|
+
assets
|
62
|
+
- css
|
63
|
+
- main.scss is a main scss file which imports all other parts from _sass.
|
64
|
+
- flags
|
65
|
+
- gb.svg, mk.svg, se.svg are icons used for displaying language selector.
|
66
|
+
- minima-social-icons.svg are all social icon vectors.
|
67
|
+
- onion-logo.png is a Onion network logo.
|
68
|
+
- sample-photo.jpg is a free sample photo.
|
69
|
+
|
70
|
+
## Contributing
|
71
|
+
|
72
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sini6a/jekyll-theme-onion. 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.
|
73
|
+
|
74
|
+
## License
|
75
|
+
|
76
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
77
|
+
|
data/_config.yml
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
title: Your awesome title
|
2
|
+
email: your-email@domain.com
|
3
|
+
description: > # this means to ignore newlines
|
4
|
+
Write an awesome description for your new site here. You can edit this
|
5
|
+
line in _config.yml. It will appear in your document head meta (for
|
6
|
+
Google search results) and in your feed.xml site description.
|
7
|
+
|
8
|
+
# Date format
|
9
|
+
# refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this
|
10
|
+
#onion:
|
11
|
+
# date_format: "%Y-%m-%d"
|
12
|
+
|
13
|
+
# generate social links in footer
|
14
|
+
# social_links:
|
15
|
+
# twitter: jekyllrb
|
16
|
+
# github: jekyll
|
17
|
+
# devto: jekyll
|
18
|
+
# dribbble: jekyll
|
19
|
+
# facebook: jekyll
|
20
|
+
# flickr: jekyll
|
21
|
+
# instagram: jekyll
|
22
|
+
# linkedin: jekyll
|
23
|
+
# pinterest: jekyll
|
24
|
+
# youtube: jekyll
|
25
|
+
# youtube_channel: UC8CXR0-3I70i1tfPg1PAE1g
|
26
|
+
# youtube_channel_name: CloudCannon
|
27
|
+
# telegram: jekyll
|
28
|
+
# googleplus: +jekyll
|
29
|
+
# microdotblog: jekyll
|
30
|
+
# keybase: jekyll
|
31
|
+
|
32
|
+
# generate crypto wallets in footer
|
33
|
+
# crypto_wallets:
|
34
|
+
# bitcoin:
|
35
|
+
# etherium:
|
36
|
+
|
37
|
+
# If you want to link only specific pages in your header, uncomment
|
38
|
+
# this and add the path to the pages in order as they should show up
|
39
|
+
header_pages:
|
40
|
+
- index.md
|
41
|
+
|
42
|
+
# Build settings
|
43
|
+
theme: jekyll-theme-onion
|
44
|
+
|
45
|
+
plugins:
|
46
|
+
- jekyll-feed
|
47
|
+
- jekyll-seo-tag
|
48
|
+
|
49
|
+
|
50
|
+
kramdown:
|
51
|
+
input: Kramdown
|
52
|
+
syntax_highlighter: rouge
|
53
|
+
|
54
|
+
show_excerpts: true
|
55
|
+
|
56
|
+
sass:
|
57
|
+
sass_dir: _sass
|
58
|
+
style: compressed
|
59
|
+
|
60
|
+
permalink: pretty
|
@@ -0,0 +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 %}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<footer>
|
2
|
+
<div class="copyright">
|
3
|
+
{%- if site.onion.crypto_wallets.bitcoin -%}BTC: {{ site.onion.crypto_wallets.bitcoin }}<br>{%- endif -%}
|
4
|
+
{%- if site.onion.crypto_wallets.etherium -%}ETH: {{ site.onion.crypto_wallets.etherium }}<br>{%- endif -%}
|
5
|
+
{{ site.title }} | MIT License - {{ 'now' | date: "%Y" }}
|
6
|
+
</div>
|
7
|
+
<div class="social-links">
|
8
|
+
{%- include social.html -%}
|
9
|
+
</div>
|
10
|
+
</footer>
|
@@ -0,0 +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(){window.dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '{{ site.google_analytics }}');
|
9
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +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/main.css" | relative_url }}">
|
7
|
+
|
8
|
+
{%- feed_meta -%}
|
9
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
10
|
+
{%- include google-analytics.html -%}
|
11
|
+
{%- endif -%}
|
12
|
+
|
13
|
+
{%- include custom-head.html -%}
|
14
|
+
</head>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<header>
|
2
|
+
<!-- <h1 style="text-align:center; font-size: 2.5em;"><a href="./">(/)</a></h1> -->
|
3
|
+
<img class="logo" src="{{ "/assets/onion-logo.png" | relative_url }}" alt="Onion Site" />
|
4
|
+
<div style="margin: auto; display: block; text-align: center;" >
|
5
|
+
<div class="" style="flex: 1; margin-bottom: 1rem;">
|
6
|
+
<a href="/en"><img class="flag" src="{{ "/assets/flags/gb.svg" | relative_url }}" alt="[en]"/></a>
|
7
|
+
<a href="/se"><img class="flag" src="{{ "/assets/flags/se.svg" | relative_url }}" alt="[se]"/></a>
|
8
|
+
<a href="/mk"><img class="flag" src="{{ "/assets/flags/mk.svg" | relative_url }}" alt="[mk]"/></a>
|
9
|
+
</div>
|
10
|
+
<div class="">
|
11
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
12
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
13
|
+
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
14
|
+
|
15
|
+
{%- for path in page_paths -%}
|
16
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
17
|
+
{%- if my_page.title -%}
|
18
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">[{{ my_page.title | escape }}]</a>
|
19
|
+
{%- endif -%}
|
20
|
+
{%- endfor -%}
|
21
|
+
<!-- <a href="/">[home]</a> <a href="#about">[about]</a> <a href="#contact">[contact]</a> -->
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</header>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{%- assign social = site.onion.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}}" target="_blank" title="{{ glb.username | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.facebook | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.flickr | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.github | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.stackoverflow | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.instagram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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}}" target="_blank" title="{{ mst.username | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.twitter | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.youtube | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.telegram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.keybase | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/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 }}" target="_blank" title="{{ social.devto | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#devto' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
21
|
+
</ul>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{%- include header.html -%}
|
9
|
+
|
10
|
+
<hr>
|
11
|
+
|
12
|
+
<main class="page-content" aria-label="Content">
|
13
|
+
<div class="wrapper">
|
14
|
+
{{ content }}
|
15
|
+
</div>
|
16
|
+
</main>
|
17
|
+
|
18
|
+
<hr>
|
19
|
+
|
20
|
+
{%- include footer.html -%}
|
21
|
+
|
22
|
+
</body>
|
23
|
+
|
24
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
{% if site.paginate %}
|
8
|
+
{% assign posts = paginator.posts %}
|
9
|
+
{% else %}
|
10
|
+
{% assign posts = site.posts %}
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
|
14
|
+
{%- if posts.size > 0 -%}
|
15
|
+
{%- if page.list_title -%}
|
16
|
+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
|
17
|
+
{%- endif -%}
|
18
|
+
<ul class="post-list">
|
19
|
+
{%- assign date_format = site.onion.date_format | default: "%b %-d, %Y" -%}
|
20
|
+
{%- for post in posts -%}
|
21
|
+
<li>
|
22
|
+
<h3>
|
23
|
+
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
24
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
25
|
+
{{ post.title | escape }}
|
26
|
+
</a>
|
27
|
+
</h3>
|
28
|
+
{%- if site.show_excerpts -%}
|
29
|
+
{{ post.excerpt }}
|
30
|
+
{%- endif -%}
|
31
|
+
</li>
|
32
|
+
{%- endfor -%}
|
33
|
+
</ul>
|
34
|
+
|
35
|
+
{% if site.paginate %}
|
36
|
+
<div class="pager">
|
37
|
+
<ul class="pagination">
|
38
|
+
{%- if paginator.previous_page %}
|
39
|
+
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
|
40
|
+
{%- else %}
|
41
|
+
<li><div class="pager-edge">•</div></li>
|
42
|
+
{%- endif %}
|
43
|
+
<li><div class="current-page">{{ paginator.page }}</div></li>
|
44
|
+
{%- if paginator.next_page %}
|
45
|
+
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
|
46
|
+
{%- else %}
|
47
|
+
<li><div class="pager-edge">•</div></li>
|
48
|
+
{%- endif %}
|
49
|
+
</ul>
|
50
|
+
</div>
|
51
|
+
{%- endif %}
|
52
|
+
|
53
|
+
{%- endif -%}
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- if page.title -%}
|
6
|
+
<h1 class="page-heading">{{ page.title }}</h1>
|
7
|
+
{%- endif -%}
|
8
|
+
|
9
|
+
{{ content }}
|
10
|
+
|
11
|
+
<div style="display: flex; flex-wrap:wrap;">
|
12
|
+
<span style="flex-basis: 50%;">
|
13
|
+
<a href="/">← Go Home</a>
|
14
|
+
</span>
|
15
|
+
<span style="flex-basis: 50%;">
|
16
|
+
<a href="#" style="float: right;">↑ Back to top</a>
|
17
|
+
</span>
|
18
|
+
</div>
|
19
|
+
|