Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/humrochagf/colordrop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/sass/_global.scss8
-rw-r--r--assets/sass/_license.scss4
-rw-r--r--assets/sass/main.scss1
-rw-r--r--i18n/en.yaml12
-rw-r--r--i18n/fr.yaml14
-rw-r--r--i18n/pt-br.yaml12
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/license.html15
-rw-r--r--static/img/license/by-nc-nd/4.0/80x15.pngbin0 -> 435 bytes
-rw-r--r--static/img/license/by-nc-nd/4.0/88x31.pngbin0 -> 1773 bytes
-rw-r--r--static/img/license/by-nc-sa/4.0/80x15.pngbin0 -> 444 bytes
-rw-r--r--static/img/license/by-nc-sa/4.0/88x31.pngbin0 -> 1888 bytes
-rw-r--r--static/img/license/by-nc/4.0/80x15.pngbin0 -> 429 bytes
-rw-r--r--static/img/license/by-nc/4.0/88x31.pngbin0 -> 5145 bytes
-rw-r--r--static/img/license/by-nd/4.0/80x15.pngbin0 -> 428 bytes
-rw-r--r--static/img/license/by-nd/4.0/88x31.pngbin0 -> 1562 bytes
-rw-r--r--static/img/license/by-sa/4.0/80x15.pngbin0 -> 429 bytes
-rw-r--r--static/img/license/by-sa/4.0/88x31.pngbin0 -> 1697 bytes
-rw-r--r--static/img/license/by/4.0/80x15.pngbin0 -> 410 bytes
-rw-r--r--static/img/license/by/4.0/88x31.pngbin0 -> 1468 bytes
20 files changed, 67 insertions, 1 deletions
diff --git a/assets/sass/_global.scss b/assets/sass/_global.scss
index 516df3d..bb30c58 100644
--- a/assets/sass/_global.scss
+++ b/assets/sass/_global.scss
@@ -16,6 +16,14 @@ body {
}
}
+p a, li a {
+ border-bottom: 1px solid lighten($theme-color, 60%);
+
+ &:hover, &:focus, &:active {
+ border-bottom: 1px solid $theme-color;
+ }
+}
+
hr {
margin-top: 40px;
border: 0;
diff --git a/assets/sass/_license.scss b/assets/sass/_license.scss
new file mode 100644
index 0000000..98e076a
--- /dev/null
+++ b/assets/sass/_license.scss
@@ -0,0 +1,4 @@
+.license {
+ text-align: center;
+ margin: 40rem 0 20rem;
+}
diff --git a/assets/sass/main.scss b/assets/sass/main.scss
index c7af6b1..d3c4b8b 100644
--- a/assets/sass/main.scss
+++ b/assets/sass/main.scss
@@ -17,3 +17,4 @@ $theme-inverse-color: {{ default "#ffffff" .Site.Params.themeInverseColor }};
@import "publish";
@import "footer";
@import "svg";
+@import "license";
diff --git a/i18n/en.yaml b/i18n/en.yaml
index dda4bfb..6615fbc 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -1,2 +1,14 @@
- id: publish
translation: Published on
+
+- id: license1
+ translation: Creative Commons License
+
+- id: license2
+ translation: This work is licensed under a
+
+- id: license3
+ translation: Creative Commons
+
+- id: license4
+ translation: International License
diff --git a/i18n/fr.yaml b/i18n/fr.yaml
index 83afed3..28b7072 100644
--- a/i18n/fr.yaml
+++ b/i18n/fr.yaml
@@ -1,2 +1,14 @@
-- id: publish
+- id: publish
translation: Publié le
+
+- id: license1
+ translation: Licence Creative Commons
+
+- id: license2
+ translation: Ce(tte) œuvre est mise à disposition selon les termes de la
+
+- id: license3
+ translation: Licence Creative Commons
+
+- id: license4
+ translation: International
diff --git a/i18n/pt-br.yaml b/i18n/pt-br.yaml
index 99dce05..507efb6 100644
--- a/i18n/pt-br.yaml
+++ b/i18n/pt-br.yaml
@@ -1,2 +1,14 @@
- id: publish
translation: Publicado em
+
+- id: license1
+ translation: Licença Creative Commons
+
+- id: license2
+ translation: Esta obra está licenciada com uma Licença
+
+- id: license3
+ translation: Creative Commons
+
+- id: license4
+ translation: Internacional
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7b283c3..8363466 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,5 +5,7 @@
{{ partial "publish" . }}
{{ .Content }}
+
+ {{ partial "license" .Site.Params.license }}
</article>
{{ end }}
diff --git a/layouts/partials/license.html b/layouts/partials/license.html
new file mode 100644
index 0000000..21b5aef
--- /dev/null
+++ b/layouts/partials/license.html
@@ -0,0 +1,15 @@
+{{ if . }}
+ <div class="license">
+ <a rel="license" target="_blank" href="https://creativecommons.org/licenses/{{ .type }}/{{ .version }}/deed.{{ .locale }}">
+ <img alt="{{ i18n "license1" }}" style="border-width:0" src="/img/license/{{ .type }}/{{ .version }}/{{ .size }}.png" />
+ </a>
+
+ <p>
+ {{ i18n "license2" }}
+
+ <a rel="license" target="_blank" href="https://creativecommons.org/licenses/{{ .type }}/{{ .version }}/deed.{{ .locale }}">
+ {{ i18n "license3" }} {{ .name }} {{ .version }} {{ i18n "license4" }}
+ </a>.
+ </p>
+ </div>
+{{ end }}
diff --git a/static/img/license/by-nc-nd/4.0/80x15.png b/static/img/license/by-nc-nd/4.0/80x15.png
new file mode 100644
index 0000000..d8b23ee
--- /dev/null
+++ b/static/img/license/by-nc-nd/4.0/80x15.png
Binary files differ
diff --git a/static/img/license/by-nc-nd/4.0/88x31.png b/static/img/license/by-nc-nd/4.0/88x31.png
new file mode 100644
index 0000000..55e348a
--- /dev/null
+++ b/static/img/license/by-nc-nd/4.0/88x31.png
Binary files differ
diff --git a/static/img/license/by-nc-sa/4.0/80x15.png b/static/img/license/by-nc-sa/4.0/80x15.png
new file mode 100644
index 0000000..3d2049b
--- /dev/null
+++ b/static/img/license/by-nc-sa/4.0/80x15.png
Binary files differ
diff --git a/static/img/license/by-nc-sa/4.0/88x31.png b/static/img/license/by-nc-sa/4.0/88x31.png
new file mode 100644
index 0000000..8b53554
--- /dev/null
+++ b/static/img/license/by-nc-sa/4.0/88x31.png
Binary files differ
diff --git a/static/img/license/by-nc/4.0/80x15.png b/static/img/license/by-nc/4.0/80x15.png
new file mode 100644
index 0000000..dc78c3b
--- /dev/null
+++ b/static/img/license/by-nc/4.0/80x15.png
Binary files differ
diff --git a/static/img/license/by-nc/4.0/88x31.png b/static/img/license/by-nc/4.0/88x31.png
new file mode 100644
index 0000000..5f98214
--- /dev/null
+++ b/static/img/license/by-nc/4.0/88x31.png
Binary files differ
diff --git a/static/img/license/by-nd/4.0/80x15.png b/static/img/license/by-nd/4.0/80x15.png
new file mode 100644
index 0000000..5356797
--- /dev/null
+++ b/static/img/license/by-nd/4.0/80x15.png
Binary files differ
diff --git a/static/img/license/by-nd/4.0/88x31.png b/static/img/license/by-nd/4.0/88x31.png
new file mode 100644
index 0000000..837376e
--- /dev/null
+++ b/static/img/license/by-nd/4.0/88x31.png
Binary files differ
diff --git a/static/img/license/by-sa/4.0/80x15.png b/static/img/license/by-sa/4.0/80x15.png
new file mode 100644
index 0000000..c1b97c4
--- /dev/null
+++ b/static/img/license/by-sa/4.0/80x15.png
Binary files differ
diff --git a/static/img/license/by-sa/4.0/88x31.png b/static/img/license/by-sa/4.0/88x31.png
new file mode 100644
index 0000000..e76aeff
--- /dev/null
+++ b/static/img/license/by-sa/4.0/88x31.png
Binary files differ
diff --git a/static/img/license/by/4.0/80x15.png b/static/img/license/by/4.0/80x15.png
new file mode 100644
index 0000000..863f00b
--- /dev/null
+++ b/static/img/license/by/4.0/80x15.png
Binary files differ
diff --git a/static/img/license/by/4.0/88x31.png b/static/img/license/by/4.0/88x31.png
new file mode 100644
index 0000000..44671b2
--- /dev/null
+++ b/static/img/license/by/4.0/88x31.png
Binary files differ