diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 9f07252..f7f133d 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -16,7 +16,7 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
- uses: peaceiris/actions-hugo@v3
+ uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
@@ -25,7 +25,7 @@ jobs:
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://clente.github.io/hugo-bearcub/
- name: Deploy
- uses: peaceiris/actions-gh-pages@v4
+ uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/README.md b/README.md
index a084e50..3c75b1e 100644
--- a/README.md
+++ b/README.md
@@ -115,10 +115,6 @@ already implemented:
- Reply by email: if you supply an email address, the theme creates a "Reply to
this post by email" button at the end of every post (see Kev Quirk's [original
implementation](https://kevquirk.com/adding-the-post-title-to-my-reply-by-email-button)).
- This button can be suppressed on a case-by-case by setting `hideReply: true`
- in a post's [front matter](https://gohugo.io/content-management/front-matter/)
- (see [PR #18](https://github.com/clente/hugo-bearcub/pull/18) by
- [@chrsmutti](https://github.com/chrsmutti)).
- `absfigure` shortcode: a shortcut to use the `figure` shortcode that also
converts relative URLs into absolute URLs by using the `absURL` function.
- Single-use CSS (EXPERIMENTAL): you can add some styles to a single page by
diff --git a/assets/original.css b/assets/original.css
index 480cc6a..3492237 100644
--- a/assets/original.css
+++ b/assets/original.css
@@ -75,7 +75,6 @@ td {
img {
max-width: 100%;
- height: auto;
}
code {
@@ -90,7 +89,6 @@ pre code {
white-space: pre-wrap;
font-size: 14px;
overflow-x: auto;
- text-wrap: nowrap;
}
blockquote {
diff --git a/exampleSite/content/blog/rich-content.md b/exampleSite/content/blog/rich-content.md
index 3c406af..bf7e101 100644
--- a/exampleSite/content/blog/rich-content.md
+++ b/exampleSite/content/blog/rich-content.md
@@ -23,7 +23,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Twitter Simple Shortcode
-{{< x user="DesignReviewed" id="1085870671291310081" >}}
+{{< tweet user="DesignReviewed" id="1085870671291310081" >}}
diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml
index 04690c0..c037e60 100644
--- a/exampleSite/hugo.toml
+++ b/exampleSite/hugo.toml
@@ -82,8 +82,7 @@ enableRobotsTXT = true
facebook_admin = "0000000000" # Facebook Page Admin ID
# Author metadata. This is mostly used for the RSS feed of your site, but the
- # email is also added to the footer of each post. You can hide the "reply to"
- # link by using a `hideReply` param in front matter.
+ # email is also added to the footer of each post
[params.author]
name = "John Doe" # Your name as shown in the RSS feed metadata
email = "me@example.com" # Added to the footer so readers can reply to posts
diff --git a/i18n/de.toml b/i18n/de.toml
index c8216d1..fb9e866 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -8,7 +8,7 @@
other = "Antwort auf "
[email-reply]
- other = "Auf diesen Beitrag per Email antworten "
+ other = "Diesen Beitrag per Email kommentieren "
[skip-link]
- other = "Zum Hauptinhalt"
+ other = "Überspringen zum Hauptinhalt"
\ No newline at end of file
diff --git a/i18n/ko.toml b/i18n/ko.toml
deleted file mode 100644
index 35ac56e..0000000
--- a/i18n/ko.toml
+++ /dev/null
@@ -1,14 +0,0 @@
-[filtering-for]
- other = "태그 검색:"
-
-[no-posts]
- other = "아직 작성된 게시물이 없습니다!"
-
-[email-subject]
- other = "댓글: "
-
-[email-reply]
- other = "이메일로 댓글 달기"
-
-[skip-link]
- other = "본문으로 바로 가기"
diff --git a/i18n/tr.toml b/i18n/tr.toml
deleted file mode 100644
index a761585..0000000
--- a/i18n/tr.toml
+++ /dev/null
@@ -1,14 +0,0 @@
-[filtering-for]
- other = "Filtrelenilen etiket"
-
-[no-posts]
- other = "Henüz gönderi yok"
-
-[email-subject]
- other = "Şu gönderiye yanıt: "
-
-[email-reply]
- other = "Bu gönderiye eposta ile yanıt ver"
-
-[skip-link]
- other = "Ana içeriğe geç"
diff --git a/layouts/partials/social_card.html b/layouts/partials/social_card.html
index 4f89b4f..d171da0 100644
--- a/layouts/partials/social_card.html
+++ b/layouts/partials/social_card.html
@@ -74,11 +74,17 @@
{{ end }}{{ end }}
{{- end }}
+{{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}}
{{- $facebookAdmin := "" }}
{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- $facebookAdmin = .facebook_admin }}
{{- end }}
+{{- else }}
+ {{- with site.Social.facebook_admin }}
+ {{- $facebookAdmin = . }}
+ {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }}
+ {{- end }}
{{- end }}
{{- /* Facebook Page Admin ID for Domain Insights */}}
@@ -91,11 +97,17 @@
+{{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}}
{{- $twitterSite := "" }}
{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- $twitterSite = .twitter }}
{{- end }}
+{{- else }}
+ {{- with site.Social.twitter }}
+ {{- $twitterSite = . }}
+ {{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }}
+ {{- end }}
{{- end }}
{{- with $twitterSite }}