Skip to content

Commit f0888a8

Browse files
committed
add Creative Commons license for docs
1 parent 55aa03e commit f0888a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/theme/layout.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,25 @@
9595
<div id="main-content" role="main">
9696
{% block body %} {% endblock %}
9797
</div>
98+
<p style="text-align: center; font-size: 12px;">
99+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
100+
<img
101+
alt="{{ "知识共享许可协议" if language.startswith('zh') else "Creative Commons License" }}"
102+
style="border-width:0"
103+
src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"
104+
/>
105+
</a>
106+
<br/>
107+
{{
108+
"本作品采用"
109+
if language.startswith('zh') else
110+
"This work is licensed under a"
111+
}}<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">{{
112+
"知识共享署名-相同方式共享 4.0 国际许可协议"
113+
if language.startswith('zh') else
114+
"Creative Commons Attribution-ShareAlike 4.0 International License"
115+
}}</a>{{ "进行许可。" if language.startswith('zh') else "." }}
116+
</p>
98117
</div>
99118

100119
<div class="col hide-on-small-only m3 right-nav">

0 commit comments

Comments
 (0)