less spacing in nav, fix .md detection

master
Tomáš Mládek 2020-10-20 20:18:11 +02:00
parent 8938b63b12
commit fcd5546d97
2 changed files with 26 additions and 22 deletions

View File

@ -73,7 +73,7 @@ nav ul {
}
nav li {
margin: .5em 0;
margin: .25em 0;
}
nav .file {

View File

@ -1,33 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<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">
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat&display=swap"
rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat&display=swap"
rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/static/main.css" rel="stylesheet">
</head>
<body>
<aside>
<nav>
<h1>{{garden_title}}</h1>
<ul>
{% for file in files %}
<li class="{% if file is containing(" .md
") %}page{% else %}file{% endif %}"><a href="/{{file}}">{{file}}</a></li>
{% endfor %}
</ul>
</nav>
<footer><a href="https://gitlab.com/tmladek/gardenserver">gardenserver {{version}}</a></footer>
</aside>
<main>
{{content | safe}}
<footer>
Last modified at {{mtime}}
</footer>
</main>
<body>
<aside>
<nav>
<h1>{{garden_title}}</h1>
<ul>
{% for file in files %}
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}"><a
href="/{{file}}">{{file}}</a></li>
{% endfor %}
</ul>
</nav>
<footer><a href="https://gitlab.com/tmladek/gardenserver">gardenserver {{version}}</a></footer>
</aside>
<main>
{{content | safe}}
<footer>
Last modified at {{mtime}}
</footer>
</main>
</body>
</html>