fix: tag
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
{% block og_description %}
|
||||
<meta name="og:description" content="{{ adoption_notice.description }}">
|
||||
{% endblock %}
|
||||
{% block canonical_url %}{{ host }}{% url 'adoption-notice-detail' adoption_notice_id=adoption_notice.id %}{% endblock %}
|
||||
{% block canonical_url %}{% host %}{% url 'adoption-notice-detail' adoption_notice_id=adoption_notice.id %}{% endblock %}
|
||||
|
||||
{% block og_image %}
|
||||
{% if adoption_notice.get_photos %}
|
||||
|
@@ -8,7 +8,7 @@
|
||||
{% block description %}<meta name="description" content="{% translate "notfellchen.org listet Farbratten in Tierheimen und Pflegestellen die ein Zuhause suchen. Adoptieren statt kaufen!" %}">{% endblock %}
|
||||
{% block og_description %}<meta name="og:description" content="{% translate "notfellchen.org listet Farbratten in Tierheimen und Pflegestellen die ein Zuhause suchen. Adoptieren statt kaufen!" %}">{% endblock %}
|
||||
{% block og_image %}<meta property="og:image" content="{% static 'fellchensammlung/img/link_preview.png' %}" />{% endblock %}
|
||||
{% block canonical_url %}{{ host }}{% url 'index' %}{% endblock %}
|
||||
{% block canonical_url %}{% host %}{% url 'index' %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% for announcement in announcements %}
|
||||
|
@@ -112,4 +112,5 @@ def dictkey(d, key):
|
||||
|
||||
@register.simple_tag
|
||||
def host():
|
||||
return settings.host
|
||||
# Will not work for localhost or deployments without https
|
||||
return f"https://{settings.host}"
|
||||
|
@@ -57,6 +57,7 @@ def index(request):
|
||||
language_code = translation.get_language()
|
||||
lang = Language.objects.get(languagecode=language_code)
|
||||
active_announcements = Announcement.get_active_announcements(lang)
|
||||
print(settings.host)
|
||||
|
||||
context = {"adoption_notices": active_adoptions[:4], "show_ANs": True,
|
||||
"announcements": active_announcements}
|
||||
|
Reference in New Issue
Block a user