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>
</div> </div>
{% endblock body_content_additional %} {% endblock body_content_additional %}
{% block scripts %}
<!-- Created scripts -->
{% endblock scripts %}

View File

@ -1,10 +1,19 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" dir="ltr"> <html lang="en" dir="ltr">
{% block header %}
<head> <head>
<meta charset="utf-8"> {% block header_meta %}
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8">
<meta name="author" content=""> <meta name="viewport" content="width=device-width, initial-scale=1">
<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 %} {% if title %}
<title>{{title}}</title> <title>{{title}}</title>
{% else %} {% else %}
@ -40,61 +49,61 @@
{% endblock header_scripts_additional %} {% endblock header_scripts_additional %}
{% endblock %} {% endblock %}
</head> </head>
{% endblock %}
<body> <body>
<img id="bg" src="{{ url_for('static', filename='imgs/backgrounds/background.jpg')}}" alt="{{title}} Background Logo" /> {% block body_header %}
<img id="bg" src="{{ url_for('static', filename='imgs/backgrounds/background.jpg')}}" alt="{{title}} Background Logo" />
{% include "body-header.html" %}
{% block body_header %} {% block body_header_additional %}
{% include "body-header.html" %} {% endblock body_header_additional%}
{% endblock %}
{% block body_header_additional %} <!-- System flashed messages! -->
{% endblock body_header_additional%} {% with messages = get_flashed_messages(with_categories=true) %}
{% endblock %} {% if messages %}
<div class=flashes>
<!-- System flashed messages! --> {% for category, message in messages %}
{% with messages = get_flashed_messages(with_categories=true) %} <li class="alert alert-{{ category }}">{{ message }}</li>
{% if messages %} {% endfor %}
<div class=flashes> </div>
{% for category, message in messages %} {% endif %}
<li class="alert alert-{{ category }}">{{ message }}</li> {% endwith %}
{% endfor %}
</div>
{% endif %}
{% endwith %}
<div class="container"> <div class="container">
{% block body_content %} {% block body_content %}
{% block body_content_additional %} {% block body_content_additional %}
{% endblock body_content_additional%} {% endblock body_content_additional%}
{% endblock %} {% endblock %}
</div> </div>
{% block body_footer %} {% block body_footer %}
{% include "body-footer.html" %} {% include "body-footer.html" %}
{% block body_footer_additional %} {% block body_footer_additional %}
{% endblock body_footer_additional%} {% endblock body_footer_additional%}
{% endblock %} {% endblock %}
{% block body_scripts %} {% block body_scripts %}
<!-- For Bootstrap in this exact order... --> <!-- 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/jquery-3.3.1.slim.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/bootstrap/popper.min.js')}}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap/popper.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/bootstrap/bootstrap.min.js')}}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap/bootstrap.min.js')}}"></script>
<!-- For DatePicker --> <!-- For DatePicker -->
<script src="{{ url_for('static', filename='js/libs/bootstrap/moment.min.js')}}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap/moment.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/bootstrap/bootstrap-datepicker.min.js')}}"></script> <script src="{{ url_for('static', filename='js/libs/bootstrap/bootstrap-datepicker.min.js')}}"></script>
<!-- For React --> <!-- For React -->
<script src="{{ url_for('static', filename='js/libs/react/react.production.min-17-0-1.js')}}"></script> <script src="{{ url_for('static', filename='js/libs/react/react.production.min-17-0-1.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/react/react-dom.production.min-17-0-1.js')}}"></script> <script src="{{ url_for('static', filename='js/libs/react/react-dom.production.min-17-0-1.js')}}"></script>
<!-- Application Imports --> <!-- Application Imports -->
{% block body_scripts_additional %} {% block body_scripts_additional %}
{% endblock body_scripts_additional%} {% endblock body_scripts_additional%}
{% endblock %} {% endblock %}
</body> </body>
</html> </html>

View File

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

View File

@ -1,5 +1,15 @@
{% extends "layout.html" %} {% 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 %} {% block body_header_additional %}
{% endblock body_header_additional %} {% endblock body_header_additional %}
@ -48,9 +58,9 @@
</div> </div>
{% endblock body_content_additional %} {% endblock body_content_additional %}
{% block body_footer_additional %} {% block body_footer_additional %}
{% endblock body_footer_additional %} {% endblock body_footer_additional %}
{% block body_scripts_additional %} {% block body_scripts_additional %}
{% endblock body_scripts_additional %} {% endblock body_scripts_additional %}

View File

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

View File

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

View File

@ -1,5 +1,15 @@
{% extends "layout.html" %} {% 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 %} {% block body_header_additional %}
{% endblock body_header_additional %} {% endblock body_header_additional %}
@ -76,9 +86,9 @@
</div> </div>
{% endblock body_content_additional %} {% endblock body_content_additional %}
{% block body_footer_additional %} {% block body_footer_additional %}
{% endblock body_footer_additional %} {% endblock body_footer_additional %}
{% block body_scripts_additional %} {% block body_scripts_additional %}
{% endblock body_scripts_additional %} {% endblock body_scripts_additional %}