mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
style: change content copyright style
delete link in content copyright change item-title style
This commit is contained in:
parent
7cab923ef6
commit
cffd4dd245
8 changed files with 32 additions and 26 deletions
|
@ -19,7 +19,6 @@ categories = "分类"
|
|||
[copyright]
|
||||
author = "文章作者"
|
||||
lastMod = "上次更新"
|
||||
link = "原始链接"
|
||||
markdown = "原始文档"
|
||||
license = "许可协议"
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ categories = "Categories"
|
|||
[copyright]
|
||||
author = "Author"
|
||||
lastMod = "LastMod"
|
||||
link = "Link"
|
||||
markdown = "Markdown"
|
||||
license = "License"
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ categories = "分类"
|
|||
[copyright]
|
||||
author = "文章作者"
|
||||
lastMod = "上次更新"
|
||||
link = "原始链接"
|
||||
markdown = "原始文档"
|
||||
license = "许可协议"
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ categories = "Categories"
|
|||
|
||||
[copyright]
|
||||
author = "Author"
|
||||
link = "Link"
|
||||
lastMod = "LastMod"
|
||||
markdown = "Markdown"
|
||||
license = "License"
|
||||
|
|
|
@ -2,32 +2,30 @@
|
|||
{{ $lang := .Site.Data.even.default -}}
|
||||
<div class="post-copyright">
|
||||
<p class="copyright-item">
|
||||
<span class="item-title">{{ $lang.copyright.author }}: </span>
|
||||
<span>{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
|
||||
<span class="item-title">{{ $lang.copyright.author }}</span>
|
||||
<span class="item-content">{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
|
||||
</p>
|
||||
<p class="copyright-item">
|
||||
<span class="item-title">{{ $lang.copyright.lastMod }}: </span>
|
||||
{{ .Lastmod.Format "2006-01-02" }}
|
||||
</p>
|
||||
<p class="copyright-item">
|
||||
<span class="item-title">{{ $lang.copyright.link }}: </span>
|
||||
<a href="{{ .Permalink }}">{{ .Permalink }}</a>
|
||||
<span class="item-title">{{ $lang.copyright.lastMod }}</span>
|
||||
<span class="item-content">{{ .Lastmod.Format "2006-01-02" }}</span>
|
||||
</p>
|
||||
{{ if $.Site.Params.linkToMarkDown -}}
|
||||
{{ with $.OutputFormats.Get "markdown" -}}
|
||||
<p class="copyright-item">
|
||||
<span class="item-title">{{ $lang.copyright.markdown }}: </span>
|
||||
<a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ $lang.posts.seeMarkDown }}</a>
|
||||
<span class="item-title">{{ $lang.copyright.markdown }}</span>
|
||||
<span class="item-content"><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ $lang.posts.seeMarkDown }}</a></span>
|
||||
</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
<p class="copyright-item license">
|
||||
<span class="item-title">{{ $lang.copyright.license }}: </span>
|
||||
{{ if .Params.contentCopyright -}}
|
||||
<p class="copyright-item">
|
||||
<span class="item-title">{{ $lang.copyright.license }}</span>
|
||||
<span class="item-content">
|
||||
{{- if .Params.contentCopyright -}}
|
||||
{{ .Params.contentCopyright | safeHTML }}
|
||||
{{ else -}}
|
||||
{{- else -}}
|
||||
{{ .Site.Params.contentCopyright | safeHTML }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
{{- end }}
|
|
@ -5,13 +5,25 @@
|
|||
|
||||
.copyright-item {
|
||||
margin: 5px 0;
|
||||
|
||||
&.license {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
color: $theme-color;
|
||||
word-wrap: break-word;
|
||||
|
||||
&:hover {
|
||||
border-bottom: $content-link-border;
|
||||
}
|
||||
}
|
||||
|
||||
.item-title {
|
||||
display: inline-block;
|
||||
min-width: 5rem;
|
||||
margin-right: .5rem;
|
||||
text-align: right;
|
||||
|
||||
&:after {
|
||||
content: " :";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
static/dist/even.min.css
vendored
2
static/dist/even.min.css
vendored
File diff suppressed because one or more lines are too long
2
static/dist/even.min.css.map
vendored
2
static/dist/even.min.css.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue