summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/base.html2
-rw-r--r--templates/blog-post.html10
-rw-r--r--templates/includes/blog-json-ld.html4
3 files changed, 8 insertions, 8 deletions
diff --git a/templates/base.html b/templates/base.html
index 051abf7..ddcaa60 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -43,7 +43,7 @@
}, {
"@type": "WebSite",
"@id": "{{ '/' | url(absolute=True, external=True) }}#website",
- "name": "{{ bag('blog.name') }}",
+ "name": {{ bag('blog.name') | tojson }},
"url": "{{ '/' | url(absolute=True, external=True) }}",
"author": {
"@id": "{{ '/about' | url(absolute=True, external=True) }}#person"
diff --git a/templates/blog-post.html b/templates/blog-post.html
index 4f1e5a2..10f8f7e 100644
--- a/templates/blog-post.html
+++ b/templates/blog-post.html
@@ -74,9 +74,9 @@
"isPartOf": {
"@id": "{{ blog_id }}"
},
- "headline": "{{ this.title }}",
- "name": "{{ this.title }}",
- "description": "{{ post_description }}",
+ "headline": {{ this.title | tojson }},
+ "name": {{ this.title | tojson }},
+ "description": {{ post_description | tojson }},
"datePublished": "{{ this.publication_date | dateformat('yyyy-MM-dd') }}T00:00:00Z",
"dateModified": "{{ modified_date | dateformat('yyyy-MM-dd') }}T00:00:00Z",
"inLanguage": "en",
@@ -86,8 +86,8 @@
"publisher": {
"@id": "{{ person_id }}"
},
- "keywords": "{{ this.tags | join(', ') }}",
- "articleSection": "{{ category }}"
+ "keywords": {{ this.tags | join(', ') | tojson }},
+ "articleSection": {{ category | tojson }}
}
</script>
{% endif %}
diff --git a/templates/includes/blog-json-ld.html b/templates/includes/blog-json-ld.html
index 63d3c66..4131913 100644
--- a/templates/includes/blog-json-ld.html
+++ b/templates/includes/blog-json-ld.html
@@ -3,8 +3,8 @@
"@context": "https://schema.org",
"@type": "Blog",
"@id": "{{ '/blog' | url(absolute=True, external=True) }}#blog",
- "name": "{{ bag('blog.name') }}",
- "description": "{{ bag('blog.tagline') }}",
+ "name": {{ bag('blog.name') | tojson }},
+ "description": {{ bag('blog.tagline') | tojson }},
"url": "{{ '/blog' | url(absolute=True, external=True) }}",
"inLanguage": "en",
"isPartOf": {