Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Menu
Projects
Groups
Snippets
Sign up now
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Rautenkranz
site
Commits
68037c38
Commit
68037c38
authored
May 26, 2017
by
Tobias Rautenkranz
Browse files
Fix date format
parent
e38f61c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
_includes/footer.html
View file @
68037c38
<footer>
<p>
<a
href=
"/changelog.html"
>
{% assign date_format = "%Y-%m-%d" %}
{% if page and page.date %}
<time
datetime=
"{{ page.date | date_to_xmlschema}}"
itemprop=
"datePublished"
>
{% assign date_format = "%c" %}
{{ page.date | date: date_format }}
</time></a>
{% comment %}/a tag here to prevent
whitespace in the link {% endcomment %}
{% else %}
<time
datetime=
"{{ site.time | date_to_xmlschema}}"
>
{% assign date_format = "%c" %}
{{ site.time | date: date_format }}
</time></a>
{% endif %}
...
...
_layouts/post.html
View file @
68037c38
...
...
@@ -5,11 +5,11 @@ layout: default
<header>
<div>
<time
datetime=
"{{ page.date | date_to_xmlschema }}"
itemprop=
"datePublished"
>
{% assign date_format = "%
c
" %}
{% assign date_format = "%
Y-%m-%d
" %}
{{ page.date | date: date_format }}
</time>
{% for tag in page.tags %}
<a
rel=
"tag"
href=
"{{ tag | prepend:"
tag
/"
|
relative_url
}}"
>
{{ tag }}
</a>
<a
rel=
"tag"
href=
"{{ tag | prepend:"
tag
/"
|
relative_url
}}
.
html
"
>
{{ tag }}
</a>
{% endfor %}
</div>
</header>
...
...
assets/main.css
View file @
68037c38
...
...
@@ -94,6 +94,7 @@ article header div {
left
:
1em
;
top
:
7em
;
font-size
:
0.8em
;
font-weight
:
bold
;
}
a
[
rel
=
tag
]
:before
{
content
:
"["
;
...
...
Write
Preview
Supports
Markdown
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