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.
166 lines
7.4 KiB
166 lines
7.4 KiB
<!doctype html> |
|
<html{% block html_attr %} dir="ltr" lang="en"{% endblock %}> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|
|
|
<title class="p-name">{% if title %}{{ title }} ~ {% endif %}{{ request.site.name }}</title> |
|
{% if atom is defined %} |
|
<link rel="alternate" type="application/atom+xml" href="{{ atom }}" /> |
|
{% endif %} |
|
{% if rss is defined %} |
|
<link rel="alternate" type="application/rss+xml" href="{{ rss }}" /> |
|
{% endif %} |
|
{% block head %}{% endblock %} |
|
|
|
<base href="{{ request.build_absolute_uri(url('home:index')) }}" /> |
|
<link rel="authorization_endpoint" href="{{ url('lemonauth:indie') }}" /> |
|
<link rel="canonical" href="{{ request.build_absolute_uri() }}" /> |
|
<link rel="hub" href="{{ settings.PUSH_HUB }}" /> |
|
<link rel="manifest" href="{{ url('wellknowns:manifest') }}" /> |
|
<link rel="micropub" href="{{ url('micropub:micropub') }}" /> |
|
<link rel="token_endpoint" href="{{ url('lemonauth:token') }}" /> |
|
|
|
<meta name="generator" content="{{ package.name }} {{ package.version }}" /> |
|
<meta name="theme-color" content="{{ theme_color(3) }}" /> |
|
{% for i in favicons %} |
|
<link rel="{{ i.rel }}" type="{{ i.mime }}" sizes="{{ i.sizes }}" href="{{ i.url }}" /> |
|
{% endfor %} |
|
|
|
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" |
|
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> |
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/monokai.min.css" |
|
integrity="sha384-bHqbpRh/XW+phptvH9nQvMKHwPH1ZbOxpIeAB2D2OIEL4Ni7aZzZgMFpsRra+v1g" crossorigin="anonymous"> |
|
<link rel="stylesheet" type="text/css" href="https://unpkg.com/openwebicons@1.6.0/css/openwebicons.min.css" |
|
integrity="sha384-NkRWM9o4Kfak7GwS+un+sProBBpj02vc/e1EoXvdCUSdRk0muOfkKJ5NtpueAuka" crossorigin="anonymous"> |
|
<link rel="stylesheet" type="text/css" href="https://unpkg.com/tippy.js@3.4.1/dist/tippy.css" |
|
integrity="sha384-hm3Wtrva6FibonAOqHHXSpMxvGbz2g7l5FK5avbuNviir5MK6Ap4o3EOohztzHHm" crossorigin="anonymous"> |
|
{% compress css %} |
|
<link rel="stylesheet" type="text/stylus" href="{{ static('lemoncurry/css/layout.styl') }}"> |
|
{% block styles %}{% endblock %} |
|
{% endcompress %} |
|
|
|
<script type="text/javascript" defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" |
|
integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script> |
|
</head> |
|
<body{% block body_attr %}{% endblock %}> |
|
<header> |
|
<nav class="navbar navbar-expand-md navbar-dark"> |
|
<a class="navbar-brand" rel="home" href="{{ url('home:index') }}">{{ request.site.name }}</a> |
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" |
|
aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation"> |
|
<span class="navbar-toggler-icon"></span> |
|
</button> |
|
|
|
{% activeurl %} |
|
<div class="collapse navbar-collapse" id="navbar"> |
|
<ul class="navbar-nav"> |
|
{% for kind in entry_kinds %} |
|
<li class="nav-item"> |
|
<a class="nav-link" href="{{ kind.index }}"> |
|
<i class="{{ kind.icon }} fa-fw" aria-hidden="true"></i> |
|
{{ kind.plural }} |
|
</a> |
|
</li> |
|
{% endfor %} |
|
</ul> |
|
|
|
<ul class="navbar-nav"> |
|
{% if request.user.is_authenticated %} |
|
<li class="nav-item"> |
|
<a class="nav-link" href="{{ url('lemonauth:tokens') }}"> |
|
<i class="fas fa-cookie-bite fa-fw" aria-hidden="true"></i> |
|
tokens |
|
</a> |
|
</li> |
|
<li class="nav-item"> |
|
<a class="nav-link" href="{{ url('admin:index') }}"> |
|
<i class="fas fa-cog fa-fw" aria-hidden="true"></i> |
|
admin |
|
</a> |
|
</li> |
|
<li class="nav-item"> |
|
<a class="nav-link" href="{{ url('lemonauth:logout') }}"> |
|
<i class="fas fa-sign-out-alt fa-fw" aria-hidden="true"></i> |
|
log out |
|
</a> |
|
</li> |
|
{% else %} |
|
<li class="nav-item"> |
|
<a class="nav-link" href="{{ url('lemonauth:login') }}"> |
|
<i class="fas fa-sign-in-alt fa-fw" aria-hidden="true"></i> |
|
log in |
|
</a> |
|
</li> |
|
{% endif %} |
|
</ul> |
|
</div> |
|
{% endactiveurl %} |
|
|
|
</nav> |
|
</header> |
|
|
|
<main> |
|
{% block main %} |
|
{% endblock %} |
|
</main> |
|
|
|
<footer> |
|
<p>all content licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">cc by-sa 4.0</a></p> |
|
{% if entries is defined and entries.has_other_pages() %} |
|
|
|
<nav> |
|
<ul class="pagination"> |
|
{% if entries.prev %} |
|
<li class="page-item"> |
|
<a class="page-link" rel="prev" href="{{ entries.prev.url }}"> |
|
<i class="fas fa-step-backward" aria-hidden="true"></i> <span class="sr-only">previous page</span> |
|
</a> |
|
</li> |
|
|
|
{% endif %} |
|
{% for page in entries.pages %} |
|
{% if page.current %} |
|
<li class="page-item active"> |
|
<span class="page-link">{{ page.i }} <span class="sr-only">(current page)</span></span> |
|
</li> |
|
{% else %} |
|
<li class="page-item"> |
|
<a class="page-link" href="{{ page.url }}">{{ page.i }}</a> |
|
</li> |
|
{% endif %} |
|
{% endfor %} |
|
{% if entries.next %} |
|
|
|
<li class="page-item"> |
|
<a class="page-link" rel="next" href="{{ entries.next.url }}"> |
|
<i class="fas fa-step-forward" aria-hidden="true"></i> <span class="sr-only">next page</span> |
|
</a> |
|
</li> |
|
{% endif %} |
|
</ul> |
|
</nav> |
|
|
|
{% endif %} |
|
<p>powered by <a rel="code-repository" href="{{ package.repository }}/src/tag/v{{ package.version }}">{{ package.name }} {{ package.version }}</a></p> |
|
</footer> |
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous" |
|
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"></script> |
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" crossorigin="anonymous" |
|
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"></script> |
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" crossorigin="anonymous" |
|
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"></script> |
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js" crossorigin="anonymous" |
|
integrity="sha384-BlPof9RtjBqeJFskKv3sK3dh4Wk70iKlpIe92FeVN+6qxaGUOUu+mZNpALZ+K7ya"></script> |
|
<script src="https://unpkg.com/tippy.js@3.4.1/dist/tippy.standalone.min.js" crossorigin="anonymous" |
|
integrity="sha384-x7dGoSfOWUdyPccAel9dkWte6n8GxDWbByavEixRzW0O9xvPGzg3y0qzZBwGNUw9"></script> |
|
{% compress js %} |
|
<script type="text/javascript"> |
|
hljs.initHighlightingOnLoad(); |
|
</script> |
|
{% block foot %} |
|
{% endblock %} |
|
{% endcompress %} |
|
</body> |
|
</html>
|
|
|