stuff
parent
dc7dee8775
commit
cd3ca9fcbb
|
@ -36,10 +36,11 @@
|
|||
}
|
||||
|
||||
#search-form {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-inline-size: 100%;
|
||||
width: 100%;
|
||||
max-width: 18rem;
|
||||
display: grid;
|
||||
grid-template-columns: 20ch 8ch;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
#search-input {
|
||||
|
@ -48,10 +49,13 @@
|
|||
border-radius: 100rem;
|
||||
border: 0;
|
||||
padding: 0.5rem 1rem;
|
||||
margin-inline-end: 0.5rem;
|
||||
flex-shrink: 1;
|
||||
block-size: 2rem;
|
||||
box-sizing: border-box;
|
||||
resize: horizontal;
|
||||
width: 100%;
|
||||
grid-column: 1;
|
||||
block-size: 2rem;
|
||||
line-height: 1rem;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
#search-submit {
|
||||
|
@ -60,5 +64,8 @@
|
|||
background: var(--primary-accent);
|
||||
color: var(--primary-accent-text);
|
||||
border-radius: 4px;
|
||||
grid-column: 2;
|
||||
block-size: 2rem;
|
||||
line-height: 1rem;
|
||||
font-size: 0.75rem;
|
||||
}
|
|
@ -1,3 +1,7 @@
|
|||
+++
|
||||
draft = true
|
||||
+++
|
||||
|
||||
## puzzles
|
||||
|
||||
The First Puzzle:
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
+++
|
||||
title = "sitemap"
|
||||
+++
|
|
@ -16,7 +16,7 @@
|
|||
<nav>
|
||||
<h2 class="subsections-title">Sub-sections of {{ or $.File.ContentBaseName "index" }}</h2>
|
||||
<ul class="subsections">
|
||||
{{ range where . "Section" "!=" "search" }}
|
||||
{{ range where . "Section" "not in" (slice "search" "sitemap") }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ path.Base (path.Split .File.Path).Dir }}/
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1>{{.Title}}</h1>
|
||||
<p>alternate formats: <a href="/sitemap.xml">[XML]</a></p>
|
||||
</div>
|
||||
</header>
|
||||
<hr>
|
||||
<section>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h2>most recently updated</h2>
|
||||
</header>
|
||||
<ul class="page-list">
|
||||
{{ range sort .Site.RegularPages ".Lastmod.UTC" "desc" }}
|
||||
<li>
|
||||
<a href="{{.Permalink}}">
|
||||
{{.File.Path}}
|
||||
</a>
|
||||
<br>
|
||||
<span>{{ .Lastmod.UTC.Format "2006-01-02" }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<style>
|
||||
.page-list {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
hr {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
</style>
|
||||
{{ end }}
|
Loading…
Reference in New Issue