From 60368a105e71f81dc8a10e2c84298464b2a20ccf Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 19 Feb 2018 19:56:09 +0100 Subject: script: added a script to generate posts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way I don't have to remember to specific org headers and such. Moreover, I've also fixed the translation of the titles. Signed-off-by: Miquel Sabaté Solà --- _layouts/default.html | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to '_layouts/default.html') diff --git a/_layouts/default.html b/_layouts/default.html index 8db38f6..10b04b3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,18 +2,36 @@ - {% if page.title %}{{ site.title }} - {% t page.title %}{% else %}{{ site.title }}{% endif %} + + {% comment %} + + {% endcomment %} + {% if page.title %} + {% if page.title contains "titles." %} + {{ site.title }} - {% t page.title %} + {% else %} + {{ site.title }} - {{ page.title }} + {% endif %} + {% else %} + {{ site.title }} + {% endif %} - + {% comment %}{% endcomment %} - + {% comment %}{% endcomment %} - + {% comment %}{% endcomment %} -- cgit v1.2.3