Compare commits

...

10 commits

Author SHA1 Message Date
Yiğit Altınay
1d12a76549
Add Turkish support (#33)
Some checks failed
github pages / deploy (push) Failing after 10s
This commit adds Turkish support.
2025-08-22 16:24:12 -03:00
Ian
467c7b2925
Removed deprecated site.social use (#41) 2025-06-20 15:41:29 -03:00
Jaedeok Kim
7d1bd7911a
Add Korean Translations (#35) 2025-05-15 16:31:38 -03:00
Mirai Kumiko
c3286b77b8
Update rich-content.md (#34)
WARN  The "twitter", "tweet", and "twitter_simple" shortcodes were deprecated in v0.142.0 and will be removed in a future release. Please use the "x" shortcode instead.
2025-01-19 11:48:33 -03:00
Caio Lente
aa6a8b4f90
Update action versions 2024-12-17 14:31:51 -03:00
Tom Larrow
4efb706c06
fix stretched images (#28) 2024-12-17 14:28:38 -03:00
handmeatowel
7cc146b13f
Update de.toml translations (#23)
[skip-link]: translation is much improved by this
[email-reply]: since it's not a comment (current translation) but a reply via email this updated translation is also clearer and the respective translation to the English original
2024-09-03 11:52:22 -03:00
Caio Lente
09e674a9d1
Merge branch 'main' of github.com:clente/hugo-bearcub 2024-06-21 16:28:38 -03:00
deafgod
e174badc98
FIX - wrapping code block lines in original.css (#19)
The lines of the code blocks of the HTML get wrapped on small/mobile screens.
Adding this line make the scrolling overflow functional again.
herman.css does not have this problem
2024-06-21 16:28:25 -03:00
Caio Lente
b335d9ac5e
Add hideReply to exampleSite and credits to README 2024-06-21 16:26:22 -03:00
9 changed files with 41 additions and 18 deletions

View file

@ -16,7 +16,7 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
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@v3
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -115,6 +115,10 @@ 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

View file

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

View file

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

View file

@ -82,7 +82,8 @@ 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
# 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.
[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

View file

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

14
i18n/ko.toml Normal file
View file

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

14
i18n/tr.toml Normal file
View file

@ -0,0 +1,14 @@
[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,17 +74,11 @@
{{ 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 */}}
@ -97,17 +91,11 @@
<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 -}}"/>
{{- /* 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 }}