Skip to content

Commit 4383818

Browse files
committed
add copyright info
1 parent 7cb434b commit 4383818

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

assets/css/extended/blank.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,3 +341,10 @@ figure figcaption:before {
341341
font-size: 18px;
342342
}
343343
}
344+
345+
.post-copyright {
346+
margin: 2em 0;
347+
padding: 0.5em 1em;
348+
border-left: 3px solid #ff1700;
349+
list-style: none;background: var(--code-bg);
350+
}

layouts/_default/single.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{{- define "main" }}
2+
3+
<article class="post-single">
4+
<header class="post-header">
5+
{{ partial "breadcrumbs.html" . }}
6+
<h1 class="post-title">
7+
{{ .Title }}
8+
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
9+
</h1>
10+
{{- if .Description }}
11+
<div class="post-description">
12+
{{ .Description }}
13+
</div>
14+
{{- end }}
15+
{{- if not (.Param "hideMeta") }}
16+
<div class="post-meta">
17+
{{- partial "post_meta.html" . -}}
18+
{{- partial "translation_list.html" . -}}
19+
{{- partial "edit_post.html" . -}}
20+
{{- partial "post_canonical.html" . -}}
21+
</div>
22+
{{- end }}
23+
</header>
24+
{{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
25+
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
26+
{{- if (.Param "ShowToc") }}
27+
{{- partial "toc.html" . }}
28+
{{- end }}
29+
30+
{{- if .Content }}
31+
<div class="post-content">
32+
{{- if not (.Param "disableAnchoredHeadings") }}
33+
{{- partial "anchored_headings.html" .Content -}}
34+
{{- else }}{{ .Content }}{{ end }}
35+
</div>
36+
{{- end }}
37+
38+
<footer class="post-footer">
39+
<ul class="post-copyright">
40+
<li><strong>文章作者:</strong><a rel="author" href="//liudon.com">Liudon</a></li>
41+
<li style="word-break:break-all"><strong>文章链接:</strong><a href="{{ .Permalink | absURL }}">{{ .Permalink }}</a></li>
42+
<li><strong>版权声明:</strong>本站采用 <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en"></a>CC BY-NC-ND 4.0</a> 协议,完整转载请注明来自 https://liudon.com</li>
43+
</ul>
44+
{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
45+
<ul class="post-tags">
46+
{{- range ($.GetTerms $tags) }}
47+
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
48+
{{- end }}
49+
</ul>
50+
{{- if (.Param "ShowPostNavLinks") }}
51+
{{- partial "post_nav_links.html" . }}
52+
{{- end }}
53+
{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
54+
{{- partial "share_icons.html" . -}}
55+
{{- end }}
56+
</footer>
57+
58+
{{- if (.Param "comments") }}
59+
{{- partial "comments.html" . }}
60+
{{- end }}
61+
</article>
62+
63+
{{- end }}{{/* end main */}}

0 commit comments

Comments
 (0)