base.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {%- extends "bootstrap/base.html" %}
  2. {% block title %}Cubbyshare - share your secrets safely{% endblock %}
  3. {# While we are at it, we also enable fixes for legacy browsers. First we
  4. import the necessary macros: #}
  5. {% import "bootstrap/fixes.html" as fixes %}
  6. {# Then, inside the head block, we apply these. To not replace the header,
  7. ``super()`` is used: #}
  8. {% block head %}
  9. {{super()}}
  10. {#- Docs: http://pythonhosted.org/Flask-Bootstrap/macros.html#fixes
  11. The sample application already contains the required static files. #}
  12. {{fixes.ie8()}}
  13. {%- endblock %}
  14. {# Adding our own CSS files is also done here. Check the documentation at
  15. http://pythonhosted.org/Flask-Bootstrap/basic-usage.html#available-blocks
  16. for an overview. #}
  17. {% block styles -%}
  18. {{super()}} {# do not forget to call super or Bootstrap's own stylesheets
  19. will disappear! #}
  20. <link rel="stylesheet" type="text/css"
  21. href="{{url_for('static', filename='sample-app.css')}}">
  22. <script type=text/javascript src="{{
  23. url_for('static', filename='jquery-3.3.1.min.js') }}"></script>
  24. {% endblock %}
  25. {% block scripts -%}
  26. {% endblock %}
  27. {# Finally, round things out with navigation #}
  28. {% block navbar %}
  29. {{nav.frontend_top.render()}}
  30. {% endblock %}