jekyll-hanfverband-theme 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +101 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +32 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head.html +11 -0
- data/_includes/header.html +31 -0
- data/_includes/social.html +19 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +38 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +27 -0
- data/_sass/minima-classic.scss +90 -0
- data/_sass/minima-hanfverband.scss +25 -0
- data/_sass/minima-solarized-dark.scss +4 -0
- data/_sass/minima-solarized.scss +139 -0
- data/_sass/minima/_base.scss +264 -0
- data/_sass/minima/_layout.scss +300 -0
- data/_sass/minima/custom-styles.scss +60 -0
- data/_sass/minima/custom-variables.scss +4 -0
- data/_sass/minima/initialize.scss +48 -0
- data/assets/css/style.scss +5 -0
- data/assets/minima-social-icons.svg +41 -0
- metadata +124 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d624f4ed59f3127697b8264e00fbea919d7c81e4fe6de31d5f9e50aa1e32c84e
|
4
|
+
data.tar.gz: e5603684e53433634deb695bd7e39ffac1d6b364be80fc3a254c9efac3651fa1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 807afb3fc159e251339ca2c92173d7f5a3552231097cbdb3f7949ff633555d0ca673fecadb48db863428b0a6dc7c37e773833484cb62077126a9d19308a708ba
|
7
|
+
data.tar.gz: 0457eac2b6b876298f9c1c63ed0066875216687173b8654b926cd402cc9e39f7990823cbda126712b3fbb841ecd8ba5a32666c3424df32535874cef60bc5b16f
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Benjamin Lucas Friedland
|
4
|
+
Copyright (c) 2016 Parker Moore and the minima contributors
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# jekyll-hanfverband-theme
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
4
|
+
|
5
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
+
|
7
|
+
TODO: Delete this and the text above, and describe your gem
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "jekyll-hanfverband-theme"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: jekyll-hanfverband-theme
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install jekyll-hanfverband-theme
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
This project is a clone of [jekyll](https://github.com/jekyll) / [minima](https://github.com/jekyll/minima).
|
35
|
+
Please refer the docs at their repositories and the Jekyll documentation at [jekyllrb.com](https://jekyllrb.com/).
|
36
|
+
|
37
|
+
### Layouts
|
38
|
+
|
39
|
+
Refers to files within the `_layouts` directory, that define the markup for your theme.
|
40
|
+
|
41
|
+
- `default.html` - The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
|
42
|
+
- `home.html` - The layout for your landing-page / home-page / index-page. [More info.](https://github.com/jekyll/minima/blob/master/README.md#home-layout)
|
43
|
+
- `page.html` - The layout for your documents that contain FrontMatter, but are not posts.
|
44
|
+
- `post.html` - The layout for your posts.
|
45
|
+
|
46
|
+
### Includes
|
47
|
+
|
48
|
+
Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
|
49
|
+
|
50
|
+
- `disqus_comments.html` - Code to markup disqus comment box.
|
51
|
+
- `footer.html` - Defines the site's footer section.
|
52
|
+
- `google-analytics.html` - Inserts Google Analytics module (active only in production environment).
|
53
|
+
- `head.html` - Code-block that defines the `<head></head>` in *default* layout.
|
54
|
+
- `header.html` - Defines the site's main header section. By default, pages with a defined `title` attribute will have links displayed here.
|
55
|
+
- `social.html` - Renders social-media icons based on the `minima:social_links` data in the config file.
|
56
|
+
|
57
|
+
### Sass
|
58
|
+
|
59
|
+
Refers to `.scss` files within the `_sass` directory that define the theme's styles.
|
60
|
+
|
61
|
+
- `mimima-hanfverband.scss` - The skin used by this project. It has the same functionality as `minima-classic.scss`. Set to default skin.
|
62
|
+
- `minima-classic.scss` - The core file imported by preprocessed `css/style.scss`, it defines the variable defaults for
|
63
|
+
the "classic" skin of the theme.
|
64
|
+
- `minima/initialize.scss` - A component that defines the theme's *skin-agnostic* variable defaults and sass partials.
|
65
|
+
- `minima/custom-variables.scss` - A hook that allows overriding variable defaults and mixins. (*Note: Cannot override styles*)
|
66
|
+
- `minima/custom-styles.scss` - A hook that allows overriding styles. (*Note: Cannot override variables*)
|
67
|
+
- `minima/_base.scss` - Sass partial for resets and defines base styles for various HTML elements.
|
68
|
+
- `minima/_layout.scss` - Sass partial that defines the visual style for various layouts.
|
69
|
+
|
70
|
+
Refer the [skins](https://github.com/jekyll/minima/blob/master/README.md#skins) section for more details.
|
71
|
+
|
72
|
+
### Assets
|
73
|
+
|
74
|
+
Refers to various asset files within the `assets` directory.
|
75
|
+
Contains the `css/style.scss` that imports sass files from within the `_sass` directory. This `css/style.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.
|
76
|
+
|
77
|
+
This directory can include sub-directories to manage assets of similar type (`img`, `fonts`, `svg`), and will be copied over as is, to the final transformed site directory.
|
78
|
+
|
79
|
+
### Plugins
|
80
|
+
|
81
|
+
Refers to plugins listet in `Gemfile` that define which plugin gems required by this theme:
|
82
|
+
- [`jekyll-feed`](https://github.com/jekyll/jekyll-feed) - Generate an Atom (RSS-like) feed of your Jekyll posts.
|
83
|
+
- [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) - Add metadata tags for search engines and social networks to better index and display your site's content.
|
84
|
+
|
85
|
+
## Contributing
|
86
|
+
|
87
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hanfverband-leipzig/jekyll-hanfverband-theme. 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.
|
88
|
+
|
89
|
+
## Development
|
90
|
+
|
91
|
+
To set up your environment to develop this theme, run `bundle install`.
|
92
|
+
|
93
|
+
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.
|
94
|
+
|
95
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
96
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-hanfverband-theme.gemspec` accordingly.
|
97
|
+
|
98
|
+
## License
|
99
|
+
|
100
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
101
|
+
|
@@ -0,0 +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 -%}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<footer class="site-footer h-card">
|
2
|
+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
|
3
|
+
|
4
|
+
<div class="wrapper">
|
5
|
+
|
6
|
+
<div class="footer-col-wrapper">
|
7
|
+
<div class="footer-col one-half">
|
8
|
+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
|
9
|
+
<ul class="contact-list">
|
10
|
+
<li class="p-name">
|
11
|
+
{%- if site.author -%}
|
12
|
+
{{ site.author | escape }}
|
13
|
+
{%- endif -%}
|
14
|
+
</li>
|
15
|
+
{%- if site.email -%}
|
16
|
+
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
|
17
|
+
{%- endif -%}
|
18
|
+
</ul>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="footer-col one-half">
|
22
|
+
<p>{{- site.description | escape -}}</p>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="social-links">
|
26
|
+
{%- include social.html -%}
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</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(){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,11 @@
|
|
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
|
+
</head>
|
@@ -0,0 +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>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{%- assign social = site.minima.social_links -%}
|
2
|
+
|
3
|
+
<ul class="social-media-list">
|
4
|
+
{%- if social.dribbble -%}<li><a href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" 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 -%}
|
5
|
+
{%- if social.facebook -%}<li><a href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" 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 -%}
|
6
|
+
{%- if social.flickr -%}<li><a href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" 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 -%}
|
7
|
+
{%- if social.github -%}<li><a href="https://github.com/{{ social.github | cgi_escape | escape }}" 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 -%}
|
8
|
+
{%- if social.instagram -%}<li><a href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" 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 -%}
|
9
|
+
{%- if social.linkedin -%}<li><a href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" 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 -%}
|
10
|
+
{%- if social.pinterest -%}<li><a href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" 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 -%}
|
11
|
+
{%- 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"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
|
12
|
+
{%- if social.twitter -%}<li><a href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" 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 -%}
|
13
|
+
{%- if social.youtube -%}<li><a href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" 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 -%}
|
14
|
+
{%- if social.youtube_channel -%}<li><a 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"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
15
|
+
{%- if social.telegram -%}<li><a href="https://t.me/{{ social.telegram | cgi_escape | escape }}" 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 -%}
|
16
|
+
{%- if social.keybase -%}<li><a href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" 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 -%}
|
17
|
+
{%- 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"><use xlink:href="{{ '/assets/minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
18
|
+
{%- if social.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
19
|
+
</ul>
|
@@ -0,0 +1,20 @@
|
|
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
|
+
<main class="page-content" aria-label="Content">
|
11
|
+
<div class="wrapper">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</main>
|
15
|
+
|
16
|
+
{%- include footer.html -%}
|
17
|
+
|
18
|
+
</body>
|
19
|
+
|
20
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{%- if page.title -%}
|
7
|
+
<h1 class="page-heading">{{ page.title }}</h1>
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
{{ content }}
|
11
|
+
|
12
|
+
{%- if site.posts.size > 0 -%}
|
13
|
+
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
|
14
|
+
<ul class="post-list">
|
15
|
+
{%- for post in site.posts -%}
|
16
|
+
<li>
|
17
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
18
|
+
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
19
|
+
<h3>
|
20
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
21
|
+
{{ post.title | escape }}
|
22
|
+
</a>
|
23
|
+
</h3>
|
24
|
+
{%- if site.show_excerpts -%}
|
25
|
+
{{ post.excerpt }}
|
26
|
+
{%- endif -%}
|
27
|
+
</li>
|
28
|
+
{%- endfor -%}
|
29
|
+
</ul>
|
30
|
+
|
31
|
+
<p class="feed-subscribe">
|
32
|
+
<a href="{{ 'feed.xml' | relative_url }}">
|
33
|
+
<svg class="svg-icon orange"><use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><span>Subscribe</span>
|
34
|
+
</a>
|
35
|
+
</p>
|
36
|
+
{%- endif -%}
|
37
|
+
|
38
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
5
|
+
|
6
|
+
<header class="post-header">
|
7
|
+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
|
8
|
+
<p class="post-meta">
|
9
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
10
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
11
|
+
{{ page.date | date: date_format }}
|
12
|
+
</time>
|
13
|
+
{%- if page.author -%}
|
14
|
+
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
|
15
|
+
{%- endif -%}</p>
|
16
|
+
</header>
|
17
|
+
|
18
|
+
<div class="post-content e-content" itemprop="articleBody">
|
19
|
+
{{ content }}
|
20
|
+
</div>
|
21
|
+
|
22
|
+
{%- if site.disqus.shortname -%}
|
23
|
+
{%- include disqus_comments.html -%}
|
24
|
+
{%- endif -%}
|
25
|
+
|
26
|
+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
27
|
+
</article>
|
@@ -0,0 +1,90 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
$brand-color: #828282 !default;
|
4
|
+
$brand-color-light: lighten($brand-color, 40%) !default;
|
5
|
+
$brand-color-dark: darken($brand-color, 25%) !default;
|
6
|
+
|
7
|
+
$text-color: #111 !default;
|
8
|
+
$background-color: #fdfdfd !default;
|
9
|
+
$code-background-color: #eef !default;
|
10
|
+
|
11
|
+
$link-base-color: #2a7ae2 !default;
|
12
|
+
$link-visited-color: darken($link-base-color, 15%) !default;
|
13
|
+
|
14
|
+
$table-text-color: lighten($text-color, 18%) !default;
|
15
|
+
$table-zebra-color: lighten($brand-color, 46%) !default;
|
16
|
+
$table-header-bg-color: lighten($brand-color, 43%) !default;
|
17
|
+
$table-header-border: lighten($brand-color, 36%) !default;
|
18
|
+
$table-border-color: $brand-color-light !default;
|
19
|
+
|
20
|
+
|
21
|
+
// Syntax highlighting styles should be adjusted appropriately for every "skin"
|
22
|
+
// ----------------------------------------------------------------------------
|
23
|
+
|
24
|
+
.highlight {
|
25
|
+
.c { color: #998; font-style: italic } // Comment
|
26
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
27
|
+
.k { font-weight: bold } // Keyword
|
28
|
+
.o { font-weight: bold } // Operator
|
29
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
30
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
31
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
32
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
33
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
34
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
35
|
+
.ge { font-style: italic } // Generic.Emph
|
36
|
+
.gr { color: #a00 } // Generic.Error
|
37
|
+
.gh { color: #999 } // Generic.Heading
|
38
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
39
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
40
|
+
.go { color: #888 } // Generic.Output
|
41
|
+
.gp { color: #555 } // Generic.Prompt
|
42
|
+
.gs { font-weight: bold } // Generic.Strong
|
43
|
+
.gu { color: #aaa } // Generic.Subheading
|
44
|
+
.gt { color: #a00 } // Generic.Traceback
|
45
|
+
.kc { font-weight: bold } // Keyword.Constant
|
46
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
47
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
48
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
49
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
50
|
+
.m { color: #099 } // Literal.Number
|
51
|
+
.s { color: #d14 } // Literal.String
|
52
|
+
.na { color: #008080 } // Name.Attribute
|
53
|
+
.nb { color: #0086B3 } // Name.Builtin
|
54
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
55
|
+
.no { color: #008080 } // Name.Constant
|
56
|
+
.ni { color: #800080 } // Name.Entity
|
57
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
58
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
59
|
+
.nn { color: #555 } // Name.Namespace
|
60
|
+
.nt { color: #000080 } // Name.Tag
|
61
|
+
.nv { color: #008080 } // Name.Variable
|
62
|
+
.ow { font-weight: bold } // Operator.Word
|
63
|
+
.w { color: #bbb } // Text.Whitespace
|
64
|
+
.mf { color: #099 } // Literal.Number.Float
|
65
|
+
.mh { color: #099 } // Literal.Number.Hex
|
66
|
+
.mi { color: #099 } // Literal.Number.Integer
|
67
|
+
.mo { color: #099 } // Literal.Number.Oct
|
68
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
69
|
+
.sc { color: #d14 } // Literal.String.Char
|
70
|
+
.sd { color: #d14 } // Literal.String.Doc
|
71
|
+
.s2 { color: #d14 } // Literal.String.Double
|
72
|
+
.se { color: #d14 } // Literal.String.Escape
|
73
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
74
|
+
.si { color: #d14 } // Literal.String.Interpol
|
75
|
+
.sx { color: #d14 } // Literal.String.Other
|
76
|
+
.sr { color: #009926 } // Literal.String.Regex
|
77
|
+
.s1 { color: #d14 } // Literal.String.Single
|
78
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
79
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
80
|
+
.vc { color: #008080 } // Name.Variable.Class
|
81
|
+
.vg { color: #008080 } // Name.Variable.Global
|
82
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
83
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
84
|
+
}
|
85
|
+
|
86
|
+
// import skin-agnostic styles and override
|
87
|
+
@import
|
88
|
+
"minima/initialize",
|
89
|
+
"minima/custom-styles"
|
90
|
+
;
|