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] [copyright]
author = "文章作者" author = "文章作者"
lastMod = "上次更新" lastMod = "上次更新"
link = "原始链接"
markdown = "原始文档" markdown = "原始文档"
license = "许可协议" license = "许可协议"

View file

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

View file

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

View file

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

View file

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

View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long