Skip to content

Commit

Permalink
fix: use correct template formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Jun 25, 2024
1 parent 9cc4539 commit be6afbb
Showing 1 changed file with 41 additions and 36 deletions.
77 changes: 41 additions & 36 deletions mysite/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,45 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>
{% block title %} {% if page.seo_title %}{{ page.seo_title }}{% else %}{{
page.title }}{% endif %} {% endblock %} {% block title_suffix %} {%
wagtail_site as current_site %} {% if current_site and
current_site.site_name %}- {{ current_site.site_name }}{% endif %} {%
endblock %}
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1" />

{# Force all links in the live preview panel to be opened in a new tab #} {%
if request.in_preview_panel %}
<base target="_blank" />
{% endif %} {# Global stylesheets #}
<link
rel="stylesheet"
type="text/css"
href="{% static 'css/mysite.css' %}"
/>

{% block extra_css %} {# Override this in templates to add extra stylesheets
#} {% endblock %}
</head>

<body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %} {% block content %}{% endblock %} {# Global javascript
#}
<script type="text/javascript" src="{% static 'js/mysite.js' %}"></script>

{% block extra_js %} {# Override this in templates to add extra javascript
#} {% endblock %}
</body>
<head>
<meta charset="utf-8" />
<title>
{% block title %}
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %}
{% block title_suffix %}
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %}
{% endblock %}
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1" />

{# Force all links in the live preview panel to be opened in a new tab #}
{% if request.in_preview_panel %}
<base target="_blank">
{% endif %}

{# Global stylesheets #}
<link rel="stylesheet" type="text/css" href="{% static 'css/mysite2.css' %}">

{% block extra_css %}
{# Override this in templates to add extra stylesheets #}
{% endblock %}
</head>

<body class="{% block body_class %}{% endblock %}">
{% wagtailuserbar %}

{% block content %}{% endblock %}

{# Global javascript #}
<script type="text/javascript" src="{% static 'js/mysite2.js' %}"></script>

{% block extra_js %}
{# Override this in templates to add extra javascript #}
{% endblock %}
</body>
</html>

0 comments on commit be6afbb

Please sign in to comment.