a Django-based indieweb.org site https://00dani.me/
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.
 
 
 
 

131 lines
5.7 KiB

  1. {% load analytical compress favicon lemoncurry_tags meta static theme_colour %}<!doctype html>
  2. <html dir="ltr" lang="en" class="{% block html_class %}{% endblock %}">
  3. <head{% meta_namespaces %}>{% site_name as site_name %}{% request_uri request as uri %}{% request_origin request as origin %}
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  6. <base href="{{ origin }}" />
  7. <link rel="canonical" href="{{ uri }}" />
  8. <title class="p-name">{% if title %}{{ title }} ~ {% endif %}{{ site_name }}</title>
  9. {% analytical_head_top %}
  10. {% if atom %}<link rel="alternate" type="application/atom+xml" href="{{ atom }}" />{% endif %}
  11. {% if rss %}<link rel="alternate" type="application/rss+xml" href="{{ rss }}" /> {% endif %}
  12. {% block head %}{% endblock %}
  13. <link rel="authorization_endpoint" href="{{ origin }}{% url 'lemonauth:indie' %}" />
  14. <link rel="token_endpoint" href="{{ origin }}{% url 'lemonauth:token' %}" />
  15. <link rel="micropub" href="{{ origin }}{% url 'micropub:micropub' %}" />
  16. <link rel="openid.delegate" href="{{ origin }}" />
  17. <link rel="openid.server" href="https://openid.indieauth.com/openid" />
  18. <link rel="hub" href="{% get_push_hub %}" />
  19. <link rel="self" href="{{ uri }}" />
  20. <link rel="manifest" href="{% url 'wellknowns:manifest' %}" />
  21. <meta name="theme-color" content="{% theme_colour 2 %}" />
  22. <meta property="og:url" content="{{ uri }}" />
  23. <meta property="og:title" content="{% firstof title site_name %}" />
  24. {% include 'meta/meta.html' %}
  25. {% get_favicons 'favicon/' %}
  26. <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"
  27. integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous" />
  28. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai.min.css"
  29. integrity="sha384-bHqbpRh/XW+phptvH9nQvMKHwPH1ZbOxpIeAB2D2OIEL4Ni7aZzZgMFpsRra+v1g" crossorigin="anonymous" />
  30. {% compress css %}
  31. <link rel="stylesheet" type="text/css" href={% static 'openwebicons/css/openwebicons.css' %} />
  32. <link rel="stylesheet" type="text/css" href={% static 'tippy.js/tippy.css' %} />
  33. <link rel="stylesheet" type="text/stylus" href="{% static 'lemoncurry/css/layout.styl' %}" />
  34. {% block styles %}{% endblock %}
  35. {% endcompress %}
  36. <script type="text/javascript" defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js"
  37. integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
  38. {% analytical_head_bottom %}
  39. </head>
  40. <body>
  41. {% analytical_body_top %}
  42. <header>
  43. <nav class="navbar navbar-expand-md navbar-dark">
  44. <a class="navbar-brand" rel="home" href="{% url 'home:index' %}">{% site_name %}</a>
  45. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
  46. aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
  47. <span class="navbar-toggler-icon"></span>
  48. </button>
  49. <div class="collapse navbar-collapse" id="navbar">
  50. {% nav_left request %}
  51. {% nav_right request %}
  52. </div>
  53. </nav>
  54. {% if request.resolver_match.view_name %}
  55. {% nav_crumbs request.resolver_match %}
  56. {% endif %}
  57. </header>
  58. <main>
  59. {% block main %}{% endblock %}
  60. </main>
  61. <footer>
  62. <p>all content licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">cc by-sa 4.0</a></p>
  63. {% if entries.has_other_pages %}
  64. <nav>
  65. <ul class="pagination">
  66. {% if entries.prev %}
  67. <li class="page-item">
  68. <a class="page-link" rel="prev" href="{{ entries.prev.url }}">
  69. <i class="fas fa-step-backward"></i><span class="sr-only">previous page</span>
  70. </a>
  71. </li>
  72. {% endif %}
  73. {% for page in entries.pages %}
  74. {% if page.current %}
  75. <li class="page-item active">
  76. <span class="page-link">{{ page.i }} <span class="sr-only">(current page)</span></span>
  77. </li>
  78. {% else %}
  79. <li class="page-item">
  80. <a class="page-link" href="{{ page.url }}">{{ page.i }}</a>
  81. </li>
  82. {% endif %}
  83. {% endfor %}
  84. {% if entries.next %}
  85. <li class="page-item">
  86. <a class="page-link" rel="next" href="{{ entries.next.url }}">
  87. <i class="fas fa-step-forward"></i><span class="sr-only">next page</span>
  88. </a>
  89. </li>
  90. {% endif %}
  91. </ul>
  92. </nav>
  93. {% endif %}
  94. {% get_package_json as package %}
  95. <p>powered by <a rel="code-repository" href="{{ package.repository }}/tree/v{{ package.version }}">{{ package.name }} {{ package.version }}</a></p>
  96. </footer>
  97. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous"
  98. integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"></script>
  99. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" crossorigin="anonymous"
  100. integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"></script>
  101. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" crossorigin="anonymous"
  102. integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"></script>
  103. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" crossorigin="anonymous"
  104. integrity="sha384-ZeLYJ2PNSQjvogWP559CDAf02Qb8FE5OyQicqtz/+UhZutbrwyr87Be7NPH/RgyC"></script>
  105. {% compress js %}
  106. <script src="{% static 'tippy.js/tippy.standalone.js' %}"></script>
  107. <script type="text/javascript">
  108. hljs.initHighlightingOnLoad();
  109. </script>
  110. {% block foot %}{% endblock %}
  111. {% endcompress %}
  112. {% analytical_body_bottom %}
  113. </body>
  114. </html>