mirror of
https://github.com/flysnow-org/maupassant-hugo.git
synced 2026-08-24 15:28:55 +00:00
optimization copyright style
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user