diff --git a/templates/base.html b/templates/base.html index 4bcca43..0db1912 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,70 +13,69 @@ {%- endif %} - - + + - {%- set title_tail = " ~ " ~ config.title %} + {%- set title_tail = " ~ " ~ config.title %} - {%- if page.title %} - {%- set title = page.title ~ title_tail %} - {%- elif section.title %} - {%- set title = section.title ~ title_tail %} - {%- else %} - {%- set title = config.title %} - {%- endif %} + {%- if page.title %} + {%- set title = page.title ~ title_tail %} + {%- elif section.title %} + {%- set title = section.title ~ title_tail %} + {%- else %} + {%- set title = config.title %} + {%- endif %} - {{ title }} + {{ title }} - - - + + + - - - + + + - - + + - {%- set description = page.content | default(value=config.description) | striptags | regex_replace(pattern="\n", rep=" ") | truncate(length=120) %} + {%- set description = page.content | default(value=config.description) | striptags | regex_replace(pattern="\n", rep=" ") | truncate(length=120) %} - - - - - - + + + + + + - - {% if page.taxonomies -%} - {%- for taxonomy, terms in page.taxonomies -%} - {%- if taxonomy == "tags" -%} - {%- for tag in terms -%} - - {% endfor -%} - {%- endif -%} - {% endfor -%} - {%- endif -%} + + {%- block octo_head -%}{%- endblock %} + {% if page.taxonomies -%} + {%- for taxonomy, terms in page.taxonomies -%} + {%- if taxonomy == "tags" -%} + {%- for tag in terms -%} + + {% endfor -%} + {%- endif -%} + {% endfor -%} + {%- endif %} - {%- block extra_head %}{% endblock %} + {%- block rss -%} + {%- if lang == "pt" %} + {%- set locale_all_content = "Todo o conteúdo" %} + {%- set locale_language_name = "Português" %} + {% else %} + {%- set locale_all_content = "All content" %} + {%- set locale_language_name = "English" %} + {%- endif %} + + + + + {%- endblock %} - {%- block rss -%} - {%- if lang == "pt" %} - {%- set locale_all_content = "Todo o conteúdo" %} - {%- set locale_language_name = "Português" %} - {% else %} - {%- set locale_all_content = "All content" %} - {%- set locale_language_name = "English" %} - {%- endif -%} - - - - - {%- endblock %} - - - + + diff --git a/templates/content.html b/templates/content.html index 80c2f2d..44e326b 100644 --- a/templates/content.html +++ b/templates/content.html @@ -1,6 +1,7 @@ {% extends "base.html" %} -{%- block extra_head %} +{%- block octo_head %} + {%- endblock -%} {% block content %}