diff options
author | Jesús <heckyel@hyperbola.info> | 2019-11-22 15:12:22 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-11-22 15:12:22 -0500 |
commit | 720985a502788c17cb74813faf2e70f384c0e14f (patch) | |
tree | f5fcf30d8f455d5df14a90afeb4a2f6520b5ee2c /cl-theme | |
parent | 05c448b3ac890a8416092c951c3ab89dff911b04 (diff) | |
download | cl-720985a502788c17cb74813faf2e70f384c0e14f.tar.lz cl-720985a502788c17cb74813faf2e70f384c0e14f.tar.xz cl-720985a502788c17cb74813faf2e70f384c0e14f.zip |
Added lost tags
Diffstat (limited to 'cl-theme')
-rw-r--r-- | cl-theme/templates/categories.html | 16 | ||||
-rw-r--r-- | cl-theme/templates/category.html | 21 | ||||
-rw-r--r-- | cl-theme/templates/tag.html | 17 | ||||
-rw-r--r-- | cl-theme/templates/tags.html | 51 |
4 files changed, 105 insertions, 0 deletions
diff --git a/cl-theme/templates/categories.html b/cl-theme/templates/categories.html new file mode 100644 index 0000000..88071f9 --- /dev/null +++ b/cl-theme/templates/categories.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block head %} + {% block title %} + <title>{{ SITENAME }}</title> + {% endblock %} + {{ super() }} +{% endblock %} + +{% block content %} +<ul> +{% for category, articles in categories %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li> +{% endfor %} +</ul> +{% endblock %} diff --git a/cl-theme/templates/category.html b/cl-theme/templates/category.html new file mode 100644 index 0000000..02b5595 --- /dev/null +++ b/cl-theme/templates/category.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block head %} + <!-- Hola --> + {% block title %} + <title>{{ category.name }} - {{SITENAME}}</title> + {% endblock %} + {{ super() }} + <style> + .card-content-header { + margin-bottom: 2rem; + } + </style> +{% endblock %} + +{% block content %} + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered">{{ category }}</h4> + </div> + {{ super() }} +{% endblock %} diff --git a/cl-theme/templates/tag.html b/cl-theme/templates/tag.html new file mode 100644 index 0000000..9ddf6b5 --- /dev/null +++ b/cl-theme/templates/tag.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block head %} + {% block title %}<title>#{{ tag.name }} - {{SITENAME}}</title>{% endblock title %} + {{ super() }} + <meta name="robots" content="noindex, follow" /> + <style> + .card-content-header { + margin-bottom: 2rem; + } + </style> +{% endblock %} +{% block content %} + <div class="card-content-header"> + <h4 class="title is-4 has-text-centered">#{{ tag }}</h4> + </div> + {{ super() }} +{% endblock %} diff --git a/cl-theme/templates/tags.html b/cl-theme/templates/tags.html new file mode 100644 index 0000000..320c5d7 --- /dev/null +++ b/cl-theme/templates/tags.html @@ -0,0 +1,51 @@ +{% extends "base.html" %} + +{% block head %} + {% block title %} + <title>{{ _('Lista de etiquetas de %(sitename)s', sitename=SITENAME)}}</title> + {% endblock %} + {{ super() }} + <meta name="description" content="{% trans %}Lista de etiquetas de {{ SITENAME }}{% endtrans %}"> + <meta name="keywords" content="{{ _('etiquetas,palabras clave') }}"> + <style> + .card-content-header { + margin-bottom: 2rem; + } + </style> +{% endblock %} + +{% block content %} + <div class="container"> + <!-- start of posts --> + <div class="columns is-multiline is-centered"> + <!-- start of post --> + <article class="column is-7"> + <div class="card"> + <!-- post header --> + <div class="card-content-header"> + <h2 class="title is-4 has-text-centered">{{ _('Lista de etiquetas') }}</h2> + </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"> + <ul> + {%- for tag, articles in tags|sort %} + <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> + </div> + <!-- end of post text --> + </div> + </div> + </div> + </div> + <!-- end of post content --> + </article> + </div> + </div> +{% endblock %} |