From 218545fe676f1c00d6880e75e254447bd5b5b465 Mon Sep 17 00:00:00 2001 From: Tyler Duzan Date: Sun, 8 Dec 2024 21:35:22 -0700 Subject: [PATCH 1/4] Switch to .Site.Params.Social aligned with deprecation notice. --- layouts/partials/social.html | 54 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 90bf0478..85b60525 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -10,31 +10,31 @@ - {{ with .Site.Social.twitter }} + {{ with .Site.Params.Social.twitter }}
  • Twitter
  • {{ end }} - {{ with .Site.Social.gnusocial }} + {{ with .Site.Params.Social.gnusocial }}
  • GNU social
  • {{ end }} - {{ with .Site.Social.facebook }} + {{ with .Site.Params.Social.facebook }}
  • Facebook
  • {{ end }} - {{ with .Site.Social.weibo }} + {{ with .Site.Params.Social.weibo }}
  • Weibo
  • {{ end }} - {{ with .Site.Social.tumblr }} + {{ with .Site.Params.Social.tumblr }}
  • Tumblr
  • @@ -42,49 +42,49 @@ - {{ with .Site.Social.instagram }} + {{ with .Site.Params.Social.instagram }}
  • Instagram
  • {{ end }} - {{ with .Site.Social.flickr }} + {{ with .Site.Params.Social.flickr }}
  • Flickr
  • {{ end }} - {{ with .Site.Social.photo500px }} + {{ with .Site.Params.Social.photo500px }}
  • 500px
  • {{ end }} - {{ with .Site.Social.pinterest }} + {{ with .Site.Params.Social.pinterest }}
  • Pinterest
  • {{ end }} - {{ with .Site.Social.youtube }} + {{ with .Site.Params.Social.youtube }}
  • YouTube
  • {{ end }} - {{ with .Site.Social.vimeo }} + {{ with .Site.Params.Social.vimeo }}
  • Vimeo
  • {{ end }} - {{ with .Site.Social.vine }} + {{ with .Site.Params.Social.vine }}
  • Vine
  • {{ end }} - {{ with .Site.Social.slideshare }} + {{ with .Site.Params.Social.slideshare }}
  • SlideShare
  • @@ -92,13 +92,13 @@ - {{ with .Site.Social.linkedin }} + {{ with .Site.Params.Social.linkedin }}
  • LinkedIn
  • {{ end }} - {{ with .Site.Social.xing }} + {{ with .Site.Params.Social.xing }}
  • Xing
  • @@ -106,13 +106,13 @@ - {{ with .Site.Social.reddit }} + {{ with .Site.Params.Social.reddit }}
  • Reddit
  • {{ end }} - {{ with .Site.Social.hackernews }} + {{ with .Site.Params.Social.hackernews }}
  • Hacker News
  • @@ -120,31 +120,31 @@ - {{ with .Site.Social.github }} + {{ with .Site.Params.Social.github }}
  • GitHub
  • {{ end }} - {{ with .Site.Social.gitlab }} + {{ with .Site.Params.Social.gitlab }}
  • GitLab
  • {{ end }} - {{ with .Site.Social.bitbucket }} + {{ with .Site.Params.Social.bitbucket }}
  • Bitbucket
  • {{ end }} - {{ with .Site.Social.stackoverflow }} + {{ with .Site.Params.Social.stackoverflow }}
  • Stack Overflow
  • {{ end }} - {{ with .Site.Social.serverfault }} + {{ with .Site.Params.Social.serverfault }}
  • Server Fault
  • @@ -152,13 +152,13 @@ - {{ with .Site.Social.steam }} + {{ with .Site.Params.Social.steam }}
  • Steam
  • {{ end }} - {{ with .Site.Social.mobygames }} + {{ with .Site.Params.Social.mobygames }}
  • MobyGames
  • @@ -166,13 +166,13 @@ - {{ with .Site.Social.lastfm }} + {{ with .Site.Params.Social.lastfm }}
  • Last.fm
  • {{ end }} - {{ with .Site.Social.discogs }} + {{ with .Site.Params.Social.discogs }}
  • Discogs
  • @@ -180,7 +180,7 @@ - {{ with .Site.Social.keybase }} + {{ with .Site.Params.Social.keybase }}
  • Keybase
  • From bbfa9822e5e4e5c69e3cc56a054cb5d69a808958 Mon Sep 17 00:00:00 2001 From: Tyler Duzan Date: Sun, 8 Dec 2024 21:58:54 -0700 Subject: [PATCH 2/4] Page.NextPage and Page.PrevPage are deprecated. --- layouts/partials/prev_next_post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/prev_next_post.html b/layouts/partials/prev_next_post.html index e82380b3..dfc41c43 100644 --- a/layouts/partials/prev_next_post.html +++ b/layouts/partials/prev_next_post.html @@ -1,4 +1,4 @@ -{{ if or (.NextPage) (.PrevPage) }} +{{ if or (.Next) (.Prev) }}
    {{ if .PrevInSection }} From 2ea9e4886e5e2700a14c059f9e20b255ffd51811 Mon Sep 17 00:00:00 2001 From: Tyler Duzan Date: Sun, 8 Dec 2024 22:04:45 -0700 Subject: [PATCH 3/4] fix references to deprecated use of paginate --- README.md | 4 +++- exampleSite/config.toml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd5c195b..3bb65a5c 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,9 @@ author = "Your name" # Shown in the side menu copyright = "© 2016. All rights reserved." canonifyurls = true -paginate = 10 + +[pagination] +pagerSize = 10 [indexes] tag = "tags" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d366abfe..0d95404b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,7 +5,9 @@ theme = "blackburn" author = "Yoshiharu Yamashita" copyright = "© 2016. All rights reserved." canonifyurls = true -paginate = 10 + +[pagination] +pagerSize = 10 [indexes] tag = "tags" From a2a46073b2469e6a6879be959d6d75ea97bb4899 Mon Sep 17 00:00:00 2001 From: Tyler Duzan Date: Sun, 8 Dec 2024 22:33:19 -0700 Subject: [PATCH 4/4] fixup of the docs and examples --- README.md | 2 +- exampleSite/config.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3bb65a5c..7e239355 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ pagerSize = 10 weight = 4 url = "/contact/" -[social] +[params.social] # Link your social networking accounts to the side menu # by entering your username or ID. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0d95404b..1f162838 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -49,7 +49,7 @@ pagerSize = 10 weight = 4 url = "/contact/" -[social] +[params.social] # Link your social networking accouns to the side menu # by entering your username or ID. twitter="*"