aboutsummaryrefslogtreecommitdiffstats
path: root/cl-theme
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-11-23 20:01:40 -0500
committerJesús <heckyel@hyperbola.info>2019-11-23 20:01:40 -0500
commit7684aca39a196ff415ac330c08f127ea92d17a43 (patch)
treeb02fe01f64e14fe2b5382c21e2d4be82ec876aa3 /cl-theme
parent2f91e0eb6af65a7c869797affd3dca840d1e9fdf (diff)
downloadcl-7684aca39a196ff415ac330c08f127ea92d17a43.tar.lz
cl-7684aca39a196ff415ac330c08f127ea92d17a43.tar.xz
cl-7684aca39a196ff415ac330c08f127ea92d17a43.zip
cleanup code
Diffstat (limited to 'cl-theme')
-rw-r--r--cl-theme/templates/article.html6
-rw-r--r--cl-theme/templates/author.html29
-rw-r--r--cl-theme/templates/category.html1
-rw-r--r--cl-theme/templates/tag.html2
4 files changed, 21 insertions, 17 deletions
diff --git a/cl-theme/templates/article.html b/cl-theme/templates/article.html
index cbe772b..92c91ba 100644
--- a/cl-theme/templates/article.html
+++ b/cl-theme/templates/article.html
@@ -36,7 +36,7 @@
{% endif %}
<!-- Meta Article -->
<meta name="author" content="{{ article.author.name }}"/>
- <meta name="description" content="{{ seo_description }}"/>
+ <meta name="description" content="{{ seo_description|striptags }}"/>
<meta name="keywords" content="{{ article.tags|join(', ') }}"/>
<meta property="article:author" content="{{ article.author }}"/>
<meta property="article:section" content="{{ article.category }}"/>
@@ -49,7 +49,7 @@
<meta property="og:type" content="article"/>
<meta property="og:tag" content="{{ article.tags|join(',')|escape }}"/>
<meta property="og:title" content="{{ article.title }} - {{ SITENAME }}"/>
- <meta property="og:description" content="{{ seo_description }}"/>
+ <meta property="og:description" content="{{ seo_description|striptags }}"/>
<meta property="og:site_name" content="{{ SITENAME }}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
<meta property="og:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
@@ -57,7 +57,7 @@
<!-- Twitter -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="{{ article.title }} - {{ SITENAME }}"/>
- <meta name="twitter:description" content="{{ seo_description }}"/>
+ <meta name="twitter:description" content="{{ seo_description|striptags }}"/>
<meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}"/>
<meta name="twitter:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}"/>
{% endblock %}
diff --git a/cl-theme/templates/author.html b/cl-theme/templates/author.html
index 8f4627a..e55b534 100644
--- a/cl-theme/templates/author.html
+++ b/cl-theme/templates/author.html
@@ -1,18 +1,21 @@
{% extends "index.html" %}
-{% block title %}
- <title>{{ _('Artículos escritos por %(author)s en %(sitename)s', author=author, sitename=SITENAME) }}</title>
-{% endblock %}
-{% block seo %}
- <!-- Meta Author -->
- <meta name="author" content="{{ author }}"/>
- <meta name="description" content="{{ _('Artículos escritos por %(author)s en %(sitename)s', author=author, sitename=SITENAME) }}"/>
- <meta name="keywords" content="{% trans %}articulista,artículos,author,autor {{ author }},escritor,{{ author }}{% endtrans %}"/>
- <style>
- .card-content-header {
- margin-bottom: 2rem;
- }
- </style>
+{% block head %}
+ {% block title %}
+ <title>{{ _('Artículos escritos por %(author)s en %(sitename)s', author=author, sitename=SITENAME) }}</title>
+ {% endblock %}
+ {{ super() }}
+ {% block seo %}
+ <!-- Meta Author -->
+ <meta name="author" content="{{ author }}"/>
+ <meta name="description" content="{{ _('Artículos escritos por %(author)s en %(sitename)s', author=author, sitename=SITENAME) }}"/>
+ <meta name="keywords" content="{% trans %}articulista,artículos,author,autor {{ author }},escritor,{{ author }}{% endtrans %}"/>
+ <style>
+ .card-content-header {
+ margin-bottom: 2rem;
+ }
+ </style>
+ {% endblock %}
{% endblock %}
{% block content %}
diff --git a/cl-theme/templates/category.html b/cl-theme/templates/category.html
index 02b5595..fdb5168 100644
--- a/cl-theme/templates/category.html
+++ b/cl-theme/templates/category.html
@@ -1,7 +1,6 @@
{% extends "base.html" %}
{% block head %}
- <!-- Hola -->
{% block title %}
<title>{{ category.name }} - {{SITENAME}}</title>
{% endblock %}
diff --git a/cl-theme/templates/tag.html b/cl-theme/templates/tag.html
index 9ddf6b5..5cbd0b1 100644
--- a/cl-theme/templates/tag.html
+++ b/cl-theme/templates/tag.html
@@ -10,8 +10,10 @@
</style>
{% endblock %}
{% block content %}
+ <!-- Main tag -->
<div class="card-content-header">
<h4 class="title is-4 has-text-centered">#{{ tag }}</h4>
</div>
{{ super() }}
+ <!--/Main tag -->
{% endblock %}