Skip to content

Commit

Permalink
[config](blog): pagination-v2(take defaults for lang, tags) (#671)
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com>
  • Loading branch information
RalphHightower authored Jan 12, 2025
1 parent 7bbfea9 commit e8a7bd0
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,68 +103,56 @@ ai_related_posts:
openai_api_key: {{ secrets.OPEN_AI_KEY }}
fetch_enabled: prod

# Optional. The default date format is used if none is specified in the tag.
last-modified-at:
date-format: "%F %r"

optional_front_matter:
remove_originals: true
enabled: true

############################################################
# Site configuration for the Jekyll 3 Pagination Gem
# The values here represent the defaults if nothing is set
pagination:

pagination:
# Site-wide kill switch, disabled here it doesn't run at all
enabled: true

# Set to 'true' to enable pagination debugging. This can be enabled in the site config or only for individual pagination pages
debug: false

# The default document collection to paginate if nothing is specified ('posts' is default)
collection: 'posts'

# How many objects per paginated page, used to be `paginate` (default: 0, means all)
per_page: 10

# The permalink structure for the paginated pages (this can be any level deep)
permalink: '/page/:num/' # Pages are index.html inside this folder (default)
#permalink: '/page/:num.html' # Pages are simple html files
#permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style.

# Optional the title format for the paginated pages (supports :title for original page title, :num for pagination page number, :max for total number of pages)
title: ':title - page :num'

# Limit how many pagenated pages to create (default: 0, means all)
limit: 0

# Optional, defines the field that the posts should be sorted on (omit to default to 'date')
sort_field: 'date'

# Optional, sorts the posts in reverse order (omit to default decending or sort_reverse: true)
sort_reverse: true

# Optional, the default category to use, omit or just leave this as 'posts' to get a backwards-compatible behavior (all posts)
category: 'posts'

# category: 'posts'
# Optional, the default tag to use, omit to disable
tag: ''

# tag: ''
# Optional, the default locale to use, omit to disable (depends on a field 'locale' to be specified in the posts,
# in reality this can be any value, suggested are the Microsoft locale-codes (e.g. en_US, en_GB) or simply the ISO-639 language code )
locale: ''

# locale: ''
# Optional,omit or set both before and after to zero to disable.
# Controls how the pagination trail for the paginated pages look like.
trail:
before: 2
after: 2

# Optional, the default file extension for generated pages (e.g html, json, xml).
# Internally this is set to html by default
extension: html

# Optional, the default name of the index file for generated pages (e.g. 'index.html')
# Without file extension
indexpage: 'index'

############################################################

readme_index:
Expand All @@ -180,10 +168,6 @@ titles_from_headings:
strip_title: true
collections: true

# Optional. The default date format is used if none is specified in the tag.
last-modified-at:
date-format: "%F %r"

exclude:
- .ai_related_posts_cache.sqlite3
- .ai_related_posts_cache.sqlite3-journal

0 comments on commit e8a7bd0

Please sign in to comment.