]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
add support for robots meta tag
authorFuchs <redacted>
Thu, 21 Jun 2018 15:06:06 +0000 (17:06 +0200)
committerSvante <redacted>
Sat, 23 Jun 2018 10:08:40 +0000 (12:08 +0200)
templates/article.html
templates/base.html
templates/faq.html
templates/page.html

index eddabe452fc0bd4468c53140c5a73e52e2d6fc08..578a50995eb99a9b670c609a4be4170d6b3a19ab 100644 (file)
@@ -1,6 +1,7 @@
 {% extends "base.html" %}
 {% import "artinfo.html" as artinfo with context %}
 {% set title=article.title %}
+{% set robots=article.robots %}
 {% block content %}
 <div class="main">
     {%- if article.source.meta.imported is defined %}
index 099e1c06ae04b075747b643cbe57b60f59e2a020..84b55ba1c18eaeaae7195b6bb63a3c097ad45b86 100644 (file)
@@ -7,6 +7,9 @@
     {#- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags #}
     <meta name="theme-color" content="#292f2f">
     <meta name="description" content="{{ config.DESCRIPTION }}">
+    {%- if robots is defined and robots is not none %}
+    <meta name="robots" content="{{ robots }}">
+    {%- endif %}
     <link rel="icon" href="{{ url_for("static/img/logos/coloured-alphabg-sq-120.png") }}">
     {%- block links %}
     <link rel="alternate" type="application/rss+xml" href="{{ url_for("news/rss") }}" title="news (rss)">
index 344592245b6981e0a457cedbb267724a06bf8991..f6bbf8bca127d08a174fcb2e2d08e2728e46af23 100644 (file)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
 {% set title = entry.title %}
+{% set robots = entry.robots %}
 {% block content %}
 <div class="main">
     <h1>{{ entry.title }}</h1>
index 71328303dce14bac0130ca5996dc2042597d143a..ab0a7a1ef4d3d868e8e4b4ff6c1beb929ddd401b 100644 (file)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
 {% set title = page.title %}
+{% set robots = page.robots %}
 {% block content %}
 <div class="main">
     <h1>{{ page.title }}</h1>