[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]
|
- Device/Os: [e.g. Android 10]
|
||||||
- Type: [e.g. Desktop/Mobile]
|
- Type: [e.g. Desktop/Mobile]
|
||||||
- Browser and version [e.g. Chrome 86.0]:
|
- 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 ]:
|
- Theme Version [e.g. v4.0, master, or commit-id ]:
|
||||||
|
|
||||||
**Steps to reproduce the behavior:**
|
**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:
|
hugoVersion:
|
||||||
description: "Hugo Version"
|
description: "Hugo Version"
|
||||||
required: false
|
required: false
|
||||||
default: "0.83.0"
|
default: "0.87.0"
|
||||||
|
|
||||||
# Allow one concurrent deployment
|
# Allow one concurrent deployment
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: "0.83.0"
|
HUGO_VERSION: "0.87.0"
|
||||||
steps:
|
steps:
|
||||||
- name: Check version
|
- name: Check version
|
||||||
if: ${{ github.event.inputs.hugoVersion }}
|
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.
|
**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/deployments/activity_log?environment=github-pages)
|
||||||
[](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
|
[](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
|
||||||
[](https://themes.gohugo.io/themes/hugo-papermod/)
|
[](https://themes.gohugo.io/themes/hugo-papermod/)
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
{{- $scratch := newScratch }}
|
{{- $scratch := newScratch }}
|
||||||
|
|
||||||
{{- if not .Date.IsZero -}}
|
{{- 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 }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (.Param "ShowReadingTime") -}}
|
{{- if (.Param "ShowReadingTime") -}}
|
||||||
|
@ -37,7 +37,7 @@ features = [
|
|||||||
"scroll-to-top",
|
"scroll-to-top",
|
||||||
"search"
|
"search"
|
||||||
]
|
]
|
||||||
min_version = "0.83.0"
|
min_version = "0.87.0"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Aditya Telange"
|
name = "Aditya Telange"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user