base.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {% block doc -%}
  2. <!DOCTYPE html>
  3. <html{% block html_attribs %}{% endblock html_attribs %}>
  4. {%- block html %}
  5. <head>
  6. {%- block head %}
  7. <title>{% block title %}{{title|default}}{% endblock title %}</title>
  8. {%- block metas %}
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. {%- endblock metas %}
  11. {%- block styles %}
  12. <!-- Bootstrap -->
  13. <link href="{{bootstrap_find_resource('css/bootstrap.css', cdn='bootstrap')}}" rel="stylesheet">
  14. {%- endblock styles %}
  15. {%- endblock head %}
  16. </head>
  17. <body{% block body_attribs %}{% endblock body_attribs %}>
  18. {% block body -%}
  19. {% block navbar %}
  20. {%- endblock navbar %}
  21. {% block content -%}
  22. {%- endblock content %}
  23. {% block scripts %}
  24. <script src="{{bootstrap_find_resource('jquery.js', cdn='jquery')}}"></script>
  25. <script src="{{bootstrap_find_resource('js/bootstrap.js', cdn='bootstrap')}}"></script>
  26. {%- endblock scripts %}
  27. {%- endblock body %}
  28. </body>
  29. {%- endblock html %}
  30. </html>
  31. {% endblock doc -%}