aboutsummaryrefslogtreecommitdiff
path: root/templates/categories
diff options
context:
space:
mode:
authorJieiku2022-05-31 01:24:13 -0700
committerJieiku2022-05-31 01:24:13 -0700
commitd1deb8486f1f70e5ad44cb65279e52e1ed64ba89 (patch)
treed8b39996de28b4ec3273f05da22c6b3e8fb57c61 /templates/categories
parent0199ea6e9b76541e89b4e2749848bdb1c39d42aa (diff)
downloadabridge-d1deb8486f1f70e5ad44cb65279e52e1ed64ba89.tar.gz
abridge-d1deb8486f1f70e5ad44cb65279e52e1ed64ba89.tar.bz2
abridge-d1deb8486f1f70e5ad44cb65279e52e1ed64ba89.zip
Seo Per Page
Diffstat (limited to 'templates/categories')
-rw-r--r--templates/categories/list.html15
-rw-r--r--templates/categories/single.html15
2 files changed, 30 insertions, 0 deletions
diff --git a/templates/categories/list.html b/templates/categories/list.html
index 485d54d..f85f732 100644
--- a/templates/categories/list.html
+++ b/templates/categories/list.html
@@ -1,5 +1,20 @@
{% extends "base.html" %}
+{%- block seo %}
+ {{- super() }}
+ {%- set title = "Categories" %}
+
+ {%- if config.title %}
+ {%- set title_addition = title_separator ~ config.title %}
+ {%- else %}
+ {%- set title_addition = "" %}
+ {%- endif %}
+
+ {%- set description = config.description %}
+
+ {{- macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }}
+{%- endblock seo %}
+
{%- block content %}
<div>
<center>
diff --git a/templates/categories/single.html b/templates/categories/single.html
index 0fe639d..f1c5cfe 100644
--- a/templates/categories/single.html
+++ b/templates/categories/single.html
@@ -1,5 +1,20 @@
{% extends "base.html" %}
+{%- block seo %}
+ {{- super() }}
+ {%- set title = term.name ~ " category" %}
+
+ {%- if config.title %}
+ {%- set title_addition = title_separator ~ config.title %}
+ {%- else %}
+ {%- set title_addition = "" %}
+ {%- endif %}
+
+ {%- set description = config.description %}
+
+ {{- macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }}
+{%- endblock seo %}
+
{%- block content %}
<div>
<h2>{{ term.name }}</h2>