minimal-mistakes-jekyll 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE → LICENSE.txt} +0 -0
- data/README.md +40 -16
- data/_includes/archive-single.html +37 -37
- data/_includes/author-profile.html +102 -100
- data/_includes/breadcrumbs.html +38 -38
- data/_includes/category-list.html +25 -25
- data/_includes/comments.html +79 -79
- data/_includes/feature_row +49 -49
- data/_includes/footer.html +21 -21
- data/_includes/gallery +46 -46
- data/_includes/head.html +18 -18
- data/_includes/masthead.html +20 -20
- data/_includes/nav_list +44 -44
- data/_includes/page__hero.html +52 -52
- data/_includes/page__taxonomy.html +6 -6
- data/_includes/paginator.html +67 -67
- data/_includes/post_pagination.html +13 -13
- data/_includes/scripts.html +4 -4
- data/_includes/seo.html +143 -143
- data/_includes/sidebar.html +22 -22
- data/_includes/social-share.html +13 -13
- data/_includes/tag-list.html +25 -25
- data/_layouts/archive-taxonomy.html +14 -14
- data/_layouts/default.html +28 -28
- data/_layouts/home.html +13 -0
- data/_layouts/single.html +73 -73
- data/_layouts/splash.html +19 -19
- metadata +6 -8
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a51a32ed24fcceef4d302dd4baa0269722dd690b
|
4
|
+
data.tar.gz: a706d8bbfedbd8e08c37219c4992268373bfccba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5645f456f7e58243a4de58615c18ea427b459826fed90781cd64b9498b9608c0d1fb74289740296663a02451887a5cb34de90c452795a33a7a9523627ff96b69
|
7
|
+
data.tar.gz: 2a39b349e670668ed8e94f2b84bb5c124e43012c13dd6ca05bb26b93250941db8c346f30255394135d7fc2841d0e253a937c5dfa3049197fe3a95fc4005ba966
|
data/{LICENSE → LICENSE.txt}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# [Minimal Mistakes Jekyll Theme](https://mmistakes.github.io/minimal-mistakes/)
|
2
2
|
|
3
|
-
[![GitHub release](https://img.shields.io/
|
3
|
+
[![GitHub release](https://img.shields.io/gem/v/minimal-mistakes-jekyll.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
4
|
|
5
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
6
|
|
@@ -9,26 +9,22 @@ See what's new in the [CHANGELOG](CHANGELOG.md).
|
|
9
9
|
[![Minimal Mistakes live preview][2]][1]
|
10
10
|
|
11
11
|
[1]: https://mmistakes.github.io/minimal-mistakes/
|
12
|
-
[2]:
|
12
|
+
[2]: screenshot.png (live preview)
|
13
13
|
|
14
|
-
|
14
|
+
![layout examples](screenshot-layouts.png)
|
15
15
|
|
16
|
-
|
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
|
16
|
+
## Notable Features
|
21
17
|
|
22
18
|
- Compatible with Jekyll 3.x and GitHub Pages
|
23
19
|
- Support for Jekyll's built-in Sass/SCSS preprocessor
|
24
|
-
- Several layout options (single, archive, splash
|
20
|
+
- Several responsive layout options (single, archive index, splash, and paginated home page)
|
25
21
|
- 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
|
-
-
|
28
|
-
-
|
29
|
-
- UI localized text
|
22
|
+
- Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
|
23
|
+
- Commenting support (powered by [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).
|
24
|
+
- [Google Analytics](https://www.google.com/analytics/) support.
|
25
|
+
- UI localized text in English (default), Brazilian Portguese, Chinese, French, German, Italian, Spanish, and Turkish
|
30
26
|
|
31
|
-
|
27
|
+
## Demo Pages
|
32
28
|
|
33
29
|
| Name | Description |
|
34
30
|
| ------------------------------------------- | ----------------------------------------------------- |
|
@@ -40,7 +36,7 @@ The theme includes responsive layouts (`single`, `archive`, and `splash` pages)
|
|
40
36
|
| [Categories Archive][categories-archive] | Posts grouped by category. |
|
41
37
|
| [Tags Archive][tags-archive] | Posts grouped by tags. |
|
42
38
|
|
43
|
-
For even more demo pages check the [posts archive][year-archive].
|
39
|
+
For even more demo pages check the [posts archive][year-archive] on the demo site. Looking for the source code to peep the YAML Front Matter and Markdown used? Check the [`gh-pages`](https://github.com/mmistakes/minimal-mistakes/tree/gh-pages) branch.
|
44
40
|
|
45
41
|
[header-image-post]: https://mmistakes.github.io/minimal-mistakes/layout-header-image-text-readability/
|
46
42
|
[gallery-post]: https://mmistakes.github.io/minimal-mistakes/post%20formats/post-gallery/
|
@@ -51,6 +47,32 @@ For even more demo pages check the [posts archive][year-archive].
|
|
51
47
|
[tags-archive]: https://mmistakes.github.io/minimal-mistakes/tags/
|
52
48
|
[year-archive]: https://mmistakes.github.io/minimal-mistakes/year-archive/
|
53
49
|
|
50
|
+
## Quick Start
|
51
|
+
|
52
|
+
Add this line to your Jekyll site's `Gemfile`:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
gem "minimal-mistakes-jekyll"
|
56
|
+
```
|
57
|
+
|
58
|
+
Add this line to your Jekyll site's `_config.yml` file:
|
59
|
+
|
60
|
+
```yaml
|
61
|
+
theme: minimal-mistakes-jekyll
|
62
|
+
```
|
63
|
+
|
64
|
+
Run Bundler:
|
65
|
+
|
66
|
+
```bash
|
67
|
+
bundle install
|
68
|
+
```
|
69
|
+
|
70
|
+
## Usage
|
71
|
+
|
72
|
+
For detailed instructions on how to configure, customize, add content, and more read the [theme's documentation](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/).
|
73
|
+
|
74
|
+
**Note:** Gem version of the theme requires Jekyll v3.3+ and is not supported with sites hosted with [GitHub Pages](https://pages.github.com/). You can still use the theme on GitHub Pages, you'll just need to install using the old "[repo fork method](https://mmistakes.github.io/minimal-mistakes/docs/installation/)".
|
75
|
+
|
54
76
|
---
|
55
77
|
|
56
78
|
## Contributing
|
@@ -65,6 +87,8 @@ This goes for author sidebar links and "share button" additions -- I have no int
|
|
65
87
|
|
66
88
|
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
89
|
|
90
|
+
Theme documentation and demo pages can be found in the `gh-pages` branch, please submit pull requests against that branch.
|
91
|
+
|
68
92
|
---
|
69
93
|
|
70
94
|
## Credits
|
@@ -119,4 +143,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
119
143
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
120
144
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
121
145
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
122
|
-
SOFTWARE.
|
146
|
+
SOFTWARE.
|
@@ -1,38 +1,38 @@
|
|
1
|
-
{% if post.header.teaser %}
|
2
|
-
{% capture teaser %}{{ post.header.teaser }}{% endcapture %}
|
3
|
-
{% else %}
|
4
|
-
{% assign teaser = site.teaser %}
|
5
|
-
{% endif %}
|
6
|
-
|
7
|
-
{% if post.id %}
|
8
|
-
{% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %}
|
9
|
-
{% else %}
|
10
|
-
{% assign title = post.title %}
|
11
|
-
{% endif %}
|
12
|
-
|
13
|
-
<div class="{{ include.type | default: "list" }}__item">
|
14
|
-
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
|
15
|
-
{% if include.type == "grid" and teaser %}
|
16
|
-
<div class="archive__item-teaser">
|
17
|
-
<img src=
|
18
|
-
{% if teaser contains "://" %}
|
19
|
-
"{{ teaser }}"
|
20
|
-
{% else %}
|
21
|
-
"{{ teaser | prepend: "/" | absolute_url }}"
|
22
|
-
{% endif %}
|
23
|
-
alt="">
|
24
|
-
</div>
|
25
|
-
{% endif %}
|
26
|
-
<h2 class="archive__item-title" itemprop="headline">
|
27
|
-
{% if post.link %}
|
28
|
-
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | absolute_url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
|
29
|
-
{% else %}
|
30
|
-
<a href="{{ post.url | absolute_url }}" rel="permalink">{{ title }}</a>
|
31
|
-
{% endif %}
|
32
|
-
</h2>
|
33
|
-
{% if post.read_time %}
|
34
|
-
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
|
35
|
-
{% endif %}
|
36
|
-
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
|
37
|
-
</article>
|
1
|
+
{% if post.header.teaser %}
|
2
|
+
{% capture teaser %}{{ post.header.teaser }}{% endcapture %}
|
3
|
+
{% else %}
|
4
|
+
{% assign teaser = site.teaser %}
|
5
|
+
{% endif %}
|
6
|
+
|
7
|
+
{% if post.id %}
|
8
|
+
{% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %}
|
9
|
+
{% else %}
|
10
|
+
{% assign title = post.title %}
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
<div class="{{ include.type | default: "list" }}__item">
|
14
|
+
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
|
15
|
+
{% if include.type == "grid" and teaser %}
|
16
|
+
<div class="archive__item-teaser">
|
17
|
+
<img src=
|
18
|
+
{% if teaser contains "://" %}
|
19
|
+
"{{ teaser }}"
|
20
|
+
{% else %}
|
21
|
+
"{{ teaser | prepend: "/" | absolute_url }}"
|
22
|
+
{% endif %}
|
23
|
+
alt="">
|
24
|
+
</div>
|
25
|
+
{% endif %}
|
26
|
+
<h2 class="archive__item-title" itemprop="headline">
|
27
|
+
{% if post.link %}
|
28
|
+
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | absolute_url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
|
29
|
+
{% else %}
|
30
|
+
<a href="{{ post.url | absolute_url }}" rel="permalink">{{ title }}</a>
|
31
|
+
{% endif %}
|
32
|
+
</h2>
|
33
|
+
{% if post.read_time %}
|
34
|
+
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
|
35
|
+
{% endif %}
|
36
|
+
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
|
37
|
+
</article>
|
38
38
|
</div>
|
@@ -1,100 +1,102 @@
|
|
1
|
-
{% if page.author and site.data.authors[page.author] %}
|
2
|
-
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %}
|
3
|
-
{% endif %}
|
4
|
-
|
5
|
-
<div itemscope itemtype="http://schema.org/Person">
|
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
|
-
{%
|
35
|
-
|
36
|
-
|
37
|
-
{%
|
38
|
-
|
39
|
-
|
40
|
-
{%
|
41
|
-
|
42
|
-
|
43
|
-
{%
|
44
|
-
|
45
|
-
|
46
|
-
{%
|
47
|
-
|
48
|
-
|
49
|
-
{%
|
50
|
-
|
51
|
-
|
52
|
-
{%
|
53
|
-
|
54
|
-
|
55
|
-
{%
|
56
|
-
|
57
|
-
|
58
|
-
{%
|
59
|
-
|
60
|
-
|
61
|
-
{%
|
62
|
-
|
63
|
-
|
64
|
-
{%
|
65
|
-
|
66
|
-
|
67
|
-
{%
|
68
|
-
|
69
|
-
|
70
|
-
{%
|
71
|
-
|
72
|
-
|
73
|
-
{%
|
74
|
-
|
75
|
-
|
76
|
-
{%
|
77
|
-
|
78
|
-
|
79
|
-
{%
|
80
|
-
|
81
|
-
|
82
|
-
{%
|
83
|
-
|
84
|
-
|
85
|
-
{%
|
86
|
-
|
87
|
-
|
88
|
-
{%
|
89
|
-
|
90
|
-
|
91
|
-
{%
|
92
|
-
|
93
|
-
|
94
|
-
{%
|
95
|
-
|
96
|
-
|
97
|
-
{%
|
98
|
-
|
99
|
-
|
100
|
-
</
|
1
|
+
{% if page.author and site.data.authors[page.author] %}
|
2
|
+
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %}
|
3
|
+
{% endif %}
|
4
|
+
|
5
|
+
<div itemscope itemtype="http://schema.org/Person">
|
6
|
+
|
7
|
+
{% if author.avatar %}
|
8
|
+
<div class="author__avatar">
|
9
|
+
{% if author.avatar contains "://" %}
|
10
|
+
<img src="{{ author.avatar }}" alt="{{ author.name }}">
|
11
|
+
{% else %}
|
12
|
+
<img src="{{ author.avatar | prepend: "/" | absolute_url }}" class="author__avatar" alt="{{ author.name }}">
|
13
|
+
{% endif %}
|
14
|
+
</div>
|
15
|
+
{% endif %}
|
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/breadcrumbs.html
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
{% case site.categories.type %}
|
2
|
-
{% when "liquid" %}
|
3
|
-
{% assign path_type = "#" %}
|
4
|
-
{% when "jekyll-archives" %}
|
5
|
-
{% assign path_type = nil %}
|
6
|
-
{% endcase %}
|
7
|
-
|
8
|
-
{% if page.collection != 'posts' %}
|
9
|
-
{% assign path_type = nil %}
|
10
|
-
{% assign crumb_path = '/' %}
|
11
|
-
{% else %}
|
12
|
-
{% assign crumb_path = site.categories.path %}
|
13
|
-
{% endif %}
|
14
|
-
|
15
|
-
<nav class="breadcrumbs">
|
16
|
-
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
17
|
-
{% assign crumbs = page.url | split: '/' %}
|
18
|
-
{% assign i = 1 %}
|
19
|
-
{% for crumb in crumbs offset: 1 %}
|
20
|
-
{% if forloop.first %}
|
21
|
-
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
22
|
-
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
23
|
-
<meta itemprop="position" content="{{ i }}" />
|
24
|
-
</li>
|
25
|
-
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
26
|
-
{% endif %}
|
27
|
-
{% if forloop.last %}
|
28
|
-
<li class="current">{{ page.title }}</li>
|
29
|
-
{% else %}
|
30
|
-
{% assign i = i | plus: 1 %}
|
31
|
-
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
32
|
-
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | absolute_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
33
|
-
<meta itemprop="position" content="{{ i }}" />
|
34
|
-
</li>
|
35
|
-
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
36
|
-
{% endif %}
|
37
|
-
{% endfor %}
|
38
|
-
</ol>
|
1
|
+
{% case site.categories.type %}
|
2
|
+
{% when "liquid" %}
|
3
|
+
{% assign path_type = "#" %}
|
4
|
+
{% when "jekyll-archives" %}
|
5
|
+
{% assign path_type = nil %}
|
6
|
+
{% endcase %}
|
7
|
+
|
8
|
+
{% if page.collection != 'posts' %}
|
9
|
+
{% assign path_type = nil %}
|
10
|
+
{% assign crumb_path = '/' %}
|
11
|
+
{% else %}
|
12
|
+
{% assign crumb_path = site.categories.path %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
<nav class="breadcrumbs">
|
16
|
+
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
17
|
+
{% assign crumbs = page.url | split: '/' %}
|
18
|
+
{% assign i = 1 %}
|
19
|
+
{% for crumb in crumbs offset: 1 %}
|
20
|
+
{% if forloop.first %}
|
21
|
+
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
22
|
+
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
23
|
+
<meta itemprop="position" content="{{ i }}" />
|
24
|
+
</li>
|
25
|
+
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
26
|
+
{% endif %}
|
27
|
+
{% if forloop.last %}
|
28
|
+
<li class="current">{{ page.title }}</li>
|
29
|
+
{% else %}
|
30
|
+
{% assign i = i | plus: 1 %}
|
31
|
+
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
32
|
+
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | absolute_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
33
|
+
<meta itemprop="position" content="{{ i }}" />
|
34
|
+
</li>
|
35
|
+
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
36
|
+
{% endif %}
|
37
|
+
{% endfor %}
|
38
|
+
</ol>
|
39
39
|
</nav>
|