Skip to content

Commit ca39c43

Browse files
committed
Merge pull request #110 from luzfcb/pelican
implementado issue #91 - Definir licença para todas as postagens
2 parents 9eb2f7e + e54fc6a commit ca39c43

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

theme/static/css/custom.css

+21
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,24 @@ code {
3636
padding: 0;
3737
font-family: Consolas, "Liberation Mono", Courier, monospace;
3838
}
39+
40+
41+
.doeaoautor {
42+
text-align: center;
43+
background: rgba(244, 255, 246, 0.97);
44+
border-top: 2px solid #ccc;
45+
border-bottom: 2px solid #ccc;
46+
margin: 1.5em 10px;
47+
padding: 0.5em 10px;
48+
quotes: "\201C""\201D""\2018""\2019";
49+
}
50+
51+
.licence {
52+
text-align: center;
53+
background: rgba(244, 255, 246, 0.97);
54+
border-top: 2px solid #ccc;
55+
border-bottom: 2px solid #ccc;
56+
margin: 1.5em 10px;
57+
padding: 0.5em 10px;
58+
quotes: "\201C""\201D""\2018""\2019";
59+
}

theme/templates/article.html

+13
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,19 @@ <h1>{{ article.title }}</h1>
124124
</header>
125125
</section>
126126
{{ article.content }}
127+
128+
<div class="licence">
129+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Licença Creative Commons"
130+
style="border-width:0"
131+
src="http://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png"/></a><br/><a
132+
xmlns:dct="http://purl.org/dc/terms/" property="dct:title"
133+
href="http://pythonclub.com.br/{{ article.url }}">"{{ article.title }}"</a> de <a
134+
xmlns:cc="http://creativecommons.org/ns#" href="{{ SITEURL }}/{{ article.author.url }}"
135+
property="cc:attributionName" rel="cc:attributionURL">"{{ article.author }}"</a> está licenciado com uma Licença
136+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons -
137+
Atribuição-NãoComercial-SemDerivações 4.0 Internacional</a>.
138+
</div>
139+
127140
<div class="sharing">
128141
<!-- Facebook sharing -->
129142
<div id="fb-root"></div>

0 commit comments

Comments
 (0)