diff --git a/docs/themes/creating/index.html b/docs/themes/creating/index.html index 65010aad..1b6f8ac3 100644 --- a/docs/themes/creating/index.html +++ b/docs/themes/creating/index.html @@ -158,7 +158,7 @@ parametrize themes:
[theme_settings] name = "Lektor" -github_url = "https://github.com/lektor" +github_url = "https://github.com/lektor"
And those settings will be accessed in templates through the config env variable:
diff --git a/index.html b/index.html index 9a927f5a..699255ab 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ speak multiple languages and allow you to easily create localized websites.body
field is interpreted as being mark
[fields.body]
label = Body
type = polymorphic
-polymorphic_type = 'html' if this.body.lstrip().startswith('<') else 'markdown'
+polymorphic_type = 'html' if this.body.lstrip().startswith('<') else 'markdown'
In this case, the body
field will be interpreted as raw HTML if the
content of that field starts with a “<
”, otherwise it will be
diff --git a/plugins/lektor-shortcodes/index.html b/plugins/lektor-shortcodes/index.html
index 2b893cba..5460280d 100644
--- a/plugins/lektor-shortcodes/index.html
+++ b/plugins/lektor-shortcodes/index.html
@@ -165,7 +165,7 @@ full Jinja templates, although (due to some limitations of ini files) they need
to be on one line.
For instance, for the example above, the config file could be:
[global]
-image = '<div class="align{{ align }}">{% if link %}<a href="{{ link }}"{% if not link.startswith("http") %} data-lightbox="gallery"{% endif %}>{% endif %}<img src="{{ image }}">{% if link %}</a>{% endif %}{% if caption %}<span class="caption">{{ caption }}</span>{% endif %}</div>'
+image = '<div class="align{{ align }}">{% if link %}<a href="{{ link }}"{% if not link.startswith("http") %} data-lightbox="gallery"{% endif %}>{% endif %}<img src="{{ image }}">{% if link %}</a>{% endif %}{% if caption %}<span class="caption">{{ caption }}</span>{% endif %}</div>'
This will allow you to use shortcodes with optional arguments, like so:
# An image with no caption or link:
diff --git a/plugins/lektor-tags/index.html b/plugins/lektor-tags/index.html
index fe8073a1..d28610fc 100644
--- a/plugins/lektor-tags/index.html
+++ b/plugins/lektor-tags/index.html
@@ -202,7 +202,7 @@ tea
items = this.parent.children.filter(F.tags.contains(tag))
You can sort and filter with any expression:
-items = this.parent.children.filter(F.tags.contains(tag) and F.status == 'published').order_by('-pub_date')
+items = this.parent.children.filter(F.tags.contains(tag) and F.status == 'published').order_by('-pub_date')
If the parent page has a pagination query you may want to use it for tagged pages:
items = this.parent.pagination.items.filter(F.tags.contains(tag))
diff --git a/showcase/allnew-selfstudythai/index.html b/showcase/allnew-selfstudythai/index.html
index f5240ab8..b2c803bf 100644
--- a/showcase/allnew-selfstudythai/index.html
+++ b/showcase/allnew-selfstudythai/index.html
@@ -83,7 +83,13 @@
-
+
+
+
+
+
+
+
@@ -101,13 +107,7 @@
-
-
-
-
-
-
-
+
diff --git a/showcase/andrew-shay/index.html b/showcase/andrew-shay/index.html
index b424342e..2f1e4563 100644
--- a/showcase/andrew-shay/index.html
+++ b/showcase/andrew-shay/index.html
@@ -76,13 +76,13 @@
-
+
-
+
diff --git a/showcase/architekten-ronacher/index.html b/showcase/architekten-ronacher/index.html
index d0986b70..efc4c940 100644
--- a/showcase/architekten-ronacher/index.html
+++ b/showcase/architekten-ronacher/index.html
@@ -85,12 +85,6 @@ the overview page.
-
-
-
-
-
-
@@ -102,6 +96,12 @@ the overview page.
+
+
+
+
+
+