Explorar o código

Set copyright meta tag to author name instead of site license

Talha Mansoor %!s(int64=11) %!d(string=hai) anos
pai
achega
56e716c4d0
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      templates/base.html

+ 5 - 4
templates/base.html

@@ -5,12 +5,13 @@
         <meta name="viewport" content="width=device-width, initial-scale=1.0">
         {% if article and article.author %}
         <meta name="author" content="{{ article.author }}" />
+        <meta name="copyright" content="{{ article.author }}" />
+        {% elif page and page.author %}
+        <meta name="author" content="{{ page.author }}" />
+        <meta name="copyright" content="{{ page.author }}" />
         {% else %}
         <meta name="author" content="{{ AUTHOR }}" />
-        {% endif %}
-
-        {% if SITE_LICENSE %}
-        <meta name="copyright" content="{{ SITE_LICENSE|striptags }}">
+        <meta name="copyright" content="{{ AUTHOR }}" />
         {% endif %}
 
         {% if SITE_DESCRIPTION %}