From cbbaf9000202298277511d5240f651c413f146c7 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 3 Apr 2019 15:43:53 +0200 Subject: [PATCH] Templates: Add opengraph to collections. --- src/templates/learn.pug | 4 ++++ src/templates/libraries.pug | 4 ++++ src/templates/production.pug | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/src/templates/learn.pug b/src/templates/learn.pug index 717c2c7..cdb9eb0 100644 --- a/src/templates/learn.pug +++ b/src/templates/learn.pug @@ -11,6 +11,10 @@ include mixins/components | {% block page_title %}{{ page_title }}{% endblock %} +| {% block og %} +| {{ opengraph(page_title, page_description, page_header_image, request.url) }} +| {% endblock %} + | {% block navigation_tabs %} | {{ navigation_homepage(title) }} | {% endblock navigation_tabs %} diff --git a/src/templates/libraries.pug b/src/templates/libraries.pug index 47d5144..4b921f0 100644 --- a/src/templates/libraries.pug +++ b/src/templates/libraries.pug @@ -11,6 +11,10 @@ include mixins/components | {% block page_title %}{{ page_title }}{% endblock %} +| {% block og %} +| {{ opengraph(page_title, page_description, page_header_image, request.url) }} +| {% endblock %} + | {% block navigation_tabs %} | {{ navigation_homepage(title) }} | {% endblock navigation_tabs %} diff --git a/src/templates/production.pug b/src/templates/production.pug index aaf9546..d1f7e8f 100644 --- a/src/templates/production.pug +++ b/src/templates/production.pug @@ -1,5 +1,6 @@ | {% extends 'layout.html' %} | {% from '_macros/_navigation.html' import navigation_homepage %} +| {% from '_macros/_opengraph.html' import opengraph %} include ../../../pillar/src/templates/mixins/components @@ -14,6 +15,10 @@ mixin group(title, tag) | {% block page_title %}Production Lessons{% endblock %} | {% set page_header_text = "Tips and tricks by the Open Projects crew." %} +| {% block og %} +| {{ opengraph(page_title, page_description, page_header_image, request.url) }} +| {% endblock %} + | {% block navigation_tabs %} | {{ navigation_homepage(title) }} | {% endblock navigation_tabs %}