Mercurial > libervia-templates
comparison sat_templates/templates/default/base/base.html @ 209:d586ea13cfed
blog: fixed setting of title:
title was not show when embedded was True, but this is always the case (articles.html
template is always shown in base.html). A new "blog_page" boolean is set when
articles.html is the main page displayed (i.e. blog posts are not embedded in an other
page like events), and use to display the title, fixing the originally intented behaviour.
fix 298
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Jun 2019 12:49:04 +0200 |
parents | a1fa6744c78e |
children | b2f0f81b2cd2 |
comparison
equal
deleted
inserted
replaced
208:89f940763b02 | 209:d586ea13cfed |
---|---|
1 {% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} | 1 {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} |
2 {% set embedded = True %} | |
2 {% import 'components/common.html' as component with context %} | 3 {% import 'components/common.html' as component with context %} |
3 {{ script.include('common', '') }} {# common.js is, as its name state, a common script, so it's useful to import it here #} | 4 {{ script.include('common', '') }} {# common.js is, as its name state, a common script, so it's useful to import it here #} |
4 {{ script.include('dom_update') }} {# will check page for dom element to modify when javascript is enabled #} | 5 {{ script.include('dom_update') }} {# will check page for dom element to modify when javascript is enabled #} |
5 <!DOCTYPE html> | 6 <!DOCTYPE html> |
6 <html> | 7 <html> |