Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Websites
KDE.org Website
Commits
74d2855e
Commit
74d2855e
authored
Jan 24, 2021
by
Phu Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use one format only
parent
2b1eb2f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
i18n/en.yaml
i18n/en.yaml
+1
-3
layouts/partials/i18n_date.html
layouts/partials/i18n_date.html
+1
-6
layouts/shortcodes/i18n_date.html
layouts/shortcodes/i18n_date.html
+1
-6
No files found.
i18n/en.yaml
View file @
74d2855e
...
...
@@ -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
...
...
layouts/partials/i18n_date.html
View file @
74d2855e
{{ $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 }}
...
...
layouts/shortcodes/i18n_date.html
View file @
74d2855e
{{ $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 }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment