diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..209a5bd --- /dev/null +++ b/templates/base.html @@ -0,0 +1,185 @@ +{%- import 'macros/seo.html' as macros_seo %} +{%- import "macros/macros.html" as macros %} +{# Load current language i18n data from .toml files in user's '/i18n' folder, use theme as fallback. #} +{%- set i18n = load_data(path="i18n/" ~ lang ~ '.toml', required=false) -%} +{%- if not i18n -%}{%- set i18n = load_data(path="themes/abridge/i18n/" ~ lang ~ ".toml", required=false) -%}{%- endif %} + +{%- set uglyurls = config.extra.uglyurls | default(value=false) -%} +{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %} + + +
+ {%- include "partials/head.html" %} + + {#- Rss / Atom Feed #} + {%- block rss %} + {%- if config.generate_feed %} + + {%- endif %} + + {%- endblock rss %} + + {#- SEO: title, description, etc #} + {%- block seo %} + {%- if config.extra.title_separator %} + {%- set title_separator = " " ~ config.extra.title_separator ~ " " -%} + {%- else %} + {%- set title_separator = " | " -%} + {%- endif %} + {%- endblock seo %} + + {%- block comments_init %} + {%- endblock comments_init %} + + {%- include "partials/head_js.html" %} + + +{%- block header %} +