gardenserver/templates/main.html

104 lines
4.3 KiB
HTML
Raw Normal View History

2020-10-09 23:00:15 +02:00
<!DOCTYPE html>
<html lang="en">
2020-10-20 20:18:11 +02:00
2020-10-09 23:00:15 +02:00
<head>
<meta charset="UTF-8">
<title>{{garden_title}} - {{page_title}}</title>
<link href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" rel="stylesheet">
2021-03-06 00:50:49 +01:00
<link rel="preconnect" href="https://fonts.gstatic.com">
2020-10-20 20:18:11 +02:00
<link
2021-03-06 00:50:49 +01:00
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&display=swap"
2020-10-20 20:18:11 +02:00
rel="stylesheet">
2021-03-06 00:50:49 +01:00
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@200;400;700&display=swap" rel="stylesheet">
2020-10-11 14:25:06 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-12-28 19:59:57 +01:00
<meta property="og:site_name" content="{{garden_title}}" />
<meta property="og:title" content="{{page_title}}" />
2020-12-28 20:09:10 +01:00
<meta property="og:description" content="{{content | striptags | truncate(length=256)}}" />
2020-12-28 19:59:57 +01:00
<meta property="og:type" content="article" />
<meta property="og:url" content="https://{{server_name}}/{{path}}" />
<meta property="og:image" content="/static/favicon.png" />
<link rel="shortcut icon" href="/static/favicon.png" type="image/x-icon">
<link href="/static/main.css" rel="stylesheet">
2021-07-25 17:08:34 +02:00
<link rel="stylesheet" href="main.css">
2020-10-09 23:00:15 +02:00
</head>
2020-10-20 20:18:11 +02:00
2020-10-09 23:00:15 +02:00
<body>
2020-10-20 20:18:11 +02:00
<aside>
<nav>
2020-12-28 20:17:29 +01:00
<h1><a href="/">{{garden_title}}</a></h1>
2021-07-25 13:40:04 +02:00
{% if recently_changed %}
<section>
<h2>Recently changed</h2>
<ul>
{% for file_mtime in recently_changed | slice(end=5) %}
<li class="page">
<a href="/{{file_mtime.0}}">
2021-07-25 13:56:05 +02:00
<span class="timestamp">{{ file_mtime.1 }}</span>
2021-07-25 13:40:04 +02:00
<span class="filepath">
{% for component in file_mtime.0 | trim_end_matches(pat=".md") | split(pat=".") %}
{%- if not loop.last -%}
<span class="not-last">{{component}}.</span>
{%- else -%}
<span>{{component}}</span>
{%- endif -%}
{% endfor %}
</span>
</a>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
<section>
<h2>All entries</h2>
<ul>
{% for file in files %}
{% if file is containing(".md") %}
<li class="page">
<a href="/{{file}}">
<span class="filepath">
{% for component in file | trim_end_matches(pat=".md") | split(pat=".") %}
{%- if not loop.last -%}
<span class="not-last">{{component}}.</span>
{%- else -%}
<span>{{component}}</span>
{%- endif -%}
{% endfor %}
</span>
</a>
</li>
{% else %}
<li class="file"><a href="/{{file}}">{{file}}</a></li>
{% endif %}
{% endfor %}
</ul>
</section>
2021-07-25 17:08:34 +02:00
<section class="graph-view">
<a href="/!graph">Graph view (beta)</a>
</section>
2020-10-20 20:18:11 +02:00
</nav>
<footer><a href="https://gitlab.com/tmladek/gardenserver">gardenserver {{version}}</a></footer>
</aside>
<main>
{{content | safe}}
2020-10-09 23:00:15 +02:00
2020-10-25 15:56:07 +01:00
<hr>
{% if backlinks %}
<h1>Linked from:</h1>
<ul>
{% for link in backlinks %}
<li><a href="/{{ link }}">{{link}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if mtime %}
<footer>
Last modified at {{mtime}}
</footer>
{% endif %}
2020-10-20 20:18:11 +02:00
</main>
2020-10-09 23:00:15 +02:00
</body>
2020-10-20 20:18:11 +02:00
2020-10-09 21:02:45 +02:00
</html>