optimization copyright style

This commit is contained in:
飞雪无情
2019-03-07 10:52:33 +08:00
parent 9eaac24464
commit 0a2cab0730
2 changed files with 16 additions and 7 deletions
+5 -7
View File
@@ -1,12 +1,10 @@
{{ if isset .Site.Params "cc" }}
<div class="post-archive">
<br/>
<h2>Copyright</h2>
<ul class="listing">
<li>作者:<a rel="author" href="{{ .Site.BaseURL}}">{{ if isset .Site.Author "name" }}{{.Site.Author.name}}{{ else }}{{.Site.Title}}{{ end }}</a></li>
<li style="word-break:break-all">原文链接:<a href="{{ .Permalink}}">{{ .Permalink}}</a></li>
<li>本作品采用<a rel="license" href="{{.Site.Params.cc.link}}">{{.Site.Params.cc.name}}</a>进行许可。</li>
<li>非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。</li>
<ul class="post-copyright">
<li><strong>原文作者:</strong><a rel="author" href="{{ .Site.BaseURL}}">{{ if isset .Site.Author "name" }}{{.Site.Author.name}}{{ else }}{{.Site.Title}}{{ end }}</a></li>
<li style="word-break:break-all"><strong>原文链接:</strong><a href="{{ .Permalink}}">{{ .Permalink}}</a></li>
<li><strong>版权声明:</strong>本作品采用<a rel="license" href="{{.Site.Params.cc.link}}">{{.Site.Params.cc.name}}</a>进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。</li>
</ul>
</div>
<br/>
{{ end }}
+11
View File
@@ -991,3 +991,14 @@ img.alignright {
background: #F8F8F8;
border-bottom-color: #D26911;
}
/* 版权声明 */
.post-copyright {
margin: 2em 0 0;
padding: 0.5em 1em;
border-left: 3px solid #ff1700;
background-color: #f9f9f9;
list-style: none;
}
.post-copyright a {
border-bottom: 1px solid #999;
}