mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-28 14:38:45 +03:00
Change the style of the last update time
This commit is contained in:
parent
145a758159
commit
0b0c32c626
9 changed files with 14 additions and 36 deletions
|
@ -93,9 +93,12 @@ paginate = 5
|
|||
|
||||
# set a custom favicon (default is a `themeColor` square)
|
||||
# favicon = "favicon.ico"
|
||||
|
||||
# set post to show the last updated
|
||||
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
|
||||
showLastUpdated = false
|
||||
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author
|
||||
# updatedDatePrefix = "Updated"
|
||||
|
||||
# set all headings to their default size (depending on browser settings)
|
||||
# it's set to `true` by default
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
<h1 class="post-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
||||
<div class="post-meta">
|
||||
{{ if .Params.Date }}
|
||||
{{ if .Params.Date }}
|
||||
<span class="post-date">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
{{ .Date.Format "2006-01-02" }} {{ if $.Site.Params.showLastUpdated }}[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ with .Params.Author }}
|
||||
|
@ -34,11 +34,6 @@
|
|||
</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{ if $.Site.Params.showLastUpdated }}
|
||||
<div class="post-lastmod">
|
||||
Last Updated :: {{ .Lastmod.Format "2006-01-02" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if or .NextInSection .PrevInSection }}
|
||||
<div class="pagination">
|
||||
<div class="pagination__title">
|
||||
|
|
|
@ -22,26 +22,6 @@
|
|||
color: color-mod(var(--accent) a(70%));
|
||||
}
|
||||
|
||||
&-lastmod {
|
||||
--border: 3px dotted var(--accent);
|
||||
position: relative;
|
||||
margin: 30px 0 0;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
border-top: var(--border);
|
||||
color: color-mod(var(--accent) a(70%));
|
||||
text-align: right;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-top: var(--border);
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
--border: 3px dotted var(--accent);
|
||||
position: relative;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue