updating blocks and metas

This commit is contained in:
Maxim Stewart 2020-11-09 19:33:27 -06:00
parent 72921a6da4
commit 9ea524a4c4
7 changed files with 115 additions and 60 deletions

View File

@ -8,7 +8,3 @@
</div>
</div>
{% endblock body_content_additional %}
{% block scripts %}
<!-- Created scripts -->
{% endblock scripts %}

View File

@ -1,10 +1,19 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
{% block header %}
<head>
{% block header_meta %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="">
<meta name="description" content="">
<meta name="author" content="{{post.meta_author}}">
<meta name="copyright" content="CC0">
<meta name="description" content="{{post.meta_description}}">
<meta name="keywords" content="{{post.meta_keywords}}">
<meta name="robots" content="index,follow">
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% endblock %}
{% if title %}
<title>{{title}}</title>
{% else %}
@ -40,18 +49,18 @@
{% endblock header_scripts_additional %}
{% endblock %}
</head>
{% endblock %}
<body>
{% block body_header %}
<img id="bg" src="{{ url_for('static', filename='imgs/backgrounds/background.jpg')}}" alt="{{title}} Background Logo" />
{% block body_header %}
{% include "body-header.html" %}
{% block body_header_additional %}
{% endblock body_header_additional%}
{% endblock %}
{% endblock %}
<!-- System flashed messages! -->
{% with messages = get_flashed_messages(with_categories=true) %}
<!-- System flashed messages! -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class=flashes>
{% for category, message in messages %}
@ -59,26 +68,26 @@
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% endwith %}
<div class="container">
{% block body_content %}
<div class="container">
{% block body_content %}
{% block body_content_additional %}
{% endblock body_content_additional%}
{% endblock %}
</div>
{% endblock %}
</div>
{% block body_footer %}
{% block body_footer %}
{% include "body-footer.html" %}
{% block body_footer_additional %}
{% endblock body_footer_additional%}
{% endblock %}
{% endblock %}
{% block body_scripts %}
{% block body_scripts %}
<!-- For Bootstrap in this exact order... -->
<script src="{{ url_for('static', filename='js/libs/bootstrap/jquery-3.3.1.slim.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/bootstrap/popper.min.js')}}"></script>
@ -95,6 +104,6 @@
<!-- Application Imports -->
{% block body_scripts_additional %}
{% endblock body_scripts_additional%}
{% endblock %}
{% endblock %}
</body>
</html>

View File

@ -1,9 +1,19 @@
{% extends "layout.html" %}
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% block header_css_additional %}
{% endblock header_css_additional %}
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
{% block body_header_additional %}
{% endblock body_header_additional %}
{% block body_content %}
{% block body_content_additional %}
<div class="container">
<div class="row">
<div class="col justify-content-center text-center">
@ -14,12 +24,12 @@
</div>
</div>
</div>
{% endblock body_content %}
{% endblock body_content_additional %}
{% block body_footer_additional %}
{% endblock body_footer_additional %}
{% block body_scripts_additional %}
<script src="{{ url_for('static', filename='js/ui-logic.js')}}"></script>
<script src="{{ url_for('static', filename='js/post-ajax.js')}}"></script>

View File

@ -1,5 +1,15 @@
{% extends "layout.html" %}
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% block header_css_additional %}
{% endblock header_css_additional %}
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
{% block body_header_additional %}
{% endblock body_header_additional %}
@ -48,9 +58,9 @@
</div>
{% endblock body_content_additional %}
{% block body_footer_additional %}
{% endblock body_footer_additional %}
{% block body_scripts_additional %}
{% endblock body_scripts_additional %}

View File

@ -1,5 +1,15 @@
{% extends "layout.html" %}
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% block header_css_additional %}
{% endblock header_css_additional %}
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
{% block body_header_additional %}
{% endblock body_header_additional %}
@ -11,10 +21,10 @@
</div>
{% endblock body_content_additional %}
{% block body_footer_additional %}
{% endblock body_footer_additional %}
{% block body_scripts_additional %}
<script src="{{ url_for('static', filename='js/ui-logic.js')}}"></script>
<script src="{{ url_for('static', filename='js/post-ajax.js')}}"></script>

View File

@ -1,17 +1,27 @@
{% extends "layout.html" %}
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% block header_css_additional %}
{% endblock header_css_additional %}
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
{% block body_header_additional %}
{% endblock body_header_additional %}
{% block body_content %}
{% block body_content_additional %}
<div id="react-container">
</div>
{% endblock body_content %}
{% endblock body_content_additional %}
{% block body_footer_additional %}
{% endblock body_footer_additional %}
{% block body_scripts_additional %}
<script src="{{ url_for('static', filename='js/post-ajax.js')}}"></script>
<script src="{{ url_for('static', filename='js/ajax.js')}}"></script>

View File

@ -1,5 +1,15 @@
{% extends "layout.html" %}
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% block header_css_additional %}
{% endblock header_css_additional %}
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
{% block body_header_additional %}
{% endblock body_header_additional %}
@ -76,9 +86,9 @@
</div>
{% endblock body_content_additional %}
{% block body_footer_additional %}
{% endblock body_footer_additional %}
{% block body_scripts_additional %}
{% endblock body_scripts_additional %}