minimal-mistakes-jekyll 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +156 -156
- data/_includes/analytics-providers/google-universal.html +2 -2
- data/_includes/page__hero.html +2 -2
- data/_includes/page__hero_video.html +4 -4
- data/_includes/paginator.html +10 -9
- data/_layouts/archive.html +25 -25
- data/_layouts/splash.html +21 -21
- data/_sass/_utilities.scss +506 -506
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 615524bf6580dd930eca06885b4090db4df6cf01
|
4
|
+
data.tar.gz: 1b237a0cd9e968427456b52f7d9d37a5d700fb8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2d939d47f9f8fa2a0b927a1d5a25f4d625e23b4e0ed33e5dcd0ba24ea04708befb2c0fe1252a4785b79fd6492eee2f1b01cd9b40bdc6ed5317c874f069ed054
|
7
|
+
data.tar.gz: 0d54d27beeaf59d5d2b1e6e1cf1e539d023aee0371a29893d70e60d1f4c4611fd65c7ccc7a82bd1426d24bb3e5335d2b66d961f721924c0d0db1a136aed791c6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## [4.2.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.2.1)
|
2
|
+
|
3
|
+
### Enhancements
|
4
|
+
|
5
|
+
- Improve `paginator.html` to support paginated pages that live inside of a subfolder. See [documentation](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#home-page) for more details. [#764](https://github.com/mmistakes/minimal-mistakes/pull/764/)
|
6
|
+
|
7
|
+
### Maintenance
|
8
|
+
|
9
|
+
- Add `https` protocol to Google Universal Analytics embed. [#772](https://github.com/mmistakes/minimal-mistakes/pull/772)
|
10
|
+
|
1
11
|
## [4.2.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.2.0)
|
2
12
|
|
3
13
|
### Enhancements
|
data/README.md
CHANGED
@@ -1,156 +1,156 @@
|
|
1
|
-
# [Minimal Mistakes Jekyll Theme](https://mmistakes.github.io/minimal-mistakes/)
|
2
|
-
|
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
|
-
|
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
|
-
:sparkles: Minimal Mistakes is now available as a [Ruby gem](https://rubygems.org/gems/minimal-mistakes-jekyll). Consult the [Quick-Start Guide](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/) and [this blog post](https://mmistakes.github.io/minimal-mistakes/jekyll/gemified-theme-beta/) to learn how to upgrade.
|
10
|
-
|
11
|
-
[![Minimal Mistakes live preview][2]][1]
|
12
|
-
|
13
|
-
[1]: https://mmistakes.github.io/minimal-mistakes/
|
14
|
-
[2]: screenshot.png (live preview)
|
15
|
-
|
16
|
-
![layout examples](screenshot-layouts.png)
|
17
|
-
|
18
|
-
## Notable Features
|
19
|
-
|
20
|
-
- "Gemified" for easier install/upgrading
|
21
|
-
- Compatible with Jekyll 3.x and GitHub Pages
|
22
|
-
- Support for Jekyll's built-in Sass/SCSS preprocessor
|
23
|
-
- Several responsive layout options (single, archive index, splash, and paginated home page)
|
24
|
-
- SEO optimized with support for [Twitter Cards](https://dev.twitter.com/cards/overview) and [Open Graph](http://ogp.me/) data
|
25
|
-
- 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.
|
26
|
-
- 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).
|
27
|
-
- [Google Analytics](https://www.google.com/analytics/) support.
|
28
|
-
- UI localized text in English (default), Brazilian Portuguese, Chinese, French, German, Italian, Nepali (Nepalese), Spanish, and Turkish
|
29
|
-
|
30
|
-
## Demo Pages
|
31
|
-
|
32
|
-
| Name | Description |
|
33
|
-
| ------------------------------------------- | ----------------------------------------------------- |
|
34
|
-
| [Post with Header Image][header-image-post] | A post with a large header image. |
|
35
|
-
| [HTML Tags and Formatting Post][html-tags-post] | A variety of common markup showing how the theme styles them. |
|
36
|
-
| [Syntax Highlighting Post][syntax-post] | Post displaying highlighted code. |
|
37
|
-
| [Post with a Gallery][gallery-post] | A post showing several images wrapped in `<figure>` elements. |
|
38
|
-
| [Sample Collection Page][sample-collection] | Single page from a collection. |
|
39
|
-
| [Categories Archive][categories-archive] | Posts grouped by category. |
|
40
|
-
| [Tags Archive][tags-archive] | Posts grouped by tags. |
|
41
|
-
|
42
|
-
Additional sample posts are available under [posts archive][year-archive] on the demo site. Source files for these (and the entire demo site) can be found in [`/docs`](docs).
|
43
|
-
|
44
|
-
[header-image-post]: https://mmistakes.github.io/minimal-mistakes/layout-header-image-text-readability/
|
45
|
-
[gallery-post]: https://mmistakes.github.io/minimal-mistakes/post%20formats/post-gallery/
|
46
|
-
[html-tags-post]: https://mmistakes.github.io/minimal-mistakes/markup/markup-html-tags-and-formatting/
|
47
|
-
[syntax-post]: https://mmistakes.github.io/minimal-mistakes/markup-syntax-highlighting/
|
48
|
-
[sample-collection]: https://mmistakes.github.io/minimal-mistakes/recipes/chocolate-chip-cookies/
|
49
|
-
[categories-archive]: https://mmistakes.github.io/minimal-mistakes/categories/
|
50
|
-
[tags-archive]: https://mmistakes.github.io/minimal-mistakes/tags/
|
51
|
-
[year-archive]: https://mmistakes.github.io/minimal-mistakes/year-archive/
|
52
|
-
|
53
|
-
## Usage
|
54
|
-
|
55
|
-
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/).
|
56
|
-
|
57
|
-
**Note:** Gem version of the theme requires Jekyll v3.3+ and is not currently supported on [GitHub Pages](https://pages.github.com/). You can still use the theme with GitHub Pages, you'll just need to install using the old "[repo fork method](https://mmistakes.github.io/minimal-mistakes/docs/installation/)".
|
58
|
-
|
59
|
-
## Quick Start
|
60
|
-
|
61
|
-
Add this line to your Jekyll site's `Gemfile`:
|
62
|
-
|
63
|
-
```ruby
|
64
|
-
gem "minimal-mistakes-jekyll"
|
65
|
-
```
|
66
|
-
|
67
|
-
Add this line to your Jekyll site's `_config.yml` file:
|
68
|
-
|
69
|
-
```yaml
|
70
|
-
theme: minimal-mistakes-jekyll
|
71
|
-
```
|
72
|
-
|
73
|
-
Then run Bundler to install the theme gem and dependencies:
|
74
|
-
|
75
|
-
```bash
|
76
|
-
bundle install
|
77
|
-
```
|
78
|
-
|
79
|
-
To update the theme run `bundle update`.
|
80
|
-
|
81
|
-
---
|
82
|
-
|
83
|
-
## Contributing
|
84
|
-
|
85
|
-
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.
|
86
|
-
|
87
|
-
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.
|
88
|
-
|
89
|
-
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:.
|
90
|
-
|
91
|
-
### Pull Requests
|
92
|
-
|
93
|
-
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.
|
94
|
-
|
95
|
-
Theme documentation and demo pages can be found in the [`/docs`](docs) if submitting improvements, typo corrections, etc.
|
96
|
-
|
97
|
-
## Development
|
98
|
-
|
99
|
-
To set up your environment to develop this theme, run `bundle install`.
|
100
|
-
|
101
|
-
To test the theme, run `bundle exec rake preview` and open your browser at `http://localhost:4000/test/`. This starts a Jekyll server using your theme and the contents of the `test/` directory. As you make modifications to your theme and to the example site, your site will regenerate and you should see the changes in the browser after a refresh.
|
102
|
-
|
103
|
-
---
|
104
|
-
|
105
|
-
## Credits
|
106
|
-
|
107
|
-
### Creator
|
108
|
-
|
109
|
-
**Michael Rose**
|
110
|
-
|
111
|
-
- <https://mademistakes.com>
|
112
|
-
- <https://twitter.com/mmistakes>
|
113
|
-
- <https://github.com/mmistakes>
|
114
|
-
|
115
|
-
### Icons + Demo Images:
|
116
|
-
|
117
|
-
- [The Noun Project](https://thenounproject.com) -- Garrett Knoll, Arthur Shlain, and [tracy tam](https://thenounproject.com/tracytam)
|
118
|
-
- [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
|
119
|
-
- [Unsplash](https://unsplash.com/)
|
120
|
-
|
121
|
-
### Other:
|
122
|
-
|
123
|
-
- [Jekyll](http://jekyllrb.com/)
|
124
|
-
- [jQuery](http://jquery.com/)
|
125
|
-
- [Susy](http://susy.oddbird.net/)
|
126
|
-
- [Breakpoint](http://breakpoint-sass.com/)
|
127
|
-
- [Magnific Popup](http://dimsemenov.com/plugins/magnific-popup/)
|
128
|
-
- [FitVids.JS](http://fitvidsjs.com/)
|
129
|
-
- Greedy Navigation - [lukejacksonn](http://codepen.io/lukejacksonn/pen/PwmwWV)
|
130
|
-
- [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll)
|
131
|
-
|
132
|
-
---
|
133
|
-
|
134
|
-
## License
|
135
|
-
|
136
|
-
The MIT License (MIT)
|
137
|
-
|
138
|
-
Copyright (c) 2016 Michael Rose
|
139
|
-
|
140
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
141
|
-
of this software and associated documentation files (the "Software"), to deal
|
142
|
-
in the Software without restriction, including without limitation the rights
|
143
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
144
|
-
copies of the Software, and to permit persons to whom the Software is
|
145
|
-
furnished to do so, subject to the following conditions:
|
146
|
-
|
147
|
-
The above copyright notice and this permission notice shall be included in all
|
148
|
-
copies or substantial portions of the Software.
|
149
|
-
|
150
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
151
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
152
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
153
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
154
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
155
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
156
|
-
SOFTWARE.
|
1
|
+
# [Minimal Mistakes Jekyll Theme](https://mmistakes.github.io/minimal-mistakes/)
|
2
|
+
|
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
|
+
|
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
|
+
:sparkles: Minimal Mistakes is now available as a [Ruby gem](https://rubygems.org/gems/minimal-mistakes-jekyll). Consult the [Quick-Start Guide](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/) and [this blog post](https://mmistakes.github.io/minimal-mistakes/jekyll/gemified-theme-beta/) to learn how to upgrade.
|
10
|
+
|
11
|
+
[![Minimal Mistakes live preview][2]][1]
|
12
|
+
|
13
|
+
[1]: https://mmistakes.github.io/minimal-mistakes/
|
14
|
+
[2]: screenshot.png (live preview)
|
15
|
+
|
16
|
+
![layout examples](screenshot-layouts.png)
|
17
|
+
|
18
|
+
## Notable Features
|
19
|
+
|
20
|
+
- "Gemified" for easier install/upgrading
|
21
|
+
- Compatible with Jekyll 3.x and GitHub Pages
|
22
|
+
- Support for Jekyll's built-in Sass/SCSS preprocessor
|
23
|
+
- Several responsive layout options (single, archive index, splash, and paginated home page)
|
24
|
+
- SEO optimized with support for [Twitter Cards](https://dev.twitter.com/cards/overview) and [Open Graph](http://ogp.me/) data
|
25
|
+
- 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.
|
26
|
+
- 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).
|
27
|
+
- [Google Analytics](https://www.google.com/analytics/) support.
|
28
|
+
- UI localized text in English (default), Brazilian Portuguese, Chinese, French, German, Italian, Nepali (Nepalese), Spanish, and Turkish
|
29
|
+
|
30
|
+
## Demo Pages
|
31
|
+
|
32
|
+
| Name | Description |
|
33
|
+
| ------------------------------------------- | ----------------------------------------------------- |
|
34
|
+
| [Post with Header Image][header-image-post] | A post with a large header image. |
|
35
|
+
| [HTML Tags and Formatting Post][html-tags-post] | A variety of common markup showing how the theme styles them. |
|
36
|
+
| [Syntax Highlighting Post][syntax-post] | Post displaying highlighted code. |
|
37
|
+
| [Post with a Gallery][gallery-post] | A post showing several images wrapped in `<figure>` elements. |
|
38
|
+
| [Sample Collection Page][sample-collection] | Single page from a collection. |
|
39
|
+
| [Categories Archive][categories-archive] | Posts grouped by category. |
|
40
|
+
| [Tags Archive][tags-archive] | Posts grouped by tags. |
|
41
|
+
|
42
|
+
Additional sample posts are available under [posts archive][year-archive] on the demo site. Source files for these (and the entire demo site) can be found in [`/docs`](docs).
|
43
|
+
|
44
|
+
[header-image-post]: https://mmistakes.github.io/minimal-mistakes/layout-header-image-text-readability/
|
45
|
+
[gallery-post]: https://mmistakes.github.io/minimal-mistakes/post%20formats/post-gallery/
|
46
|
+
[html-tags-post]: https://mmistakes.github.io/minimal-mistakes/markup/markup-html-tags-and-formatting/
|
47
|
+
[syntax-post]: https://mmistakes.github.io/minimal-mistakes/markup-syntax-highlighting/
|
48
|
+
[sample-collection]: https://mmistakes.github.io/minimal-mistakes/recipes/chocolate-chip-cookies/
|
49
|
+
[categories-archive]: https://mmistakes.github.io/minimal-mistakes/categories/
|
50
|
+
[tags-archive]: https://mmistakes.github.io/minimal-mistakes/tags/
|
51
|
+
[year-archive]: https://mmistakes.github.io/minimal-mistakes/year-archive/
|
52
|
+
|
53
|
+
## Usage
|
54
|
+
|
55
|
+
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/).
|
56
|
+
|
57
|
+
**Note:** Gem version of the theme requires Jekyll v3.3+ and is not currently supported on [GitHub Pages](https://pages.github.com/). You can still use the theme with GitHub Pages, you'll just need to install using the old "[repo fork method](https://mmistakes.github.io/minimal-mistakes/docs/installation/)".
|
58
|
+
|
59
|
+
## Quick Start
|
60
|
+
|
61
|
+
Add this line to your Jekyll site's `Gemfile`:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
gem "minimal-mistakes-jekyll"
|
65
|
+
```
|
66
|
+
|
67
|
+
Add this line to your Jekyll site's `_config.yml` file:
|
68
|
+
|
69
|
+
```yaml
|
70
|
+
theme: minimal-mistakes-jekyll
|
71
|
+
```
|
72
|
+
|
73
|
+
Then run Bundler to install the theme gem and dependencies:
|
74
|
+
|
75
|
+
```bash
|
76
|
+
bundle install
|
77
|
+
```
|
78
|
+
|
79
|
+
To update the theme run `bundle update`.
|
80
|
+
|
81
|
+
---
|
82
|
+
|
83
|
+
## Contributing
|
84
|
+
|
85
|
+
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.
|
86
|
+
|
87
|
+
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.
|
88
|
+
|
89
|
+
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:.
|
90
|
+
|
91
|
+
### Pull Requests
|
92
|
+
|
93
|
+
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.
|
94
|
+
|
95
|
+
Theme documentation and demo pages can be found in the [`/docs`](docs) if submitting improvements, typo corrections, etc.
|
96
|
+
|
97
|
+
## Development
|
98
|
+
|
99
|
+
To set up your environment to develop this theme, run `bundle install`.
|
100
|
+
|
101
|
+
To test the theme, run `bundle exec rake preview` and open your browser at `http://localhost:4000/test/`. This starts a Jekyll server using your theme and the contents of the `test/` directory. As you make modifications to your theme and to the example site, your site will regenerate and you should see the changes in the browser after a refresh.
|
102
|
+
|
103
|
+
---
|
104
|
+
|
105
|
+
## Credits
|
106
|
+
|
107
|
+
### Creator
|
108
|
+
|
109
|
+
**Michael Rose**
|
110
|
+
|
111
|
+
- <https://mademistakes.com>
|
112
|
+
- <https://twitter.com/mmistakes>
|
113
|
+
- <https://github.com/mmistakes>
|
114
|
+
|
115
|
+
### Icons + Demo Images:
|
116
|
+
|
117
|
+
- [The Noun Project](https://thenounproject.com) -- Garrett Knoll, Arthur Shlain, and [tracy tam](https://thenounproject.com/tracytam)
|
118
|
+
- [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
|
119
|
+
- [Unsplash](https://unsplash.com/)
|
120
|
+
|
121
|
+
### Other:
|
122
|
+
|
123
|
+
- [Jekyll](http://jekyllrb.com/)
|
124
|
+
- [jQuery](http://jquery.com/)
|
125
|
+
- [Susy](http://susy.oddbird.net/)
|
126
|
+
- [Breakpoint](http://breakpoint-sass.com/)
|
127
|
+
- [Magnific Popup](http://dimsemenov.com/plugins/magnific-popup/)
|
128
|
+
- [FitVids.JS](http://fitvidsjs.com/)
|
129
|
+
- Greedy Navigation - [lukejacksonn](http://codepen.io/lukejacksonn/pen/PwmwWV)
|
130
|
+
- [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll)
|
131
|
+
|
132
|
+
---
|
133
|
+
|
134
|
+
## License
|
135
|
+
|
136
|
+
The MIT License (MIT)
|
137
|
+
|
138
|
+
Copyright (c) 2016 Michael Rose
|
139
|
+
|
140
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
141
|
+
of this software and associated documentation files (the "Software"), to deal
|
142
|
+
in the Software without restriction, including without limitation the rights
|
143
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
144
|
+
copies of the Software, and to permit persons to whom the Software is
|
145
|
+
furnished to do so, subject to the following conditions:
|
146
|
+
|
147
|
+
The above copyright notice and this permission notice shall be included in all
|
148
|
+
copies or substantial portions of the Software.
|
149
|
+
|
150
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
151
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
152
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
153
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
154
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
155
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
156
|
+
SOFTWARE.
|
@@ -2,8 +2,8 @@
|
|
2
2
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
3
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
4
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
-
})(window,document,'script','
|
5
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
6
|
|
7
7
|
ga('create', '{{ site.analytics.google.tracking_id }}', 'auto');
|
8
8
|
ga('send', 'pageview');
|
9
|
-
</script>
|
9
|
+
</script>
|
data/_includes/page__hero.html
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
{% if page.header.overlay_color or page.header.overlay_image %}
|
29
29
|
<div class="wrapper">
|
30
30
|
<h1 class="page__title" itemprop="headline">
|
31
|
-
{% if paginator %}
|
31
|
+
{% if paginator and site.paginate_show_page_num %}
|
32
32
|
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
|
33
33
|
{% else %}
|
34
34
|
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
|
@@ -50,4 +50,4 @@
|
|
50
50
|
{% if page.header.caption %}
|
51
51
|
<span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
|
52
52
|
{% endif %}
|
53
|
-
</div>
|
53
|
+
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
{% capture video_id %}{{ page.header.video.id }}{% endcapture %}
|
2
|
-
{% capture video_provider %}{{ page.header.video.provider }}{% endcapture %}
|
3
|
-
|
4
|
-
{% include video id=video_id provider=video_provider %}
|
1
|
+
{% capture video_id %}{{ page.header.video.id }}{% endcapture %}
|
2
|
+
{% capture video_provider %}{{ page.header.video.provider }}{% endcapture %}
|
3
|
+
|
4
|
+
{% include video id=video_id provider=video_provider %}
|
data/_includes/paginator.html
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
{% if paginator.total_pages > 1 %}
|
2
2
|
<nav class="pagination">
|
3
|
+
{% assign first_page_path = site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | absolute_url %}
|
3
4
|
<ul>
|
4
5
|
{% comment %} Link for previous page {% endcomment %}
|
5
6
|
{% if paginator.previous_page %}
|
6
7
|
{% if paginator.previous_page == 1 %}
|
7
|
-
<li><a href="{{
|
8
|
+
<li><a href="{{ first_page_path }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
|
8
9
|
{% else %}
|
9
|
-
<li><a href="{{
|
10
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.previous_page | replace: '//', '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a></li>
|
10
11
|
{% endif %}
|
11
12
|
{% else %}
|
12
|
-
|
13
|
+
<li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</span></a></li>
|
13
14
|
{% endif %}
|
14
15
|
|
15
16
|
{% comment %} First page {% endcomment %}
|
16
17
|
{% if paginator.page == 1 %}
|
17
18
|
<li><a href="#" class="disabled current">1</a></li>
|
18
19
|
{% else %}
|
19
|
-
<li><a href="{{
|
20
|
+
<li><a href="{{ first_page_path }}">1</a></li>
|
20
21
|
{% endif %}
|
21
22
|
|
22
23
|
{% assign page_start = 2 %}
|
@@ -34,7 +35,7 @@
|
|
34
35
|
|
35
36
|
{% for index in (page_start..page_end) %}
|
36
37
|
{% if index == paginator.page %}
|
37
|
-
<li><a href="{{
|
38
|
+
<li><a href="{{ site.paginate_path | replace: ':num', index | replace: '//', '/' | absolute_url }}" class="disabled current">{{ index }}</a></li>
|
38
39
|
{% else %}
|
39
40
|
{% comment %} Distance from current page and this link {% endcomment %}
|
40
41
|
{% assign dist = paginator.page | minus: index %}
|
@@ -42,7 +43,7 @@
|
|
42
43
|
{% comment %} Distance must be a positive value {% endcomment %}
|
43
44
|
{% assign dist = 0 | minus: dist %}
|
44
45
|
{% endif %}
|
45
|
-
<li><a href="{{
|
46
|
+
<li><a href="{{ site.paginate_path | replace: ':num', index | absolute_url }}">{{ index }}</a></li>
|
46
47
|
{% endif %}
|
47
48
|
{% endfor %}
|
48
49
|
|
@@ -54,15 +55,15 @@
|
|
54
55
|
{% if paginator.page == paginator.total_pages %}
|
55
56
|
<li><a href="#" class="disabled current">{{ paginator.page }}</a></li>
|
56
57
|
{% else %}
|
57
|
-
<li><a href="{{
|
58
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.total_pages | replace: '//', '/' | absolute_url }}">{{ paginator.total_pages }}</a></li>
|
58
59
|
{% endif %}
|
59
60
|
|
60
61
|
{% comment %} Link next page {% endcomment %}
|
61
62
|
{% if paginator.next_page %}
|
62
|
-
<li><a href="{{
|
63
|
+
<li><a href="{{ site.paginate_path | replace: ':num', paginator.next_page | replace: '//', '/' | absolute_url }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a></li></a></li>
|
63
64
|
{% else %}
|
64
65
|
<li><a href="#" class="disabled"><span aria-hidden="true">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</span></a></li>
|
65
66
|
{% endif %}
|
66
67
|
</ul>
|
67
68
|
</nav>
|
68
|
-
{% endif %}
|
69
|
+
{% endif %}
|
data/_layouts/archive.html
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
6
|
-
{% include page__hero.html %}
|
7
|
-
{% elsif page.header.video.id and page.header.video.provider %}
|
8
|
-
{% include page__hero_video.html %}
|
9
|
-
{% endif %}
|
10
|
-
|
11
|
-
{% if page.url != "/" and site.breadcrumbs %}
|
12
|
-
{% unless paginator %}
|
13
|
-
{% include breadcrumbs.html %}
|
14
|
-
{% endunless %}
|
15
|
-
{% endif %}
|
16
|
-
|
17
|
-
<div id="main" role="main">
|
18
|
-
{% include sidebar.html %}
|
19
|
-
|
20
|
-
<div class="archive">
|
21
|
-
{% unless page.header.overlay_color or page.header.overlay_image %}
|
22
|
-
<h1 class="page__title">{{ page.title }}</h1>
|
23
|
-
{% endunless %}
|
24
|
-
{{ content }}
|
25
|
-
</div>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
6
|
+
{% include page__hero.html %}
|
7
|
+
{% elsif page.header.video.id and page.header.video.provider %}
|
8
|
+
{% include page__hero_video.html %}
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% if page.url != "/" and site.breadcrumbs %}
|
12
|
+
{% unless paginator %}
|
13
|
+
{% include breadcrumbs.html %}
|
14
|
+
{% endunless %}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<div id="main" role="main">
|
18
|
+
{% include sidebar.html %}
|
19
|
+
|
20
|
+
<div class="archive">
|
21
|
+
{% unless page.header.overlay_color or page.header.overlay_image %}
|
22
|
+
<h1 class="page__title">{{ page.title }}</h1>
|
23
|
+
{% endunless %}
|
24
|
+
{{ content }}
|
25
|
+
</div>
|
26
26
|
</div>
|