stuff
This commit is contained in:
parent
dc7dee8775
commit
cd3ca9fcbb
|
@ -36,10 +36,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-form {
|
#search-form {
|
||||||
display: flex;
|
width: 100%;
|
||||||
justify-content: center;
|
max-width: 18rem;
|
||||||
align-items: center;
|
display: grid;
|
||||||
max-inline-size: 100%;
|
grid-template-columns: 20ch 8ch;
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-input {
|
#search-input {
|
||||||
|
@ -48,10 +49,13 @@
|
||||||
border-radius: 100rem;
|
border-radius: 100rem;
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
margin-inline-end: 0.5rem;
|
|
||||||
flex-shrink: 1;
|
|
||||||
block-size: 2rem;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
resize: horizontal;
|
||||||
|
width: 100%;
|
||||||
|
grid-column: 1;
|
||||||
|
block-size: 2rem;
|
||||||
|
line-height: 1rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-submit {
|
#search-submit {
|
||||||
|
@ -60,5 +64,8 @@
|
||||||
background: var(--primary-accent);
|
background: var(--primary-accent);
|
||||||
color: var(--primary-accent-text);
|
color: var(--primary-accent-text);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
grid-column: 2;
|
||||||
block-size: 2rem;
|
block-size: 2rem;
|
||||||
|
line-height: 1rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
}
|
}
|
|
@ -1,3 +1,7 @@
|
||||||
|
+++
|
||||||
|
draft = true
|
||||||
|
+++
|
||||||
|
|
||||||
## puzzles
|
## puzzles
|
||||||
|
|
||||||
The First Puzzle:
|
The First Puzzle:
|
||||||
|
|
3
content/sitemap/_index.md
Normal file
3
content/sitemap/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
title = "sitemap"
|
||||||
|
+++
|
|
@ -16,7 +16,7 @@
|
||||||
<nav>
|
<nav>
|
||||||
<h2 class="subsections-title">Sub-sections of {{ or $.File.ContentBaseName "index" }}</h2>
|
<h2 class="subsections-title">Sub-sections of {{ or $.File.ContentBaseName "index" }}</h2>
|
||||||
<ul class="subsections">
|
<ul class="subsections">
|
||||||
{{ range where . "Section" "!=" "search" }}
|
{{ range where . "Section" "not in" (slice "search" "sitemap") }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
{{ path.Base (path.Split .File.Path).Dir }}/
|
{{ path.Base (path.Split .File.Path).Dir }}/
|
||||||
|
|
41
layouts/sitemap/list.html
Normal file
41
layouts/sitemap/list.html
Normal file
|
@ -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 a new issue