Skip to content
Snippets Groups Projects
Verified Commit 31b85b18 authored by Jake's avatar Jake :speech_balloon:
Browse files

Merge branch 'master' into more-native-datatypes

parents a2f5607e 9ba08289
Branches
No related tags found
No related merge requests found
Pipeline #313906 failed
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader, StrictUndefined
import os import os
...@@ -12,7 +12,8 @@ class Writer: ...@@ -12,7 +12,8 @@ class Writer:
self.env = Environment( self.env = Environment(
loader=FileSystemLoader(theme_dir + "/templates"), loader=FileSystemLoader(theme_dir + "/templates"),
autoescape=False autoescape=False,
undefined = StrictUndefined
) )
print("templates: ", self.env.list_templates()) print("templates: ", self.env.list_templates())
......
...@@ -157,7 +157,7 @@ body > header img { ...@@ -157,7 +157,7 @@ body > header img {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: none; display: none;
background-color: rgba(120,120, 120, 0.5); background-color: rgba(120,120, 120, 0.7);
-webkit-user-select: none; /* Safari */ -webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */ -moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */ -ms-user-select: none; /* IE10+/Edge */
...@@ -190,6 +190,8 @@ body > header img { ...@@ -190,6 +190,8 @@ body > header img {
} }
#sitemenu-container nav > ul { #sitemenu-container nav > ul {
flex-direction: column; flex-direction: column;
max-height: calc(100vh - 3.2rem);
overflow: scroll;
} }
#sitemenu-container nav > ul > li { #sitemenu-container nav > ul > li {
width: 100%; width: 100%;
......
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ render.softbreak_span(page.title) }}{% endblock %} {% block title %}{{ render.softbreak_span(page.title)|striptags }}{% endblock %}
{% block extra_head %} {% block extra_head %}
{%- for translation in page.translations -%}
<link rel="alternate" hreflang="{{ translation.lang }}" href="{{ siteurl }}/{{ translation.url }}">
{%- endfor -%}
{% if page.summary %}
<meta name="description" content="{{ page.summary | striptags | safe | truncate(150) }}" />
{% endif %}
{% endblock %} {% endblock %}
{% block breadcrumb %} {% block breadcrumb %}
......
{% extends "base.html" %} {% extends "base.html" %}
{% block title -%} {% block title -%}
{%- call(tagtitle, tagcolor, tagurl, tagpage, tagpages) get.tag_by_name(tag.name, l) -%} {%- call(tagtitle, tagcolor, tagurl, tagpage, tagpages) get.tag_by_name(tag.name, l) -%}
{{ t[l].title_prefix }}{{ t[l].sitename }}{{ t[l].title_suffix }} - {{ render.softbreak_span(tagtitle) }} {{ t[l].title_prefix }}{{ t[l].sitename }}{{ t[l].title_suffix }} - {{ render.softbreak_span(tagtitle)|striptags }}
{%- endcall -%} {%- endcall -%}
{%- endblock -%} {%- endblock -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment