-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kenkeiras/fix-gl-post-dates
Fix galician post dates, and make compatible with Hugo > 0.75.1
- Loading branch information
Showing
5 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
1: "Xaneiro" | ||
2: "Febreiro" | ||
3: "Marzo" | ||
4: "Abril" | ||
5: "Maio" | ||
6: "Xuño" | ||
7: "Xullo" | ||
8: "Agosto" | ||
9: "Setembro" | ||
10: "Outubro" | ||
11: "Novembro" | ||
12: "Decembro" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Content | ||
- id: dateFormat | ||
translation: "January 2, 2006" | ||
- id: shortdateFormat | ||
translation: "Jan 2, 2006 15:04:05" | ||
- id: postedOnDate | ||
translation: "Posted on {{ . }}" | ||
- id: lastModified | ||
translation: "(Last modified on {{ . }})" | ||
- id: translationsLabel | ||
translation: "Other languages: " | ||
- id: translationsSeparator | ||
translation: ", " | ||
- id: readMore | ||
translation: "Read More" | ||
- id: olderPosts | ||
translation: "Older Posts" | ||
- id: newerPosts | ||
translation: "Newer Posts" | ||
- id: previousPost | ||
translation: "Previous Post" | ||
- id: nextPost | ||
translation: "Next Post" | ||
- id: readTime | ||
translation: "minutes" | ||
- id: words | ||
translation: "words" | ||
|
||
|
||
# 404 page | ||
- id: pageNotFound | ||
translation: "Whoops, this page doesn't exist. Move along. (404 error)" | ||
|
||
# Footer | ||
- id: poweredBy # Accepts HTML | ||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> powered • Theme <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adapted from <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>' | ||
|
||
# Navigation | ||
- id: toggleNavigation | ||
translation: "Toggle navigation" | ||
- id: languageSwitcherLabel | ||
translation: "Language" | ||
- id: gcseLabelShort | ||
translation: "Search" | ||
- id: gcseLabelLong | ||
translation: "Search {{ .Site.Title }}" | ||
- id: gcseClose | ||
translation: "Close" | ||
|
||
# Staticman | ||
- id: noComment | ||
translation: "No comment" | ||
- id: oneComment | ||
translation: "comment" | ||
- id: moreComment | ||
translation: "comments" | ||
- id: useMarkdown | ||
translation: "You can use Markdown syntax" | ||
- id: yourName | ||
translation: "Your name" | ||
- id: yourEmail | ||
translation: "Your email address" | ||
- id: yourWebsite | ||
translation: "You website" | ||
|
||
# Delayed Disqus | ||
- id: show | ||
translation: "Show" | ||
- id: comments | ||
translation: "comments" | ||
|
||
# Related posts | ||
- id: seeAlso | ||
translation: "See also" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ if eq "gl" .language.Lang }} | ||
{{ .date.Day }}. {{ index .months_gl (printf "%d" .date.Month) }} {{ .date.Year }} | ||
{{ else }} | ||
{{ .date.Format "January 2, 2006" }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<span class="post-meta"> | ||
{{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }} | ||
{{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }} | ||
|
||
<i class="fas fa-calendar"></i> | ||
|
||
{{ partial "date.html" (dict "date" .Date "language" $.Page.Language "months_gl" $.Site.Data.months_gl) | i18n "postedOnDate" }} | ||
|
||
{{ if ne $datestr $lastmodstr }} | ||
{{ $lastmodstr | i18n "lastModified" }} | ||
{{ end }} | ||
{{ if .Site.Params.readingTime }} | ||
| <i class="fas fa-clock"></i> {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "readTime" }} | ||
{{ end }} | ||
{{ if .Site.Params.wordCount }} | ||
| <i class="fas fa-book"></i> {{ .WordCount }} {{ i18n "words" }} | ||
{{ end }} | ||
{{ if not .Site.Params.hideAuthor }} | ||
{{ if .Params.author }} | ||
| <i class="fas fa-user"></i> {{ .Params.author | safeHTML }} | ||
{{ else }} | ||
| <i class="fas fa-user"></i> {{ .Site.Author.name | safeHTML }} | ||
{{ end }} | ||
{{ end }} | ||
{{- if .Site.Params.staticman -}} | ||
| <i class="fas fa-comment"></i> | ||
{{ $slug := replace .RelPermalink "/" "" }} | ||
{{ if .Site.Data.comments }} | ||
{{ $comments := index $.Site.Data.comments $slug }} | ||
{{ if $comments }} | ||
{{ if gt (len $comments) 1 }} | ||
{{ len $comments }} {{ i18n "moreComment" }} | ||
{{ else }} | ||
{{ len $comments }} {{ i18n "oneComment" }} | ||
{{ end }} | ||
{{ else }} | ||
0 {{ i18n "oneComment" }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{ if .IsTranslated -}} | ||
{{- $sortedTranslations := sort .Translations "Site.Language.Weight" -}} | ||
{{- $links := apply $sortedTranslations "partial" "translation_link.html" "." -}} | ||
{{- $cleanLinks := apply $links "chomp" "." -}} | ||
{{- $linksOutput := delimit $cleanLinks (i18n "translationsSeparator") -}} | ||
• {{ i18n "translationsLabel" }}{{ $linksOutput }} | ||
{{- end }} | ||
</span> |