Compare commits

..

No commits in common. "1d12a76549445b767fa02902caf30cec7ceaecf9" and "e7b875a1fabbd6f5ca13b76cca994b606b1da593" have entirely different histories.

9 changed files with 18 additions and 41 deletions

View file

@ -16,7 +16,7 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v3 uses: peaceiris/actions-hugo@v2
with: with:
hugo-version: 'latest' hugo-version: 'latest'
extended: true extended: true
@ -25,7 +25,7 @@ jobs:
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://clente.github.io/hugo-bearcub/ run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://clente.github.io/hugo-bearcub/
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v4 uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -115,10 +115,6 @@ already implemented:
- Reply by email: if you supply an email address, the theme creates a "Reply to - 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 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)). 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 - `absfigure` shortcode: a shortcut to use the `figure` shortcode that also
converts relative URLs into absolute URLs by using the `absURL` function. 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 - Single-use CSS (EXPERIMENTAL): you can add some styles to a single page by

View file

@ -75,7 +75,6 @@ td {
img { img {
max-width: 100%; max-width: 100%;
height: auto;
} }
code { code {
@ -90,7 +89,6 @@ pre code {
white-space: pre-wrap; white-space: pre-wrap;
font-size: 14px; font-size: 14px;
overflow-x: auto; overflow-x: auto;
text-wrap: nowrap;
} }
blockquote { blockquote {

View file

@ -23,7 +23,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Twitter Simple Shortcode ## Twitter Simple Shortcode
{{< x user="DesignReviewed" id="1085870671291310081" >}} {{< tweet user="DesignReviewed" id="1085870671291310081" >}}
<br> <br>

View file

@ -82,8 +82,7 @@ enableRobotsTXT = true
facebook_admin = "0000000000" # Facebook Page Admin ID facebook_admin = "0000000000" # Facebook Page Admin ID
# Author metadata. This is mostly used for the RSS feed of your site, but the # 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" # email is also added to the footer of each post
# link by using a `hideReply` param in front matter.
[params.author] [params.author]
name = "John Doe" # Your name as shown in the RSS feed metadata 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 email = "me@example.com" # Added to the footer so readers can reply to posts

View file

@ -8,7 +8,7 @@
other = "Antwort auf " other = "Antwort auf "
[email-reply] [email-reply]
other = "Auf diesen Beitrag per Email antworten " other = "Diesen Beitrag per Email kommentieren "
[skip-link] [skip-link]
other = "Zum Hauptinhalt" other = "Überspringen zum Hauptinhalt"

View file

@ -1,14 +0,0 @@
[filtering-for]
other = "태그 검색:"
[no-posts]
other = "아직 작성된 게시물이 없습니다!"
[email-subject]
other = "댓글: "
[email-reply]
other = "이메일로 댓글 달기"
[skip-link]
other = "본문으로 바로 가기"

View file

@ -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ç"

View file

@ -74,11 +74,17 @@
{{ end }}{{ end }} {{ end }}{{ end }}
{{- end }} {{- end }}
{{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}}
{{- $facebookAdmin := "" }} {{- $facebookAdmin := "" }}
{{- with site.Params.social }} {{- with site.Params.social }}
{{- if reflect.IsMap . }} {{- if reflect.IsMap . }}
{{- $facebookAdmin = .facebook_admin }} {{- $facebookAdmin = .facebook_admin }}
{{- end }} {{- 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 }} {{- end }}
{{- /* Facebook Page Admin ID for Domain Insights */}} {{- /* Facebook Page Admin ID for Domain Insights */}}
@ -91,11 +97,17 @@
<meta name="twitter:title" content="{{ .Title }}"/> <meta name="twitter:title" content="{{ .Title }}"/>
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/> <meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
{{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}}
{{- $twitterSite := "" }} {{- $twitterSite := "" }}
{{- with site.Params.social }} {{- with site.Params.social }}
{{- if reflect.IsMap . }} {{- if reflect.IsMap . }}
{{- $twitterSite = .twitter }} {{- $twitterSite = .twitter }}
{{- end }} {{- end }}
{{- else }}
{{- with site.Social.twitter }}
{{- $twitterSite = . }}
{{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }}
{{- end }}
{{- end }} {{- end }}
{{- with $twitterSite }} {{- with $twitterSite }}