less spacing in nav, fix .md detection
This commit is contained in:
parent
8938b63b12
commit
fcd5546d97
2 changed files with 26 additions and 22 deletions
|
@ -73,7 +73,7 @@ nav ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
nav li {
|
nav li {
|
||||||
margin: .5em 0;
|
margin: .25em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav .file {
|
nav .file {
|
||||||
|
|
|
@ -1,22 +1,25 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{{garden_title}} - {{page_title}}</title>
|
<title>{{garden_title}} - {{page_title}}</title>
|
||||||
<link href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" rel="stylesheet">
|
<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"
|
<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">
|
rel="stylesheet">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="/static/main.css" rel="stylesheet">
|
<link href="/static/main.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<aside>
|
<aside>
|
||||||
<nav>
|
<nav>
|
||||||
<h1>{{garden_title}}</h1>
|
<h1>{{garden_title}}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{% for file in files %}
|
{% for file in files %}
|
||||||
<li class="{% if file is containing(" .md
|
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}"><a
|
||||||
") %}page{% else %}file{% endif %}"><a href="/{{file}}">{{file}}</a></li>
|
href="/{{file}}">{{file}}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -30,4 +33,5 @@
|
||||||
</footer>
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue