style: change content copyright style

delete link in content copyright

change item-title style
This commit is contained in:
olOwOlo 2017-09-11 17:38:16 +08:00
parent 7cab923ef6
commit cffd4dd245
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6
8 changed files with 32 additions and 26 deletions

View file

@ -19,7 +19,6 @@ categories = "分类"
[copyright]
author = "文章作者"
lastMod = "上次更新"
link = "原始链接"
markdown = "原始文档"
license = "许可协议"

View file

@ -19,7 +19,6 @@ categories = "Categories"
[copyright]
author = "Author"
lastMod = "LastMod"
link = "Link"
markdown = "Markdown"
license = "License"

View file

@ -19,7 +19,6 @@ categories = "分类"
[copyright]
author = "文章作者"
lastMod = "上次更新"
link = "原始链接"
markdown = "原始文档"
license = "许可协议"

View file

@ -18,7 +18,6 @@ categories = "Categories"
[copyright]
author = "Author"
link = "Link"
lastMod = "LastMod"
markdown = "Markdown"
license = "License"

View file

@ -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 }}

View file

@ -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: " :";
}
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long