Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove space between icon and text in meta fields
When minify, the meta icon + text starts rendering w/o space in between. So, regular and minified versions are slightly different. To avoid this, we use only margin-right to the icon for a consistent look with or without minification.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{{- if not .Date.IsZero }} | ||
<div class="meta__item-datetime meta__item"> | ||
{{ partial "svg/time.svg" (dict "class" "meta__icon") }} | ||
{{ partial "svg/time.svg" (dict "class" "meta__icon") -}} | ||
<time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> | ||
{{- .Date.Format (.Site.Params.dateformat | default "January 02, 2006") -}} | ||
</time> | ||
{{- if ne .Date .Lastmod }} | ||
<time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">( | ||
{{- T "meta_lastmod" }}: {{ .Lastmod.Format (.Site.Params.dateformat | default "January 02, 2006") -}} | ||
)</time> | ||
{{- end }} | ||
{{- end -}} | ||
</div> | ||
{{- end }} |