footer: Add margin between CCO icons

Treefmt output
This commit is contained in:
Jan Kremer 2025-05-04 12:46:30 +02:00
parent c184aad39e
commit 1f2c1382fa
Signed by: jan
GPG key ID: A7DA689CB3B078EC
7 changed files with 90 additions and 50 deletions

View file

@ -133,7 +133,11 @@ a {
margin: 0.5rem;
vertical-align: middle;
fill: light-dark(var(--uchu-yin), var(--uchu-yang));
@media (prefers-color-scheme: dark) { path { fill: white; } }
@media (prefers-color-scheme: dark) {
path {
fill: white;
}
}
}
}
@ -149,7 +153,9 @@ header {
list-style: none;
padding: 0 0.5rem;
a { color: light-dark(var(--uchu-yin), var(--uchu-yang)); }
a {
color: light-dark(var(--uchu-yin), var(--uchu-yang));
}
.active {
text-decoration: underline;
@ -166,16 +172,21 @@ article {
text-justify: inter-word;
font-variant-numeric: oldstyle-nums;
img { width: 100%; }
img {
width: 100%;
}
>p:nth-of-type(2)::first-letter {
> p:nth-of-type(2)::first-letter {
font-size: 3.3rem;
float: left;
line-height: 3rem;
padding-right: 0.2rem;
}
p, ul { font-family: var(--serif); }
p,
ul {
font-family: var(--serif);
}
.dates {
display: flex;
@ -200,11 +211,17 @@ article {
margin: 0;
}
em { color: var(--uchu-red); }
em {
color: var(--uchu-red);
}
strong { color: var(--uchu-orange); }
strong {
color: var(--uchu-orange);
}
abbr { text-decoration-color: var(--uchu-blue); }
abbr {
text-decoration-color: var(--uchu-blue);
}
table {
border-collapse: collapse;
@ -232,18 +249,25 @@ footer {
text-decoration: none;
color: light-dark(var(--uchu-yin), var(--uchu-yang));
&:hover { text-decoration: none; }
&:hover {
text-decoration: none;
}
}
svg {
height: 0.75rem;
width: 0.75rem;
vertical-align: middle;
margin: 0 1px;
}
#title {
svg {
@media (prefers-color-scheme: dark) { path { fill: white; } }
@media (prefers-color-scheme: dark) {
path {
fill: white;
}
}
}
}
}
@ -269,7 +293,9 @@ footer {
text-decoration: none;
}
h2 { margin: 0; }
h2 {
margin: 0;
}
.lead {
margin: 0;

View file

@ -41,6 +41,11 @@
apps = eachSystem (pkgs: {
default = {
type = "app";
meta = {
description = "Build my blog";
homepage = "https://jankremer.eu";
license = nixpkgs.lib.licenses.cc0;
};
program =
(pkgs.writeShellScript "build-website" ''
set -e

View file

@ -4,18 +4,18 @@
.Site.RegularPages "Type" "ne" "page")
}}
<div class="list">
<ul>
{{ range $pages.Pages }}
<li>
<a href="{{ .RelPermalink }}" style="display: block">
<h2>{{ .Title }}</h2>
<p class="lead">{{ .Description }}</p>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</a>
</li>
{{ end }}
</ul>
</div>
<ul>
{{ range $pages.Pages }}
<li>
<a href="{{ .RelPermalink }}" style="display: block">
<h2>{{ .Title }}</h2>
<p class="lead">{{ .Description }}</p>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}

View file

@ -1,20 +1,20 @@
{{ define "main" }}
{{ .Content }}
<div class="list">
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}" style="display: block">
<h2>{{ .Title }}</h2>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}" style="display: block">
<h2>{{ .Title }}</h2>
<p class="lead">{{ .Description }}</p>
<p class="lead">{{ .Description }}</p>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</a>
</li>
{{ end }}
</ul>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}

View file

@ -5,7 +5,12 @@
{{ $lastmodDateHuman := .Lastmod | time.Format ":date_long" }}
{{ $lastmodDateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
<div class="dates">
<p>Editiert: <time datetime="{{ $lastmodDateMachine }}">{{ $lastmodDateHuman }}</time></p>
<p>
Editiert:
<time datetime="{{ $lastmodDateMachine }}"
>{{ $lastmodDateHuman }}</time
>
</p>
<p><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
</div>
<h1>{{ .Title }}</h1>

View file

@ -1,15 +1,19 @@
<ul>
<li>
<a href="https://creativecommons.org/publicdomain/zero/1.0/">
<a
href="https://creativecommons.org/publicdomain/zero/1.0/"
target="_blank"
rel="noopener noreferrer"
>
{{ partial "cc.svg" . }}
{{ partial "zero.svg" . }}
</a>
</li>
<li>
<a href="/about" id="title">
{{ partial "logo.svg" . }}
{{ site.Title }}
</a>
<a href="/about" id="title">
{{ partial "logo.svg" . }}
{{ site.Title }}
</a>
</li>
<li>2021{{ now.Year }}</li>
</ul>

View file

@ -12,11 +12,11 @@
<div class="tags">
<ul>
<li>Tags:</li>
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
</ul>
</div>
{{- end }}