minimal-mistakes-jekyll 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +571 -0
- data/LICENSE +21 -0
- data/README.md +122 -0
- data/_includes/analytics-providers/custom.html +3 -0
- data/_includes/analytics-providers/google-universal.html +9 -0
- data/_includes/analytics-providers/google.html +11 -0
- data/_includes/analytics.html +12 -0
- data/_includes/archive-single.html +40 -0
- data/_includes/author-profile.html +102 -0
- data/_includes/base_path +5 -0
- data/_includes/breadcrumbs.html +41 -0
- data/_includes/browser-upgrade.html +3 -0
- data/_includes/category-list.html +28 -0
- data/_includes/comment.html +22 -0
- data/_includes/comments-providers/custom.html +3 -0
- data/_includes/comments-providers/discourse.html +14 -0
- data/_includes/comments-providers/disqus.html +22 -0
- data/_includes/comments-providers/facebook.html +8 -0
- data/_includes/comments-providers/google-plus.html +2 -0
- data/_includes/comments-providers/scripts.html +18 -0
- data/_includes/comments-providers/staticman.html +42 -0
- data/_includes/comments.html +82 -0
- data/_includes/feature_row +52 -0
- data/_includes/footer.html +24 -0
- data/_includes/footer/custom.html +3 -0
- data/_includes/gallery +49 -0
- data/_includes/group-by-array +47 -0
- data/_includes/head.html +21 -0
- data/_includes/head/custom.html +5 -0
- data/_includes/masthead.html +23 -0
- data/_includes/nav_list +46 -0
- data/_includes/page__hero.html +55 -0
- data/_includes/page__taxonomy.html +9 -0
- data/_includes/paginator.html +70 -0
- data/_includes/post_pagination.html +16 -0
- data/_includes/read-time.html +17 -0
- data/_includes/scripts.html +4 -0
- data/_includes/seo.html +145 -0
- data/_includes/sidebar.html +25 -0
- data/_includes/social-share.html +15 -0
- data/_includes/tag-list.html +28 -0
- data/_includes/toc +7 -0
- data/_layouts/archive-taxonomy.html +16 -0
- data/_layouts/archive.html +24 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +30 -0
- data/_layouts/single.html +76 -0
- data/_layouts/splash.html +22 -0
- data/_sass/_animations.scss +21 -0
- data/_sass/_archive.scss +238 -0
- data/_sass/_base.scss +315 -0
- data/_sass/_buttons.scss +153 -0
- data/_sass/_footer.scss +80 -0
- data/_sass/_forms.scss +391 -0
- data/_sass/_masthead.scss +53 -0
- data/_sass/_mixins.scss +53 -0
- data/_sass/_navigation.scss +432 -0
- data/_sass/_notices.scss +99 -0
- data/_sass/_page.scss +401 -0
- data/_sass/_print.scss +18 -0
- data/_sass/_reset.scss +187 -0
- data/_sass/_sidebar.scss +232 -0
- data/_sass/_syntax.scss +146 -0
- data/_sass/_tables.scss +38 -0
- data/_sass/_utilities.scss +470 -0
- data/_sass/_variables.scss +147 -0
- data/_sass/vendor/breakpoint/_breakpoint.scss +114 -0
- data/_sass/vendor/breakpoint/_context.scss +95 -0
- data/_sass/vendor/breakpoint/_helpers.scss +151 -0
- data/_sass/vendor/breakpoint/_legacy-settings.scss +50 -0
- data/_sass/vendor/breakpoint/_no-query.scss +15 -0
- data/_sass/vendor/breakpoint/_parsers.scss +215 -0
- data/_sass/vendor/breakpoint/_respond-to.scss +82 -0
- data/_sass/vendor/breakpoint/_settings.scss +71 -0
- data/_sass/vendor/breakpoint/parsers/_double.scss +33 -0
- data/_sass/vendor/breakpoint/parsers/_query.scss +82 -0
- data/_sass/vendor/breakpoint/parsers/_resolution.scss +31 -0
- data/_sass/vendor/breakpoint/parsers/_single.scss +26 -0
- data/_sass/vendor/breakpoint/parsers/_triple.scss +36 -0
- data/_sass/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
- data/_sass/vendor/breakpoint/parsers/double/_default.scss +22 -0
- data/_sass/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
- data/_sass/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
- data/_sass/vendor/breakpoint/parsers/single/_default.scss +13 -0
- data/_sass/vendor/breakpoint/parsers/triple/_default.scss +18 -0
- data/_sass/vendor/font-awesome/_animated.scss +34 -0
- data/_sass/vendor/font-awesome/_bordered-pulled.scss +25 -0
- data/_sass/vendor/font-awesome/_core.scss +12 -0
- data/_sass/vendor/font-awesome/_fixed-width.scss +6 -0
- data/_sass/vendor/font-awesome/_font-awesome.scss +18 -0
- data/_sass/vendor/font-awesome/_icons.scss +733 -0
- data/_sass/vendor/font-awesome/_larger.scss +13 -0
- data/_sass/vendor/font-awesome/_list.scss +19 -0
- data/_sass/vendor/font-awesome/_mixins.scss +60 -0
- data/_sass/vendor/font-awesome/_path.scss +15 -0
- data/_sass/vendor/font-awesome/_rotated-flipped.scss +20 -0
- data/_sass/vendor/font-awesome/_screen-reader.scss +5 -0
- data/_sass/vendor/font-awesome/_stacked.scss +20 -0
- data/_sass/vendor/font-awesome/_variables.scss +744 -0
- data/_sass/vendor/magnific-popup/_magnific-popup.scss +649 -0
- data/_sass/vendor/magnific-popup/_settings.scss +46 -0
- data/_sass/vendor/susy/_su.scss +4 -0
- data/_sass/vendor/susy/_susy.scss +4 -0
- data/_sass/vendor/susy/_susyone.scss +4 -0
- data/_sass/vendor/susy/susy/_su.scss +7 -0
- data/_sass/vendor/susy/susy/language/_susy.scss +24 -0
- data/_sass/vendor/susy/susy/language/_susyone.scss +13 -0
- data/_sass/vendor/susy/susy/language/susy/_background.scss +385 -0
- data/_sass/vendor/susy/susy/language/susy/_bleed.scss +200 -0
- data/_sass/vendor/susy/susy/language/susy/_box-sizing.scss +47 -0
- data/_sass/vendor/susy/susy/language/susy/_breakpoint-plugin.scss +185 -0
- data/_sass/vendor/susy/susy/language/susy/_container.scss +81 -0
- data/_sass/vendor/susy/susy/language/susy/_context.scss +36 -0
- data/_sass/vendor/susy/susy/language/susy/_gallery.scss +94 -0
- data/_sass/vendor/susy/susy/language/susy/_grids.scss +64 -0
- data/_sass/vendor/susy/susy/language/susy/_gutters.scss +154 -0
- data/_sass/vendor/susy/susy/language/susy/_isolate.scss +77 -0
- data/_sass/vendor/susy/susy/language/susy/_margins.scss +94 -0
- data/_sass/vendor/susy/susy/language/susy/_padding.scss +74 -0
- data/_sass/vendor/susy/susy/language/susy/_rows.scss +138 -0
- data/_sass/vendor/susy/susy/language/susy/_settings.scss +216 -0
- data/_sass/vendor/susy/susy/language/susy/_span.scss +163 -0
- data/_sass/vendor/susy/susy/language/susy/_validation.scss +16 -0
- data/_sass/vendor/susy/susy/language/susyone/_background.scss +18 -0
- data/_sass/vendor/susy/susy/language/susyone/_functions.scss +377 -0
- data/_sass/vendor/susy/susy/language/susyone/_grid.scss +312 -0
- data/_sass/vendor/susy/susy/language/susyone/_isolation.scss +51 -0
- data/_sass/vendor/susy/susy/language/susyone/_margin.scss +93 -0
- data/_sass/vendor/susy/susy/language/susyone/_media.scss +105 -0
- data/_sass/vendor/susy/susy/language/susyone/_padding.scss +92 -0
- data/_sass/vendor/susy/susy/language/susyone/_settings.scss +60 -0
- data/_sass/vendor/susy/susy/output/_float.scss +9 -0
- data/_sass/vendor/susy/susy/output/_shared.scss +15 -0
- data/_sass/vendor/susy/susy/output/_support.scss +9 -0
- data/_sass/vendor/susy/susy/output/float/_container.scss +16 -0
- data/_sass/vendor/susy/susy/output/float/_end.scss +40 -0
- data/_sass/vendor/susy/susy/output/float/_isolate.scss +22 -0
- data/_sass/vendor/susy/susy/output/float/_span.scss +35 -0
- data/_sass/vendor/susy/susy/output/shared/_background.scss +26 -0
- data/_sass/vendor/susy/susy/output/shared/_container.scss +21 -0
- data/_sass/vendor/susy/susy/output/shared/_direction.scss +42 -0
- data/_sass/vendor/susy/susy/output/shared/_inspect.scss +25 -0
- data/_sass/vendor/susy/susy/output/shared/_margins.scss +23 -0
- data/_sass/vendor/susy/susy/output/shared/_output.scss +14 -0
- data/_sass/vendor/susy/susy/output/shared/_padding.scss +23 -0
- data/_sass/vendor/susy/susy/output/support/_background.scss +58 -0
- data/_sass/vendor/susy/susy/output/support/_box-sizing.scss +19 -0
- data/_sass/vendor/susy/susy/output/support/_clearfix.scss +18 -0
- data/_sass/vendor/susy/susy/output/support/_prefix.scss +19 -0
- data/_sass/vendor/susy/susy/output/support/_rem.scss +22 -0
- data/_sass/vendor/susy/susy/output/support/_support.scss +85 -0
- data/_sass/vendor/susy/susy/su/_grid.scss +103 -0
- data/_sass/vendor/susy/susy/su/_settings.scss +73 -0
- data/_sass/vendor/susy/susy/su/_utilities.scss +111 -0
- data/_sass/vendor/susy/susy/su/_validation.scss +57 -0
- data/assets/css/main.scss +39 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +685 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/images/bio-photo.jpg +0 -0
- data/assets/images/mm-browser-mockups.png +0 -0
- data/assets/images/mm-layout-examples.png +0 -0
- data/assets/js/_main.js +100 -0
- data/assets/js/main.min.js +5 -0
- data/assets/js/plugins/jquery.fitvids.js +82 -0
- data/assets/js/plugins/jquery.greedy-navigation.js +72 -0
- data/assets/js/plugins/jquery.magnific-popup.js +2049 -0
- data/assets/js/plugins/jquery.smooth-scroll.min.js +8 -0
- data/assets/js/plugins/stickyfill.min.js +8 -0
- data/assets/js/vendor/jquery/jquery-1.12.4.min.js +5 -0
- metadata +259 -0
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Michael Rose
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
# [Minimal Mistakes Jekyll Theme](https://mmistakes.github.io/minimal-mistakes/)
|
2
|
+
|
3
|
+
[![GitHub release](https://img.shields.io/github/release/mmistakes/minimal-mistakes.svg)](https://github.com/mmistakes/minimal-mistakes/releases) [![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/mmistakes/minimal-mistakes/master/LICENSE)
|
4
|
+
|
5
|
+
Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your personal site, blog, or portfolio on GitHub or self-hosting on your own server. As the name implies --- styling is purposely minimalistic to be enhanced and customized by you :smile:.
|
6
|
+
|
7
|
+
See what's new in the [CHANGELOG](CHANGELOG.md).
|
8
|
+
|
9
|
+
[![Minimal Mistakes live preview][2]][1]
|
10
|
+
|
11
|
+
[1]: https://mmistakes.github.io/minimal-mistakes/
|
12
|
+
[2]: images/mm-browser-mockups.png (live preview)
|
13
|
+
|
14
|
+
The theme includes responsive layouts (`single`, `archive`, and `splash` pages) that look great on mobile and desktop browsers.
|
15
|
+
|
16
|
+
![layout examples](images/mm-layout-examples.png)
|
17
|
+
|
18
|
+
## [Installation and Setup](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/) / [Preview the Theme](https://mmistakes.github.io/minimal-mistakes/)
|
19
|
+
|
20
|
+
### Notable Features
|
21
|
+
|
22
|
+
- Compatible with Jekyll 3.x and GitHub Pages
|
23
|
+
- Support for Jekyll's built-in Sass/SCSS preprocessor
|
24
|
+
- Several layout options (single, archive, splash pages)
|
25
|
+
- SEO optimized with support for [Twitter Cards](https://dev.twitter.com/cards/overview) and [Open Graph](http://ogp.me/) data
|
26
|
+
- Optional header images, sidebars, table of contents, galleries, related posts, breadcrumb links, and more.
|
27
|
+
- Optional comments ([Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), static-based via [Staticman](https://staticman.net/), and custom).
|
28
|
+
- Optional analytics ([Google Analytics](https://www.google.com/analytics/) and custom).
|
29
|
+
- UI localized text: English (default), Spanish, French, and Turkish.
|
30
|
+
|
31
|
+
#### Demo Pages
|
32
|
+
|
33
|
+
| Name | Description |
|
34
|
+
| ------------------------------------------- | ----------------------------------------------------- |
|
35
|
+
| [Post with Header Image][header-image-post] | A post with a large header image. |
|
36
|
+
| [HTML Tags and Formatting Post][html-tags-post] | A variety of common markup showing how the theme styles them. |
|
37
|
+
| [Syntax Highlighting Post][syntax-post] | Post displaying highlighted code. |
|
38
|
+
| [Post with a Gallery][gallery-post] | A post showing several images wrapped in `<figure>` elements. |
|
39
|
+
| [Sample Collection Page][sample-collection] | Single page from a collection. |
|
40
|
+
| [Categories Archive][categories-archive] | Posts grouped by category. |
|
41
|
+
| [Tags Archive][tags-archive] | Posts grouped by tags. |
|
42
|
+
|
43
|
+
For even more demo pages check the [posts archive][year-archive].
|
44
|
+
|
45
|
+
[header-image-post]: https://mmistakes.github.io/minimal-mistakes/layout-header-image-text-readability/
|
46
|
+
[gallery-post]: https://mmistakes.github.io/minimal-mistakes/post%20formats/post-gallery/
|
47
|
+
[html-tags-post]: https://mmistakes.github.io/minimal-mistakes/markup/markup-html-tags-and-formatting/
|
48
|
+
[syntax-post]: https://mmistakes.github.io/minimal-mistakes/markup-syntax-highlighting/
|
49
|
+
[sample-collection]: https://mmistakes.github.io/minimal-mistakes/recipes/chocolate-chip-cookies/
|
50
|
+
[categories-archive]: https://mmistakes.github.io/minimal-mistakes/categories/
|
51
|
+
[tags-archive]: https://mmistakes.github.io/minimal-mistakes/tags/
|
52
|
+
[year-archive]: https://mmistakes.github.io/minimal-mistakes/year-archive/
|
53
|
+
|
54
|
+
---
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
Having trouble working with the theme? Found a typo in the documentation? Interested in adding a feature or [fixing a bug](https://github.com/mmistakes/minimal-mistakes/issues)? Then by all means [submit an issue](https://github.com/mmistakes/minimal-mistakes/issues/new) or [pull request](https://help.github.com/articles/using-pull-requests/). If this is your first pull request, it may be helpful to read up on the [GitHub Flow](https://guides.github.com/introduction/flow/) first.
|
59
|
+
|
60
|
+
Minimal Mistakes has been designed as a base for you to customize and fit your site's unique needs. Please keep this in mind when requesting features and/or submitting pull requests. If it's not something that most people will use, I probably won't consider it. When in doubt ask.
|
61
|
+
|
62
|
+
This goes for author sidebar links and "share button" additions -- I have no intention of merging in every possibly option, the essentials are there to get you started :smile:.
|
63
|
+
|
64
|
+
### Pull Requests
|
65
|
+
|
66
|
+
To help me out try to avoid creating pull requests on `master` and instead branch off of `develop`. It's much easier for me to test, merge, and roll them into new releases this way.
|
67
|
+
|
68
|
+
---
|
69
|
+
|
70
|
+
## Credits
|
71
|
+
|
72
|
+
### Creator
|
73
|
+
|
74
|
+
**Michael Rose**
|
75
|
+
|
76
|
+
- <https://mademistakes.com>
|
77
|
+
- <https://twitter.com/mmistakes>
|
78
|
+
- <https://github.com/mmistakes>
|
79
|
+
|
80
|
+
### Icons + Demo Images:
|
81
|
+
|
82
|
+
- [The Noun Project](https://thenounproject.com) -- Garrett Knoll, Arthur Shlain, and [tracy tam](https://thenounproject.com/tracytam)
|
83
|
+
- [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
|
84
|
+
- [Unsplash](https://unsplash.com/)
|
85
|
+
|
86
|
+
### Other:
|
87
|
+
|
88
|
+
- [Jekyll](http://jekyllrb.com/)
|
89
|
+
- [jQuery](http://jquery.com/)
|
90
|
+
- [Susy](http://susy.oddbird.net/)
|
91
|
+
- [Breakpoint](http://breakpoint-sass.com/)
|
92
|
+
- [Magnific Popup](http://dimsemenov.com/plugins/magnific-popup/)
|
93
|
+
- [FitVids.JS](http://fitvidsjs.com/)
|
94
|
+
- Greedy Navigation - [lukejacksonn](http://codepen.io/lukejacksonn/pen/PwmwWV)
|
95
|
+
- [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll)
|
96
|
+
- [Stickyfill](https://github.com/wilddeer/stickyfill)
|
97
|
+
|
98
|
+
---
|
99
|
+
|
100
|
+
## License
|
101
|
+
|
102
|
+
The MIT License (MIT)
|
103
|
+
|
104
|
+
Copyright (c) 2016 Michael Rose
|
105
|
+
|
106
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
107
|
+
of this software and associated documentation files (the "Software"), to deal
|
108
|
+
in the Software without restriction, including without limitation the rights
|
109
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
110
|
+
copies of the Software, and to permit persons to whom the Software is
|
111
|
+
furnished to do so, subject to the following conditions:
|
112
|
+
|
113
|
+
The above copyright notice and this permission notice shall be included in all
|
114
|
+
copies or substantial portions of the Software.
|
115
|
+
|
116
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
117
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
118
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
119
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
120
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
121
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
122
|
+
SOFTWARE.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<script>
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
6
|
+
|
7
|
+
ga('create', '{{ site.analytics.google.tracking_id }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
</script>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
var _gaq = _gaq || [];
|
3
|
+
_gaq.push(['_setAccount', '{{ site.analytics.google.tracking_id }}']);
|
4
|
+
_gaq.push(['_trackPageview']);
|
5
|
+
|
6
|
+
(function() {
|
7
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
8
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
9
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
10
|
+
})();
|
11
|
+
</script>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{% if site.analytics.provider and page.analytics != false %}
|
2
|
+
|
3
|
+
{% case site.analytics.provider %}
|
4
|
+
{% when "google" %}
|
5
|
+
{% include /analytics-providers/google.html %}
|
6
|
+
{% when "google-universal" %}
|
7
|
+
{% include /analytics-providers/google-universal.html %}
|
8
|
+
{% when "custom" %}
|
9
|
+
{% include /analytics-providers/custom.html %}
|
10
|
+
{% endcase %}
|
11
|
+
|
12
|
+
{% endif %}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{% include base_path %}
|
2
|
+
|
3
|
+
{% if post.header.teaser %}
|
4
|
+
{% capture teaser %}{{ post.header.teaser }}{% endcapture %}
|
5
|
+
{% else %}
|
6
|
+
{% assign teaser = site.teaser %}
|
7
|
+
{% endif %}
|
8
|
+
|
9
|
+
{% if post.id %}
|
10
|
+
{% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %}
|
11
|
+
{% else %}
|
12
|
+
{% assign title = post.title %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
<div class="{{ include.type | default: "list" }}__item">
|
16
|
+
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
|
17
|
+
{% if include.type == "grid" and teaser %}
|
18
|
+
<div class="archive__item-teaser">
|
19
|
+
<img src=
|
20
|
+
{% if teaser contains "://" %}
|
21
|
+
"{{ teaser }}"
|
22
|
+
{% else %}
|
23
|
+
"{{ teaser | prepend: "/" | prepend: base_path }}"
|
24
|
+
{% endif %}
|
25
|
+
alt="">
|
26
|
+
</div>
|
27
|
+
{% endif %}
|
28
|
+
<h2 class="archive__item-title" itemprop="headline">
|
29
|
+
{% if post.link %}
|
30
|
+
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ base_path }}{{ post.url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
|
31
|
+
{% else %}
|
32
|
+
<a href="{{ base_path }}{{ post.url }}" rel="permalink">{{ title }}</a>
|
33
|
+
{% endif %}
|
34
|
+
</h2>
|
35
|
+
{% if post.read_time %}
|
36
|
+
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
|
37
|
+
{% endif %}
|
38
|
+
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
|
39
|
+
</article>
|
40
|
+
</div>
|
@@ -0,0 +1,102 @@
|
|
1
|
+
{% include base_path %}
|
2
|
+
|
3
|
+
{% if page.author and site.data.authors[page.author] %}
|
4
|
+
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %}
|
5
|
+
{% endif %}
|
6
|
+
|
7
|
+
<div itemscope itemtype="http://schema.org/Person">
|
8
|
+
|
9
|
+
<div class="author__avatar">
|
10
|
+
{% if author.avatar contains "://" %}
|
11
|
+
<img src="{{ author.avatar | prepend: "/" }}" alt="{{ author.name }}">
|
12
|
+
{% else %}
|
13
|
+
<img src="{{ author.avatar | prepend: "/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
|
14
|
+
{% endif %}
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="author__content">
|
18
|
+
<h3 class="author__name">{{ author.name }}</h3>
|
19
|
+
{% if author.bio %}<p class="author__bio">{{ author.bio }}</p>{% endif %}
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="author__urls-wrapper">
|
23
|
+
<button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
|
24
|
+
<ul class="author__urls social-icons">
|
25
|
+
{% if author.location %}
|
26
|
+
<li><i class="fa fa-fw fa-map-marker" aria-hidden="true"></i> {{ author.location }}</li>
|
27
|
+
{% endif %}
|
28
|
+
{% if author.uri %}
|
29
|
+
<li><a href="{{ author.uri }}"><i class="fa fa-fw fa-chain" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].website_label | default: "Website" }}</a></li>
|
30
|
+
{% endif %}
|
31
|
+
{% if author.email %}
|
32
|
+
<li><a href="mailto:{{ author.email }}"><i class="fa fa-fw fa-envelope-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].email_label | default: "Email" }}</a></li>
|
33
|
+
{% endif %}
|
34
|
+
{% if author.keybase %}
|
35
|
+
<li><a href="https://keybase.io/{{ author.keybase }}"><i class="fa fa-fw fa-key" aria-hidden="true"></i> Keybase</a></li>
|
36
|
+
{% endif %}
|
37
|
+
{% if author.twitter %}
|
38
|
+
<li><a href="https://twitter.com/{{ author.twitter }}"><i class="fa fa-fw fa-twitter-square" aria-hidden="true"></i> Twitter</a></li>
|
39
|
+
{% endif %}
|
40
|
+
{% if author.facebook %}
|
41
|
+
<li><a href="https://www.facebook.com/{{ author.facebook }}"><i class="fa fa-fw fa-facebook-square" aria-hidden="true"></i> Facebook</a></li>
|
42
|
+
{% endif %}
|
43
|
+
{% if author.google_plus %}
|
44
|
+
<li><a href="https://plus.google.com/+{{ author.google_plus }}"><i class="fa fa-fw fa-google-plus-square" aria-hidden="true"></i> Google+</a></li>
|
45
|
+
{% endif %}
|
46
|
+
{% if author.linkedin %}
|
47
|
+
<li><a href="https://www.linkedin.com/in/{{ author.linkedin }}"><i class="fa fa-fw fa-linkedin-square" aria-hidden="true"></i> LinkedIn</a></li>
|
48
|
+
{% endif %}
|
49
|
+
{% if author.xing %}
|
50
|
+
<li><a href="https://www.xing.com/profile/{{ author.xing }}"><i class="fa fa-fw fa-xing-square" aria-hidden="true"></i> XING</a></li>
|
51
|
+
{% endif %}
|
52
|
+
{% if author.instagram %}
|
53
|
+
<li><a href="https://instagram.com/{{ author.instagram }}"><i class="fa fa-fw fa-instagram" aria-hidden="true"></i> Instagram</a></li>
|
54
|
+
{% endif %}
|
55
|
+
{% if author.tumblr %}
|
56
|
+
<li><a href="https://{{ author.tumblr }}.tumblr.com"><i class="fa fa-fw fa-tumblr-square" aria-hidden="true"></i> Tumblr</a></li>
|
57
|
+
{% endif %}
|
58
|
+
{% if author.bitbucket %}
|
59
|
+
<li><a href="https://bitbucket.org/{{ author.bitbucket }}"><i class="fa fa-fw fa-bitbucket" aria-hidden="true"></i> Bitbucket</a></li>
|
60
|
+
{% endif %}
|
61
|
+
{% if author.github %}
|
62
|
+
<li><a href="https://github.com/{{ author.github }}"><i class="fa fa-fw fa-github" aria-hidden="true"></i> Github</a></li>
|
63
|
+
{% endif %}
|
64
|
+
{% if author.stackoverflow %}
|
65
|
+
<li><a href="https://www.stackoverflow.com/users/{{ author.stackoverflow }}"><i class="fa fa-fw fa-stack-overflow" aria-hidden="true"></i> Stackoverflow</a></li>
|
66
|
+
{% endif %}
|
67
|
+
{% if author.lastfm %}
|
68
|
+
<li><a href="https://last.fm/user/{{ author.lastfm }}"><i class="fa fa-fw fa-lastfm-square" aria-hidden="true"></i> Last.fm</a></li>
|
69
|
+
{% endif %}
|
70
|
+
{% if author.dribbble %}
|
71
|
+
<li><a href="https://dribbble.com/{{ author.dribbble }}"><i class="fa fa-fw fa-dribbble" aria-hidden="true"></i> Dribbble</a></li>
|
72
|
+
{% endif %}
|
73
|
+
{% if author.pinterest %}
|
74
|
+
<li><a href="https://www.pinterest.com/{{ author.pinterest }}"><i class="fa fa-fw fa-pinterest" aria-hidden="true"></i> Pinterest</a></li>
|
75
|
+
{% endif %}
|
76
|
+
{% if author.foursquare %}
|
77
|
+
<li><a href="https://foursquare.com/{{ author.foursquare }}"><i class="fa fa-fw fa-foursquare" aria-hidden="true"></i> Foursquare</a></li>
|
78
|
+
{% endif %}
|
79
|
+
{% if author.steam %}
|
80
|
+
<li><a href="https://steamcommunity.com/id/{{ author.steam }}"><i class="fa fa-fw fa-steam-square" aria-hidden="true"></i> Steam</a></li>
|
81
|
+
{% endif %}
|
82
|
+
{% if author.youtube %}
|
83
|
+
<li><a href="https://www.youtube.com/user/{{ author.youtube }}"><i class="fa fa-fw fa-youtube-square" aria-hidden="true"></i> YouTube</a></li>
|
84
|
+
{% endif %}
|
85
|
+
{% if author.soundcloud %}
|
86
|
+
<li><a href="https://soundcloud.com/{{ author.soundcloud }}"><i class="fa fa-fw fa-soundcloud" aria-hidden="true"></i> Soundcloud</a></li>
|
87
|
+
{% endif %}
|
88
|
+
{% if author.weibo %}
|
89
|
+
<li><a href="https://www.weibo.com/{{ author.weibo }}"><i class="fa fa-fw fa-weibo" aria-hidden="true"></i> Weibo</a></li>
|
90
|
+
{% endif %}
|
91
|
+
{% if author.flickr %}
|
92
|
+
<li><a href="https://www.flickr.com/{{ author.flickr }}"><i class="fa fa-fw fa-flickr" aria-hidden="true"></i> Flickr</a></li>
|
93
|
+
{% endif %}
|
94
|
+
{% if author.codepen %}
|
95
|
+
<li><a href="https://codepen.io/{{ author.codepen }}"><i class="fa fa-fw fa-codepen" aria-hidden="true"></i> CodePen</a></li>
|
96
|
+
{% endif %}
|
97
|
+
{% if author.vine %}
|
98
|
+
<li><a href="https://vine.co/u/{{ author.vine }}"><i class="fa fa-fw fa-vine" aria-hidden="true"></i> Vine</a></li>
|
99
|
+
{% endif %}
|
100
|
+
</ul>
|
101
|
+
</div>
|
102
|
+
</div>
|
data/_includes/base_path
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
{% include base_path %}
|
2
|
+
|
3
|
+
{% case site.categories.type %}
|
4
|
+
{% when "liquid" %}
|
5
|
+
{% assign path_type = "#" %}
|
6
|
+
{% when "jekyll-archives" %}
|
7
|
+
{% assign path_type = nil %}
|
8
|
+
{% endcase %}
|
9
|
+
|
10
|
+
{% if page.collection != 'posts' %}
|
11
|
+
{% assign path_type = nil %}
|
12
|
+
{% assign crumb_path = '/' %}
|
13
|
+
{% else %}
|
14
|
+
{% assign crumb_path = site.categories.path %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<nav class="breadcrumbs">
|
18
|
+
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
19
|
+
{% assign crumbs = page.url | split: '/' %}
|
20
|
+
{% assign i = 1 %}
|
21
|
+
{% for crumb in crumbs offset: 1 %}
|
22
|
+
{% if forloop.first %}
|
23
|
+
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
24
|
+
<a href="{{ base_path }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
25
|
+
<meta itemprop="position" content="{{ i }}" />
|
26
|
+
</li>
|
27
|
+
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
28
|
+
{% endif %}
|
29
|
+
{% if forloop.last %}
|
30
|
+
<li class="current">{{ page.title }}</li>
|
31
|
+
{% else %}
|
32
|
+
{% assign i = i | plus: 1 %}
|
33
|
+
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
34
|
+
<a href="{{ base_path }}{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
35
|
+
<meta itemprop="position" content="{{ i }}" />
|
36
|
+
</li>
|
37
|
+
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
38
|
+
{% endif %}
|
39
|
+
{% endfor %}
|
40
|
+
</ol>
|
41
|
+
</nav>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{% include base_path %}
|
2
|
+
|
3
|
+
{% case site.category_archive.type %}
|
4
|
+
{% when "liquid" %}
|
5
|
+
{% assign path_type = "#" %}
|
6
|
+
{% when "jekyll-archives" %}
|
7
|
+
{% assign path_type = nil %}
|
8
|
+
{% endcase %}
|
9
|
+
|
10
|
+
{% if site.category_archive.path %}
|
11
|
+
{% comment %}
|
12
|
+
<!-- Sort alphabetically regardless of case e.g. a B c d E -->
|
13
|
+
<!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
|
14
|
+
{% endcomment %}
|
15
|
+
{% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
16
|
+
{% assign category_hashes = (page_categories | split: ',' | sort:0) %}
|
17
|
+
|
18
|
+
<p class="page__taxonomy">
|
19
|
+
<strong><i class="fa fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} </strong>
|
20
|
+
<span itemprop="keywords">
|
21
|
+
{% for hash in category_hashes %}
|
22
|
+
{% assign keyValue = hash | split: '#' %}
|
23
|
+
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
24
|
+
<a href="{{ base_path }}{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path }}" class="page__taxonomy-item" rel="tag">{{ category_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
|
25
|
+
{% endfor %}
|
26
|
+
</span>
|
27
|
+
</p>
|
28
|
+
{% endif %}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="http://schema.org/Comment">
|
2
|
+
<div class="comment__avatar-wrapper">
|
3
|
+
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80">
|
4
|
+
</div>
|
5
|
+
<div class="comment__content-wrapper">
|
6
|
+
<h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
7
|
+
{% unless include.url == blank %}
|
8
|
+
<span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span>
|
9
|
+
{% else %}
|
10
|
+
<span itemprop="name">{{ include.name }}</span>
|
11
|
+
{% endunless %}
|
12
|
+
</h3>
|
13
|
+
<p class="comment__date">
|
14
|
+
{% if include.date %}
|
15
|
+
{% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %}
|
16
|
+
<time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
|
17
|
+
{% if include.index %}</a>{% endif %}
|
18
|
+
{% endif %}
|
19
|
+
</p>
|
20
|
+
<div itemprop="text">{{ include.message | markdownify }}</div>
|
21
|
+
</div>
|
22
|
+
</article>
|