blob: 6d316cb25c9cd464900e41905646e0eb0953b0c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{#
This Template is for the 'Pages' (abridge/content/pages) eg: example.com/about/ example.com/privacy/
This Template can also be used as a home page for the index, eg: example.com/
Some people prefer a landing page for the index, and then use a separate paginated page for their blog.
#}
{% extends "base.html" %}
{%- block seo -%}
{{- super() -}}
{%- set title_addition = "" -%}
{%- if page.title and config.title -%}
{%- set title = page.title -%}
{%- set title_addition = title_separator ~ config.title -%}
{%- elif section.title and config.title -%}
{%- set title = section.title -%}
{%- set title_addition = title_separator ~ config.title -%}
{%- elif page.title -%}
{%- set title = page.title -%}
{%- elif section.title -%}
{%- set title = section.title -%}
{%- else -%}
{%- set title = config.title -%}
{%- endif -%}
{%- if page.description -%}
{%- set description = page.description -%}
{%- elif section and section.description -%}
{%- set description = section.description -%}
{%- else -%}
{%- set description = config.description -%}
{%- endif -%}
{{<seo config={config} title={title} title_addition={title_addition} description={description or ""} />}}
{%- endblock seo -%}
{%- block content %}
<div>
{%- if page.content %}
{{ page.content | safe }}
{%- elif section.content %}
{{ section.content | safe }}
{%- endif %}
</div>
{%- endblock content %}
|