diff options
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/details/entry.amp | 2 | ||||
-rw-r--r-- | design/templates/details/entry.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/design/templates/details/entry.amp b/design/templates/details/entry.amp index b4eeaf4..4ce660d 100644 --- a/design/templates/details/entry.amp +++ b/design/templates/details/entry.amp @@ -5,7 +5,7 @@ <head> <meta charset="utf-8"> <title>{%block pagetitle%}{{object.title}}{%endblock%}</title> -<link rel="canonical" href="{{object.get_absolute_url}}"> +<link rel="canonical" href="https://luxagraf.net{{object.get_absolute_url}}"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:url" content="{{object.get_absolute_url}}"> diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index 7982c29..2b8ec51 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -7,6 +7,7 @@ {% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %} {%block extrahead%} <link rel="canonical" href="https://luxagraf.net{{object.get_absolute_url}}" /> + <link rel="amphtml" href="https://luxagraf.net{{object.get_absolute_url}}.amp" /> <meta name="ICBM" content="{{object.latitude}}, {{object.longitude}}" /> <meta name="geo.position" content="{{object.latitude}}; {{object.longitude}}" /> <meta name="geo.placename" content="{% if object.country.name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.country.name}}{%endif%}"> @@ -29,6 +30,7 @@ <meta name="twitter:image:src" content="{{object.get_image_url}}"/> <meta name="twitter:creator" content="@luxagraf"/> + {%endblock%} {%block htmlclass%}{% with object.template_name as t %} class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%if t == 2 or t == 3 %} dark{%endif%}"{%endwith%}{%endblock%} |