[i18n-localize-dates-hugo-0.87] Improve date localization and bump Hugo version to 0.87 to support the new Date.Format. Ref https://gohugo.io/functions/dateformat/
This commit is contained in:
parent
eba92edd83
commit
3b2bae0f26
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -26,7 +26,7 @@ Please fill the template below
|
||||
- Device/Os: [e.g. Android 10]
|
||||
- Type: [e.g. Desktop/Mobile]
|
||||
- Browser and version [e.g. Chrome 86.0]:
|
||||
- Hugo Version [ >=0.83.0 expected]:
|
||||
- Hugo Version [ >=0.87.0 expected]:
|
||||
- Theme Version [e.g. v4.0, master, or commit-id ]:
|
||||
|
||||
**Steps to reproduce the behavior:**
|
||||
|
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
@ -15,7 +15,7 @@ on:
|
||||
hugoVersion:
|
||||
description: "Hugo Version"
|
||||
required: false
|
||||
default: "0.83.0"
|
||||
default: "0.87.0"
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HUGO_VERSION: "0.83.0"
|
||||
HUGO_VERSION: "0.87.0"
|
||||
steps:
|
||||
- name: Check version
|
||||
if: ${{ github.event.inputs.hugoVersion }}
|
||||
|
@ -10,7 +10,7 @@ The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of doc
|
||||
|
||||
**ExampleSite** can be found here: [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source.
|
||||
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.83.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.87.0)
|
||||
[](https://github.com/adityatelange/hugo-PaperMod/deployments/activity_log?environment=github-pages)
|
||||
[](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/hugo-papermod/)
|
||||
|
@ -1,7 +1,9 @@
|
||||
{{- $scratch := newScratch }}
|
||||
|
||||
{{- if not .Date.IsZero -}}
|
||||
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
|
||||
<span class="date">
|
||||
{{ .Date | time.Format (default ":date_long" site.Params.DateFormat)}}
|
||||
</span>
|
||||
{{- end }}
|
||||
|
||||
{{- if (.Param "ShowReadingTime") -}}
|
||||
|
@ -37,7 +37,7 @@ features = [
|
||||
"scroll-to-top",
|
||||
"search"
|
||||
]
|
||||
min_version = "0.83.0"
|
||||
min_version = "0.87.0"
|
||||
|
||||
[author]
|
||||
name = "Aditya Telange"
|
||||
|
Loading…
x
Reference in New Issue
Block a user