diff options
author | Jesús <heckyel@hyperbola.info> | 2019-03-17 17:13:40 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-03-17 17:13:40 -0500 |
commit | e688de7eb717e7abf8219f9d6e82597151a70acc (patch) | |
tree | 266875e62b6df8abc218cc0f46f49dab64262401 | |
parent | 1e525f348fc51a37ee63da6fa7960f573003d92b (diff) | |
download | cl-e688de7eb717e7abf8219f9d6e82597151a70acc.tar.lz cl-e688de7eb717e7abf8219f9d6e82597151a70acc.tar.xz cl-e688de7eb717e7abf8219f9d6e82597151a70acc.zip |
remove duplicate main-content
-rw-r--r-- | cl-theme/templates/archives.html | 210 | ||||
-rw-r--r-- | cl-theme/templates/article.html | 178 | ||||
-rw-r--r-- | cl-theme/templates/authors.html | 200 | ||||
-rw-r--r-- | cl-theme/templates/page.html | 140 | ||||
-rw-r--r-- | cl-theme/templates/period_archives.html | 61 |
5 files changed, 385 insertions, 404 deletions
diff --git a/cl-theme/templates/archives.html b/cl-theme/templates/archives.html index 6eed5e9..fb390ca 100644 --- a/cl-theme/templates/archives.html +++ b/cl-theme/templates/archives.html @@ -1,130 +1,124 @@ {% extends "base.html" %} {% block extra_head %} - <meta name="description" content="{{ _('Lista de artículos publicados en Conocimientos Libres.') }}"> - <meta name="keywords" content="{{ _('archivos,artículos,historia,lista de artículos') }}"> - - <style> - - .content ul, .content ul ul, .content ul ul ul { - list-style:none !important; - } - - .content ul { - margin-left: 0px !important; - } - - .contenedor-arbol, .contenedor-arbol ul, .contenedor-arbol li { - position: relative; - margin: 0; - padding-left: 2%; - line-height: normal; - } - - .contenedor-arbol ul { - list-style: none; - } - - .contenedor-arbol li::before, .contenedor-arbol li::after { - content: ""; - position: absolute; - left: -12px; - } - - .contenedor-arbol li::before { - border-top: 2px solid #111; - top: 9px; - width: 12px; - height: 0; - } - - .contenedor-arbol li::after { - border-left: 2px solid black; - height: 100%; - width: 0px; - top: 2px; - } - - .contenedor-arbol ul > li:last-child::after { - height: 8px; - } - </style> +<meta name="description" content="{{ _('Lista de artículos publicados en Conocimientos Libres.') }}"> +<meta name="keywords" content="{{ _('archivos,artículos,historia,lista de artículos') }}"> + +<style> + + .content ul, .content ul ul, .content ul ul ul { + list-style:none !important; + } + + .content ul { + margin-left: 0px !important; + } + + .contenedor-arbol, .contenedor-arbol ul, .contenedor-arbol li { + position: relative; + margin: 0; + padding-left: 2%; + line-height: normal; + } + + .contenedor-arbol ul { + list-style: none; + } + + .contenedor-arbol li::before, .contenedor-arbol li::after { + content: ""; + position: absolute; + left: -12px; + } + + .contenedor-arbol li::before { + border-top: 2px solid #111; + top: 9px; + width: 12px; + height: 0; + } + + .contenedor-arbol li::after { + border-left: 2px solid black; + height: 100%; + width: 0px; + top: 2px; + } + + .contenedor-arbol ul > li:last-child::after { + height: 8px; + } +</style> {% endblock %} {% block title %}{% trans %}Archivos de {{ SITENAME }}{% endtrans %}{% endblock %} {% block content %} - <!-- page content --> - <div class="main-content"> - <div class="container"> - <!-- start of posts --> - <div class="columns is-multiline is-centered"> - <!-- start of post --> - <div class="column is-7"> - <div class="card"> - - <!-- post header --> - <div class="card-content-header"> - <h4 class="title is-4 has-text-centered">{% trans %}Archivos de {{ SITENAME }}{% endtrans %}</h4> - </div> - <!-- end of post header --> - - <!-- post content --> - <div class="card-content"> - <div class="content"> - <div class="card-inner-wrapper"> - <div class="contenedor-arbol"> - <p>{{ ngettext('%(num)d artículo', '%(num)d artículos', dates|length) }}</p> - <ul> - {% for article in dates %} - {% set current_year = article.date|strftime('%Y') %} - {% set current_month = article.date|strftime('%m') %} - {% if loop.previtem %} - {% set previous_year = loop.previtem.date|strftime('%Y') %} - {% set previous_month = loop.previtem.date|strftime('%m') %} - {% endif %} - {% if current_year != previous_year %} - {% if loop.previtem %} - </ul> - </li> <!-- Cierra el mes --> - </ul> - </li> <!-- Cierra el año --> - {% endif %} - <li><a href="{{ SITEURL }}/archives/{{ current_year }}/">{{ current_year }}</a> - <ul> +<div class="container"> + <!-- start of posts --> + <div class="columns is-multiline is-centered"> + <!-- start of post --> + <div class="column is-7"> + <div class="card"> + + <!-- post header --> + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered">{% trans %}Archivos de {{ SITENAME }}{% endtrans %}</h4> + </div> + <!-- end of post header --> + + <!-- post content --> + <div class="card-content"> + <div class="content"> + <div class="card-inner-wrapper"> + <div class="contenedor-arbol"> + <p>{{ ngettext('%(num)d artículo', '%(num)d artículos', dates|length) }}</p> + <ul> + {% for article in dates %} + {% set current_year = article.date|strftime('%Y') %} + {% set current_month = article.date|strftime('%m') %} + {% if loop.previtem %} + {% set previous_year = loop.previtem.date|strftime('%Y') %} + {% set previous_month = loop.previtem.date|strftime('%m') %} + {% endif %} + {% if current_year != previous_year %} + {% if loop.previtem %} + </ul> + </li> <!-- Cierra el mes --> + </ul> + </li> <!-- Cierra el año --> + {% endif %} + <li><a href="{{ SITEURL }}/archives/{{ current_year }}/">{{ current_year }}</a> + <ul> <li><a href="{{ SITEURL }}/archives/{{ current_year }}/{{ current_month }}/">{{ article.date|strftime('%B') }}</a> - <ul> - {% elif current_month != previous_month %} - {% if loop.previtem %} - </ul> + <ul> + {% elif current_month != previous_month %} + {% if loop.previtem %} + </ul> </li> {% endif %} <li><a href="{{ SITEURL }}/archives/{{ current_year }}/{{ current_month }}/">{{ article.date|strftime('%B') }}</a> - <ul> - {% endif %} - <li><a href="{{ SITEURL }}/{{ article.url }}" title="{{ article.locale_date}}">{{ article.title }}</a></li> - {% if loop.last %} - </ul> + <ul> + {% endif %} + <li><a href="{{ SITEURL }}/{{ article.url }}" title="{{ article.locale_date}}">{{ article.title }}</a></li> + {% if loop.last %} + </ul> </li> <!-- Cierra el mes --> - </ul> - </li> <!-- Cierra el año --> - {% endif %} - {% endfor %} - </ul> - </div> - </div> + </ul> + </li> <!-- Cierra el año --> + {% endif %} + {% endfor %} + </ul> </div> </div> </div> - <!-- end of post content --> - </div> - <!-- end of post --> - </div> - <!-- end of post column --> + <!-- end of post content --> </div> + <!-- end of post --> </div> - <!-- end of page content --> + <!-- end of post column --> +</div> {% endblock %} diff --git a/cl-theme/templates/article.html b/cl-theme/templates/article.html index 136fd5c..d641148 100644 --- a/cl-theme/templates/article.html +++ b/cl-theme/templates/article.html @@ -58,116 +58,112 @@ {% block title %}{{ article.title|striptags }}{% endblock %} {% block content %} - <!-- page content --> - <div class="main-content"> - <div class="container"> - <!-- start of posts --> - <div class="columns is-multiline is-centered"> - <!-- start of post --> - <div class="column is-10"> - <div class="card"> + <div class="container"> + <!-- start of posts --> + <div class="columns is-multiline is-centered"> + <!-- start of post --> + <div class="column is-10"> + <div class="card"> - <!-- post header --> - <div class="card-content-header"> - <h4 class="title is-4 has-text-centered">{{ article.title }}</h4> - </div> - <!-- end of post header --> + <!-- post header --> + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered">{{ article.title }}</h4> + </div> + <!-- end of post header --> - <!-- post content --> - <div class="card-content"> - <div class="content"> - <div class="card-inner-wrapper"> - <!-- post text --> - <div class="card-content-text has-text-justified"> - {{ article.content }} - </div> - <!-- end of post text --> + <!-- post content --> + <div class="card-content"> + <div class="content"> + <div class="card-inner-wrapper"> + <!-- post text --> + <div class="card-content-text has-text-justified"> + {{ article.content }} + </div> + <!-- end of post text --> - <!-- post footer --> - <div class="card-content-footer-small"> - <div class="navbar is-social-center"> - <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" /> - <title>GNUSocial</title> - </svg> - </span> - </a> - <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" /> - <title>Diaspora</title> - </svg> - </span> - </a> - <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" /> - <title>Mastodom</title> - </svg> - </span> - </a> + <!-- post footer --> + <div class="card-content-footer-small"> + <div class="navbar is-social-center"> + <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" /> + <title>GNUSocial</title> + </svg> + </span> + </a> + <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" /> + <title>Diaspora</title> + </svg> + </span> + </a> + <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" /> + <title>Mastodom</title> + </svg> + </span> + </a> + </div> + <!-- post footer nav --> + <div class="columns"> + <div class="column has-text-left"> + <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a> </div> - <!-- post footer nav --> - <div class="columns"> - <div class="column has-text-left"> - <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a> - </div> - <div class="column has-text-right"> + <div class="column has-text-right"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#calendar" /> + </svg> + </span> + {% set año = article.date|strftime('%Y') %} + {% set mes = article.date|strftime('%m') %} + {% set nombre_mes = article.date|strftime('%B') %} + <time class="entry-date published" + datetime="{{ article.date.isoformat() }}"> + <small> + {{ article.date|strftime('%a %-d') }} + <a href="{{ SITEURL }}/archives/{{ año }}/{{ mes }}/" + title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}"> + {{ nombre_mes }} + </a> + <a href="{{ SITEURL }}/archives/{{ año }}/" + title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }} + </a> + </small> + </time> + + {% if not HIDE_AUTHORS and article.authors %} <span class="soumaicon"> <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#calendar" /> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#user"/> </svg> </span> - {% set año = article.date|strftime('%Y') %} - {% set mes = article.date|strftime('%m') %} - {% set nombre_mes = article.date|strftime('%B') %} - <time class="entry-date published" - datetime="{{ article.date.isoformat() }}"> + {% for author in article.authors %} <small> - {{ article.date|strftime('%a %-d') }} - <a href="{{ SITEURL }}/archives/{{ año }}/{{ mes }}/" - title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}"> - {{ nombre_mes }} - </a> - <a href="{{ SITEURL }}/archives/{{ año }}/" - title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }} - </a> + <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %} </small> - </time> - - {% if not HIDE_AUTHORS and article.authors %} - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#user"/> - </svg> - </span> - {% for author in article.authors %} - <small> - <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %} - </small> - {% endfor %} - {% endif %} + {% endfor %} + {% endif %} - </div> </div> - <!-- end of post footer nav --> </div> - <!-- end of post footer --> + <!-- end of post footer nav --> </div> + <!-- end of post footer --> </div> </div> </div> - <!-- end of post content --> - </div> - <!-- end of post --> + <!-- end of post content --> + </div> - <!-- end of post column --> + <!-- end of post --> </div> + <!-- end of post column --> </div> - <!-- end of page content --> {% endblock %} diff --git a/cl-theme/templates/authors.html b/cl-theme/templates/authors.html index afc4007..1054070 100644 --- a/cl-theme/templates/authors.html +++ b/cl-theme/templates/authors.html @@ -8,121 +8,119 @@ {% block title %}{% trans %}Autores de {{ SITENAME }}{% endtrans %}{% endblock %} {% block content %} - <div class="main-content"> - <div class="container"> - <!-- start of pages --> - <div class="columns is-multiline is-centered"> - <!-- start of page --> - <div class="column is-7"> - <div class="card"> - <!-- post header --> - <div class="card-content-header"> - <h4 class="title is-4 has-text-centered">{{ _('Créditos') }}</h4> - </div> - <!-- end of post header --> - <!-- post content --> - <div class="card-content"> - <div class="content"> - <div class="card-inner-wrapper"> - <!-- post text --> - <div class="card-content-text has-text-justified"> + <div class="container"> + <!-- start of pages --> + <div class="columns is-multiline is-centered"> + <!-- start of page --> + <div class="column is-7"> + <div class="card"> + <!-- post header --> + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered">{{ _('Créditos') }}</h4> + </div> + <!-- end of post header --> + <!-- post content --> + <div class="card-content"> + <div class="content"> + <div class="card-inner-wrapper"> + <!-- post text --> + <div class="card-content-text has-text-justified"> - <h2>{{ _('Artículos') }}</h2> - <ul> - {%- for author, articles in authors|sort %} - <li> - <a href="{{ SITEURL }}/{{ author.url }}" - title="{% trans %}Artículos escritos por {{ author }}{% endtrans %}">{{ author }}</a> - ({{ articles|count }}) - </li> - {% endfor %} - </ul> + <h2>{{ _('Artículos') }}</h2> + <ul> + {%- for author, articles in authors|sort %} + <li> + <a href="{{ SITEURL }}/{{ author.url }}" + title="{% trans %}Artículos escritos por {{ author }}{% endtrans %}">{{ author }}</a> + ({{ articles|count }}) + </li> + {% endfor %} + </ul> - <h2>{{ _('Programación') }}</h2> - <ul> - <li><a href="https://www.freakspot.net/" title="{{ _('Sitio para gente Libre') }}">Jorge Maldonado Ventura</a></li> - <li><a href="https://heckyel.ga/" title="{{ _('Sitio web de Jesús E.') }}">Jesús E.</a></li> - </ul> + <h2>{{ _('Programación') }}</h2> + <ul> + <li><a href="https://www.freakspot.net/" title="{{ _('Sitio para gente Libre') }}">Jorge Maldonado Ventura</a></li> + <li><a href="https://heckyel.ga/" title="{{ _('Sitio web de Jesús E.') }}">Jesús E.</a></li> + </ul> - <h2>{{ _('Traducción') }}</h2> - <ul> - <li><a href="https://rosenzweig.io/" title="{{ _('Sitio web de Alyssa Rosenzweig') }}">Alyssa Rosenzweig</a></li> - <li>Jorge Maldonado Ventura</li> - </ul> + <h2>{{ _('Traducción') }}</h2> + <ul> + <li><a href="https://rosenzweig.io/" title="{{ _('Sitio web de Alyssa Rosenzweig') }}">Alyssa Rosenzweig</a></li> + <li>Jorge Maldonado Ventura</li> + </ul> - <h2>{{ _('Software que usa la página') }}</h2> - {% set software = (('https://nginx.org/', 'Nginx'), - ('http://babel.pocoo.org/', 'Babel'), - ('https://pypi.org/project/beautifulsoup4/', 'BeautifulSoup4'), - ('https://nodejs.org/', 'nodejs'), - ('https://www.python.org/', 'Python'), - ('https://blog.getpelican.com/', 'Pelican'), - ('https://pypi.org/project/Markdown/', 'Markdown'), - ('https://nodejs.org/', 'nodejs'), - ('https://www.npmjs.com/', 'npm'), - ('https://github.com/fmarcia/UglifyCSS', 'uglifycss'), - ('https://github.com/mishoo/UglifyJS', 'uglifyjs'), - ('https://conocimientoslibres.tuxfamily.org/pages/librejs.html', _('Algunos programas de JavaScript'),)) %} - <ul> - {% for program in software %} - <li><a href="{{ program[0] }}" title="{{ _('Sitio web de %(programa)s', programa=program[1]) }}"></a>{{ program[1] }}</li> - {% endfor %} - </ul> - <h2>{{ _('Miscelánea') }}</h2> - <ul> - <li>CitoplasmaC</li> - </ul> + <h2>{{ _('Software que usa la página') }}</h2> + {% set software = (('https://nginx.org/', 'Nginx'), + ('http://babel.pocoo.org/', 'Babel'), + ('https://pypi.org/project/beautifulsoup4/', 'BeautifulSoup4'), + ('https://nodejs.org/', 'nodejs'), + ('https://www.python.org/', 'Python'), + ('https://blog.getpelican.com/', 'Pelican'), + ('https://pypi.org/project/Markdown/', 'Markdown'), + ('https://nodejs.org/', 'nodejs'), + ('https://www.npmjs.com/', 'npm'), + ('https://github.com/fmarcia/UglifyCSS', 'uglifycss'), + ('https://github.com/mishoo/UglifyJS', 'uglifyjs'), + ('https://conocimientoslibres.tuxfamily.org/pages/librejs.html', _('Algunos programas de JavaScript'),)) %} + <ul> + {% for program in software %} + <li><a href="{{ program[0] }}" title="{{ _('Sitio web de %(programa)s', programa=program[1]) }}"></a>{{ program[1] }}</li> + {% endfor %} + </ul> + <h2>{{ _('Miscelánea') }}</h2> + <ul> + <li>CitoplasmaC</li> + </ul> - </div> - <!-- end of post text --> + </div> + <!-- end of post text --> - <!-- post footer --> - <div class="card-content-footer-small"> - <div class="navbar is-social-center"> - <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" /> - <title>GNUSocial</title> - </svg> - </span> - </a> - <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" /> - <title>Diaspora</title> - </svg> - </span> - </a> - <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" /> - <title>Mastodom</title> - </svg> - </span> - </a> - </div> - <!-- post footer nav --> - <div class="columns"> - <div class="column has-text-left"> - <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a> - </div> + <!-- post footer --> + <div class="card-content-footer-small"> + <div class="navbar is-social-center"> + <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" /> + <title>GNUSocial</title> + </svg> + </span> + </a> + <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" /> + <title>Diaspora</title> + </svg> + </span> + </a> + <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" /> + <title>Mastodom</title> + </svg> + </span> + </a> + </div> + <!-- post footer nav --> + <div class="columns"> + <div class="column has-text-left"> + <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a> </div> - <!-- end of post footer nav --> - </div> - <!-- end of post footer --> + <!-- end of post footer nav --> + </div> + <!-- end of post footer --> </div> </div> - <!-- end page content --> </div> + <!-- end page content --> </div> - <!-- end of page --> </div> - <!-- end of pages --> + <!-- end of page --> </div> + <!-- end of pages --> </div> {% endblock %} diff --git a/cl-theme/templates/page.html b/cl-theme/templates/page.html index 9d5a232..31288e4 100644 --- a/cl-theme/templates/page.html +++ b/cl-theme/templates/page.html @@ -29,89 +29,85 @@ {% endblock %} {% block content %} + <div class="container"> + <!-- start of pages --> + <div class="columns is-multiline is-centered"> + <!-- start of page --> + <div class="column is-7"> + <div class="card"> + <!-- post header --> + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered">{{ page.title }}</h4> + </div> + <!-- end of post header --> + <!-- post content --> + <div class="card-content"> + <div class="content"> + <div class="card-inner-wrapper"> + <!-- post text --> + <div class="card-content-text has-text-justified"> + {{ page.content }} + </div> + <!-- end of post text --> - <div class="main-content"> - <div class="container"> - <!-- start of pages --> - <div class="columns is-multiline is-centered"> - <!-- start of page --> - <div class="column is-7"> - <div class="card"> - <!-- post header --> - <div class="card-content-header"> - <h4 class="title is-4 has-text-centered">{{ page.title }}</h4> - </div> - <!-- end of post header --> - <!-- post content --> - <div class="card-content"> - <div class="content"> - <div class="card-inner-wrapper"> - <!-- post text --> - <div class="card-content-text has-text-justified"> - {{ page.content }} + <!-- post footer --> + <div class="card-content-footer-small"> + <div class="navbar is-social-center"> + <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" /> + <title>GNUSocial</title> + </svg> + </span> + </a> + <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" /> + <title>Diaspora</title> + </svg> + </span> + </a> + <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" /> + <title>Mastodom</title> + </svg> + </span> + </a> </div> - <!-- end of post text --> - - <!-- post footer --> - <div class="card-content-footer-small"> - <div class="navbar is-social-center"> - <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" /> - <title>GNUSocial</title> - </svg> - </span> - </a> - <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" /> - <title>Diaspora</title> - </svg> - </span> - </a> - <a class="navbar-item" href="{{ SOCIAL['mastodom'] }}"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodom" /> - <title>Mastodom</title> - </svg> - </span> - </a> + <!-- post footer nav --> + <div class="columns"> + <div class="column has-text-left"> + <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a> </div> - <!-- post footer nav --> - <div class="columns"> - <div class="column has-text-left"> - <a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a> - </div> - <div class="column has-text-right"> - <span class="soumaicon"> - <svg> - <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#translate" /> - </svg> - </span> - {% import 'translations.html' as translations with context %} - {% if translations.translations_for(page) %} - <small> - {{ translations.translations_for(page) }} - </small> - {% endif %} - </div> + <div class="column has-text-right"> + <span class="soumaicon"> + <svg> + <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#translate" /> + </svg> + </span> + {% import 'translations.html' as translations with context %} + {% if translations.translations_for(page) %} + <small> + {{ translations.translations_for(page) }} + </small> + {% endif %} </div> - <!-- end of post footer nav --> </div> - <!-- end of post footer --> + <!-- end of post footer nav --> </div> + <!-- end of post footer --> </div> </div> - <!-- end page content --> </div> + <!-- end page content --> </div> - <!-- end of page --> </div> - <!-- end of pages --> + <!-- end of page --> </div> + <!-- end of pages --> </div> - {% endblock %} diff --git a/cl-theme/templates/period_archives.html b/cl-theme/templates/period_archives.html index b1510b8..d1efa0f 100644 --- a/cl-theme/templates/period_archives.html +++ b/cl-theme/templates/period_archives.html @@ -1,47 +1,44 @@ {% extends "base.html" %} {% block content %} - <div class="main-content"> - <div class="container"> - <!-- start of posts --> - <div class="columns is-multiline is-centered"> - <!-- start of post --> - <div class="column is-10"> - <div class="card"> + <div class="container"> + <!-- start of posts --> + <div class="columns is-multiline is-centered"> + <!-- start of post --> + <div class="column is-10"> + <div class="card"> - <div class="card-content-header"> - <h4 class="title is-4 has-text-centered"> - {% set len_period = period|length %} - {%- if len_period == 1 -%} - {{ _('Archivos de %(año)d', año=period[0]) }} - {%- elif len_period == 2 -%} - {{ _('Archivos de %(mes)s de %(año)d', año=period[0], mes=period[1]) }} - {%- elif len_period == 3 -%} - {{ _('Archivos del %(dia)d de %(mes)s de %(año)d', año=period[0], mes=period[1], dia=period[2]) }} - {%- endif -%} - </h4> - </div> + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered"> + {% set len_period = period|length %} + {%- if len_period == 1 -%} + {{ _('Archivos de %(año)d', año=period[0]) }} + {%- elif len_period == 2 -%} + {{ _('Archivos de %(mes)s de %(año)d', año=period[0], mes=period[1]) }} + {%- elif len_period == 3 -%} + {{ _('Archivos del %(dia)d de %(mes)s de %(año)d', año=period[0], mes=period[1], dia=period[2]) }} + {%- endif -%} + </h4> + </div> - <div class="card-content"> - <div class="content"> - <div class="card-inner-wrapper"> + <div class="card-content"> + <div class="content"> + <div class="card-inner-wrapper"> - <div class="entry-content"> - <dl> - {% for article in dates %} - <dt>{{ article.date|strftime('%A %-d de %B de %Y a las %H:%M %z') }}</dt> - <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> - {% endfor %} - </dl> - </div> + <div class="entry-content"> + <dl> + {% for article in dates %} + <dt>{{ article.date|strftime('%A %-d de %B de %Y a las %H:%M %z') }}</dt> + <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> + {% endfor %} + </dl> </div> </div> </div> - </div> + </div> </div> </div> </div> - {% endblock %} |