Open jvanasco opened 5 years ago
We allow for a field to override another, such as this:
page.html:
{% extends "site_layout.html" %} {% block meta_title %}{{ this.meta_title or this.title }}{% endblock %}
site_layout.html:
<title>{% block title %}title{% endblock %}</title> <meta name="title" content="{% block meta_title %}{% endblock %}"/>
A fatal exception is raised if lektor-jinja-content is enabled and the meta_title or title is not defined in a contents.lr file.
contents.lr
valid:
title: sample title --- meta_title: sample meta_title
invalid:
title: sample title
I am working on a PR
We allow for a field to override another, such as this:
page.html:
site_layout.html:
A fatal exception is raised if lektor-jinja-content is enabled and the meta_title or title is not defined in a
contents.lr
file.valid:
invalid:
I am working on a PR