add link to repo
This commit is contained in:
parent
95a366fd93
commit
0c65d13d49
2 changed files with 104 additions and 83 deletions
|
@ -186,6 +186,7 @@ async fn render(
|
|||
"mtime",
|
||||
&mtime.map_or("???".to_string(), |t| t.format("%c").to_string()),
|
||||
);
|
||||
context.insert("version", VERSION);
|
||||
|
||||
Ok(HttpResponse::Ok().body(
|
||||
state
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
<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">
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
|
@ -37,7 +38,10 @@
|
|||
padding: 0 2em;
|
||||
}
|
||||
|
||||
nav {
|
||||
aside {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
min-width: 15%;
|
||||
width: 15%;
|
||||
min-height: 100vh;
|
||||
|
@ -57,22 +61,38 @@
|
|||
font-style: italic;
|
||||
}
|
||||
|
||||
main footer {
|
||||
footer {
|
||||
padding: 1em 0;
|
||||
text-align: right;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
aside footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
aside footer a {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
main footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<aside>
|
||||
<nav>
|
||||
<h2>{{garden_title}}</h2>
|
||||
<ul>
|
||||
{% for file in files %}
|
||||
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}"><a href="/{{file}}">{{file}}</a></li>
|
||||
<li class="{% if file is containing(" .md
|
||||
") %}page{% else %}file{% endif %}"><a href="/{{file}}">{{file}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</nav>
|
||||
<footer><a href="https://gitlab.com/tmladek/gardenserver">gardenserver {{version}}</a></footer>
|
||||
</aside>
|
||||
<main>
|
||||
{{content | safe}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue