aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-03-10 20:59:04 -0500
committerJesús <heckyel@hyperbola.info>2019-03-10 20:59:04 -0500
commitcf210e192536ca0319d5cee30431c07d97ee9a18 (patch)
tree9ff5fa9f9773eb690d4680b0e44903c516e085e8
parentb2e757f555bbbdb9ee124f47f2833333192ec160 (diff)
downloadcl-cf210e192536ca0319d5cee30431c07d97ee9a18.tar.lz
cl-cf210e192536ca0319d5cee30431c07d97ee9a18.tar.xz
cl-cf210e192536ca0319d5cee30431c07d97ee9a18.zip
Added feature social links
-rw-r--r--cl-theme/templates/article.html6
-rw-r--r--cl-theme/templates/base.html20
-rw-r--r--pelicanconf.py11
3 files changed, 24 insertions, 13 deletions
diff --git a/cl-theme/templates/article.html b/cl-theme/templates/article.html
index 5195d18..136fd5c 100644
--- a/cl-theme/templates/article.html
+++ b/cl-theme/templates/article.html
@@ -86,7 +86,7 @@
<!-- post footer -->
<div class="card-content-footer-small">
<div class="navbar is-social-center">
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" />
@@ -94,7 +94,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" />
@@ -102,7 +102,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" />
diff --git a/cl-theme/templates/base.html b/cl-theme/templates/base.html
index 409f4d6..6d27382 100644
--- a/cl-theme/templates/base.html
+++ b/cl-theme/templates/base.html
@@ -147,7 +147,7 @@
<div class="card-content">
<div class="content social">
<div class="navbar is-social-center">
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" />
@@ -155,7 +155,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" />
@@ -163,7 +163,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" />
@@ -198,7 +198,7 @@
<!-- header nav content -->
<div class="navbar is-social-center">
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora"/>
@@ -206,7 +206,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial"/>
@@ -214,7 +214,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['pump'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#pump"/>
@@ -222,7 +222,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['pixelfed'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#pixelfed"/>
@@ -230,7 +230,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['peertube'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#peertube"/>
@@ -238,7 +238,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['mediagoblin'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mediagoblin"/>
@@ -246,7 +246,7 @@
</svg>
</span>
</a>
- <a class="navbar-item" href="">
+ <a class="navbar-item" href="{{ SOCIAL['matrix'] }}">
<span class="soumaicon">
<svg>
<use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#matrix"/>
diff --git a/pelicanconf.py b/pelicanconf.py
index 15a6160..9521cde 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -102,6 +102,17 @@ SITEMAP = {
}
}
+SOCIAL = {
+ 'diaspora': '#',
+ 'gnusocial': '#',
+ 'mastodom': '#',
+ 'matrix': '#',
+ 'mediagoblin': '#',
+ 'peertube': '#',
+ 'pixelfed': '#',
+ 'pump': '#'
+}
+
ANOTHER_READ_MORE_LINK = 'Continúa leyendo <span class="screen-reader-text">{title}</span>'
ANOTHER_READ_MORE_LINK_FORMAT = ' <a class="more-link" href="{url}#read_more_link">{text}</a>'