A flat-file CMS written in Python and Flask
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

layout.html.j2 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width">
  6. <link rel="stylesheet" href="{{ url_for('static', filename=asset_url_for('app_css.css')) }}">
  7. <title>{{ site_name }} - yird</title>
  8. </head>
  9. <body>
  10. <div class="container">
  11. <header class="header">
  12. <h3 class="header__title">{{ site_name }}</h3>
  13. <ul class="nav">
  14. <li class="nav__item">
  15. <a class="nav__link" href="{{ url_for('index') }}">
  16. Posts
  17. </a>
  18. </li>
  19. <li class="nav__item">
  20. <a class="nav__link" href="{{ url_for('new_post') }}">
  21. New Post
  22. </a>
  23. </li>
  24. <li class="nav__item">
  25. <a class="nav__link" href="{{ url_for('generate') }}" data-generate-button>
  26. Generate
  27. </a>
  28. </li>
  29. </ul>
  30. </header>
  31. <main class="main">
  32. {% block content %}{% endblock %}
  33. </main>
  34. </div>
  35. <script src="{{ url_for('static', filename=asset_url_for('app_js.js')) }}"></script>
  36. </body>
  37. </html>