mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-12 16:19:45 +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]
|
[copyright]
|
||||||
author = "文章作者"
|
author = "文章作者"
|
||||||
lastMod = "上次更新"
|
lastMod = "上次更新"
|
||||||
link = "原始链接"
|
|
||||||
markdown = "原始文档"
|
markdown = "原始文档"
|
||||||
license = "许可协议"
|
license = "许可协议"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ categories = "Categories"
|
||||||
[copyright]
|
[copyright]
|
||||||
author = "Author"
|
author = "Author"
|
||||||
lastMod = "LastMod"
|
lastMod = "LastMod"
|
||||||
link = "Link"
|
|
||||||
markdown = "Markdown"
|
markdown = "Markdown"
|
||||||
license = "License"
|
license = "License"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ categories = "分类"
|
||||||
[copyright]
|
[copyright]
|
||||||
author = "文章作者"
|
author = "文章作者"
|
||||||
lastMod = "上次更新"
|
lastMod = "上次更新"
|
||||||
link = "原始链接"
|
|
||||||
markdown = "原始文档"
|
markdown = "原始文档"
|
||||||
license = "许可协议"
|
license = "许可协议"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ categories = "Categories"
|
||||||
|
|
||||||
[copyright]
|
[copyright]
|
||||||
author = "Author"
|
author = "Author"
|
||||||
link = "Link"
|
|
||||||
lastMod = "LastMod"
|
lastMod = "LastMod"
|
||||||
markdown = "Markdown"
|
markdown = "Markdown"
|
||||||
license = "License"
|
license = "License"
|
||||||
|
|
|
@ -2,32 +2,30 @@
|
||||||
{{ $lang := .Site.Data.even.default -}}
|
{{ $lang := .Site.Data.even.default -}}
|
||||||
<div class="post-copyright">
|
<div class="post-copyright">
|
||||||
<p class="copyright-item">
|
<p class="copyright-item">
|
||||||
<span class="item-title">{{ $lang.copyright.author }}: </span>
|
<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-content">{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="copyright-item">
|
<p class="copyright-item">
|
||||||
<span class="item-title">{{ $lang.copyright.lastMod }}: </span>
|
<span class="item-title">{{ $lang.copyright.lastMod }}</span>
|
||||||
{{ .Lastmod.Format "2006-01-02" }}
|
<span class="item-content">{{ .Lastmod.Format "2006-01-02" }}</span>
|
||||||
</p>
|
|
||||||
<p class="copyright-item">
|
|
||||||
<span class="item-title">{{ $lang.copyright.link }}: </span>
|
|
||||||
<a href="{{ .Permalink }}">{{ .Permalink }}</a>
|
|
||||||
</p>
|
</p>
|
||||||
{{ if $.Site.Params.linkToMarkDown -}}
|
{{ if $.Site.Params.linkToMarkDown -}}
|
||||||
{{ with $.OutputFormats.Get "markdown" -}}
|
{{ with $.OutputFormats.Get "markdown" -}}
|
||||||
<p class="copyright-item">
|
<p class="copyright-item">
|
||||||
<span class="item-title">{{ $lang.copyright.markdown }}: </span>
|
<span class="item-title">{{ $lang.copyright.markdown }}</span>
|
||||||
<a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ $lang.posts.seeMarkDown }}</a>
|
<span class="item-content"><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ $lang.posts.seeMarkDown }}</a></span>
|
||||||
</p>
|
</p>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<p class="copyright-item license">
|
<p class="copyright-item">
|
||||||
<span class="item-title">{{ $lang.copyright.license }}: </span>
|
<span class="item-title">{{ $lang.copyright.license }}</span>
|
||||||
{{ if .Params.contentCopyright -}}
|
<span class="item-content">
|
||||||
|
{{- if .Params.contentCopyright -}}
|
||||||
{{ .Params.contentCopyright | safeHTML }}
|
{{ .Params.contentCopyright | safeHTML }}
|
||||||
{{ else -}}
|
{{- else -}}
|
||||||
{{ .Site.Params.contentCopyright | safeHTML }}
|
{{ .Site.Params.contentCopyright | safeHTML }}
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -5,13 +5,25 @@
|
||||||
|
|
||||||
.copyright-item {
|
.copyright-item {
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
|
|
||||||
&.license {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
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