You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## Unreleased
4
4
5
+
### Enhancements
6
+
7
+
- Add support for [Jekyll Paginate V2](https://github.com/sverrirs/jekyll-paginate-v2) 🎉 [#2636](https://github.com/mmistakes/minimal-mistakes/pull/2636)
8
+
5
9
### Documentation
6
10
7
11
- Rewrite skin previews on `05-configuration.md` in Liquid template.
Copy file name to clipboardExpand all lines: docs/_docs/05-configuration.md
+52-19
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,7 @@ defaults:
276
276
277
277
To disable reading time for a post, add `read_time: false` to its YAML Front Matter to override what was set in `_config.yml`.
278
278
279
-
`words_per_minute`can also be adjusted per-page basis by adding to its YAML Front Matter. This is useful for sites with multi-lingual content where you'd like specify a different value from the site config.
279
+
`words_per_minute`can also be adjusted on a per-page basis by adding to its YAML Front Matter. This is useful for sites with multi-lingual content where you'd like specify a different value from the site config.
280
280
281
281
```yaml
282
282
words_per_minute: 250
@@ -327,7 +327,7 @@ defaults:
327
327
328
328
If you add `comments: false` to a post's YAML Front Matter it will override the default and disable comments for just that post.
329
329
330
-
**Note:** Comments are disabled by default in `development`. To enable when testing/building locally be sure to set
330
+
**Note:** Comments are disabled in `development`. To enable when testing/building locally be sure to set
331
331
`JEKYLL_ENV=production`to [force the environment](http://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time) to production.
332
332
{: .notice--info}
333
333
@@ -760,7 +760,7 @@ twitter:
760
760
761
761
And if I assign `@mmistakes` as an author account it will appear in the Twitter Card along with `@mmistakes-theme`, attributed as a creator of the page being shared.
762
762
763
-
**Note**: You need to validate cards are working and have Twitter [approve Player Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/player-card) before they will begin showing up.
763
+
**Note**: You need to validate cards are working and have Twitter [approve Player Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/player-card) before they begin showing up.
764
764
{: .notice--warning}
765
765
766
766
##### Facebook Open Graph
@@ -791,22 +791,25 @@ For pages that don't have a `header.image` assigned in their YAML Front Matter,
caption="Shared page on Facebook with header image assigned."
812
+
%}
810
813
811
814
##### Include your social profile in search results
812
815
@@ -846,7 +849,7 @@ analytics:
846
849
847
850
To use another provider not included with the theme set `provider: "custom"` then add their embed code to `_includes/analytics-providers/custom.html`.
848
851
849
-
**Note:** Analytics are disabled by default in `development`. To enable when testing/building locally be sure to set
852
+
**Note:** Analytics are disabled in `development`. To enable when testing/building locally be sure to set
850
853
`JEKYLL_ENV=production`to [force the environment](http://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time) to production.
851
854
{: .notice--info}
852
855
@@ -933,7 +936,7 @@ Nothing out of the ordinary here. `include` and `exclude` may be the only things
933
936
934
937
## Conversion and Markdown processing
935
938
936
-
Again nothing out of the ordinary here as the theme adheres to the defaults used by GitHub Pages. [**Kramdown**](http://kramdown.gettalong.org/) for Markdown conversion, [**Rouge**](http://rouge.jneen.net/) syntax highlighting, and incremental building disabled. Change them if you need to.
939
+
Again nothing out of the ordinary here as the theme adheres to the defaults used by GitHub Pages. [**Kramdown**](http://kramdown.gettalong.org/) for Markdown conversion, [**Rouge**](https://rouge.jneen.net/) syntax highlighting, and incremental building disabled. Change them if you need to.
937
940
938
941
## Front Matter Defaults
939
942
@@ -1005,16 +1008,46 @@ The paginator only works on files with name `index.html`. To use pagination in a
1005
1008
paginate_path: /recent/page:num/
1006
1009
```
1007
1010
1008
-
**Please note:** When using Jekyll's default [pagination plugin](https://jekyllrb.com/docs/pagination/) `paginator.posts` can only be called once. If you're looking for something more powerful that can paginate category, tag, and collection pages, [**jekyll-paginate-v2**](https://github.com/sverrirs/jekyll-paginate-v2) is the way to go.
1011
+
**Please note:** When using Jekyll's default [pagination plugin](https://jekyllrb.com/docs/pagination/) `paginator.posts` can only be called once. If you're looking for something more powerful that can paginate category, tag, and collection pages, [**jekyll-paginate-v2**][jekyll-paginate-v2] is the way to go.
Jekyll Paginate V2 is not available on GitHub Pages. You must build your site locally or with a CI service like [GitHub Actions][gh-pages-actions].
1018
+
**Note:** Jekyll Paginate V2 is **not** available on GitHub Pages. You must build your site locally or with a CI service like [GitHub Actions][gh-pages-actions].
If you opt to use [Jekyll Paginate V2][jekyll-paginate-v2], remove `paginate` from `_config.yml` and add the following configuration to your `_config.yml`:
1024
+
1025
+
```yaml
1026
+
# Pagination with jekyll-paginate-v2
1027
+
# See https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration
1028
+
# for configuration details
1029
+
pagination:
1030
+
enabled: true
1031
+
debug: false
1032
+
collection: 'posts'
1033
+
per_page: 10
1034
+
permalink: '/page/:num/'
1035
+
title: ':title - page :num'
1036
+
limit: 0
1037
+
sort_field: 'date'
1038
+
sort_reverse: true
1039
+
category: 'posts'
1040
+
tag: ''
1041
+
locale: ''
1042
+
trail:
1043
+
before: 2
1044
+
after: 2
1045
+
```
1046
+
1047
+
Minimal Mistakes will automatically pick up Jekyll Paginate V2 mode if it detects the `pagination.enabled` setting in `_config.yml`.
1048
+
1049
+
While the plugin allows you to change the `indexpage` and the `extension` (which default to `index` and `html` respectively), Minimal Mistakes do not support non-default values for these settings, so you should keep them as-is.
1050
+
1018
1051
### Timezone
1019
1052
1020
1053
This sets the timezone environment variable, which Ruby uses to handle time and date creation and manipulation. Any entry from the [IANA Time Zone Database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) is valid. The default is the local time zone, as set by your operating system.
Copy file name to clipboardExpand all lines: docs/_docs/18-history.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ permalink: "/docs/history/"
5
5
excerpt: Change log of enhancements and bug fixes made to the theme.
6
6
sidebar:
7
7
nav: docs
8
-
last_modified_at: '2024-05-04T23:32:02+08:00'
8
+
last_modified_at: '2024-05-05T00:00:06+08:00'
9
9
toc: false
10
10
---
11
11
@@ -17,6 +17,10 @@ toc: false
17
17
{% raw %}
18
18
## Unreleased
19
19
20
+
### Enhancements
21
+
22
+
- Add support for [Jekyll Paginate V2](https://github.com/sverrirs/jekyll-paginate-v2) 🎉 [#2636](https://github.com/mmistakes/minimal-mistakes/pull/2636)
23
+
20
24
### Documentation
21
25
22
26
- Rewrite skin previews on `05-configuration.md` in Liquid template.
0 commit comments