Commit 74d2855e authored by Phu Nguyen's avatar Phu Nguyen

Use one format only

parent 2b1eb2f3
......@@ -352,9 +352,7 @@ skip-to-content:
other: "Skip to content"
view-changelog:
other: 'View full changelog'
framework-date-format:
other: '%B %d, %Y'
plasma-date-format:
date-format:
other: '%A, %d %B %Y'
Monday:
other: Monday
......
{{ $dateFormat := "" }}
{{ if eq .Params.layout "framework" }}
{{ $dateFormat = i18n "framework-date-format" }}
{{ else }}
{{ $dateFormat = i18n "plasma-date-format" }}
{{ end }}
{{ $dateFormat := i18n "date-format" }}
{{ if .Params.date }}
{{ $withY := replace $dateFormat "%Y" .Params.date.Year }}
......
{{ $dateFormat := "" }}
{{ if eq .Page.Params.layout "framework" }}
{{ $dateFormat = i18n "framework-date-format" }}
{{ else }}
{{ $dateFormat = i18n "plasma-date-format" }}
{{ end }}
{{ $dateFormat := i18n "date-format" }}
{{ if .Page.Params.date }}
{{ $withY := replace $dateFormat "%Y" .Page.Params.date.Year }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment