This commit is contained in:
2024-08-27 14:30:28 +02:00
parent 740dfe5749
commit bdbdd13f47
55 changed files with 194 additions and 125 deletions

View File

@@ -17,4 +17,5 @@
.nested-links a{
overflow-wrap: break-word;
color: #990099;
}

View File

@@ -57,7 +57,7 @@
{{ block "head" . }}{{ partial "head-additions.html" . }}{{ end }}
</head>
<body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
<body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}" style="overflow-wrap: break-word; background-color: #fdf4ff;">
{{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
<main class="pb7" role="main">

View File

@@ -10,12 +10,14 @@
{{/* Derive the section name */}}
{{ $section_name := . }}
{{/* Create a variable with that section to use in multiple places. */}}
{{ $section := where $.Site.RegularPages "Section" "in" $section_name }}
{{/* $section := where $.Site.RegularPages "Section" "in" $section_name */}}
{{ $section := $.Site.RegularPages }}
{{ $section_count := len $section }}
{{ if ge $section_count 1 }}
<div class="pa3 pa4-ns w-100 w-70-ns center">
{{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}}
{{ with $.Site.GetPage "section" $section_name }}
{{/* with $.Site.GetPage "section" $section_name */}}
{{ with (dict "Title" "") }}
<h1 class="flex-none">
{{ $.Param "recent_copy" | default (i18n "recentTitle" .) }}
</h1>
@@ -36,7 +38,7 @@
<section class="w-100 m8">
<h1 class="f3">{{ i18n "more" }}</h1>
{{/* Now, range through the next four after the initial $n_posts items. Nest the requirements, "after" then "first" on the outside */}}
{{ range (first 4 (after $n_posts $section)) }}
{{ range (first ($.Param "other_posts_number" | default 4) (after $n_posts $section)) }}
<h2 class="f5 fw4 mb4 dib {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml3" "mr3" }}">
<a href="{{ .RelPermalink }}" class="link black dim">
{{ .Title }}
@@ -45,9 +47,9 @@
{{ end }}
{{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}}
{{ with $.Site.GetPage "section" $section_name }}
<!-- {{ with $.Site.GetPage "section" $section_name }}
<a href="{{ .RelPermalink }}" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc">{{ i18n "allTitle" . }}</a>
{{ end }}
{{ end }} -->
</section>
{{ end }}

View File

@@ -18,7 +18,7 @@
</header>
{{ else }}
<header>
<div class="{{ .Site.Params.background_color_class | default "bg-black" }}">
<div class="{{ .Site.Params.background_color_class | default "bg-black" }}" style="background-color: #330066;">
{{ partial "site-navigation.html" . }}
</div>
</header>

View File

@@ -1,10 +1,10 @@
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
<footer class="{{ .Site.Params.background_color_class | default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo" style="background-color: #330066;">
<div class="flex justify-between">
<a class="fw4 hover-white no-underline white-70 dib-ns pv2 ph3" href="{{ .Site.Home.Permalink }}" >
<a class="fw4 hover-white no-underline white-80 dib-ns pv2 ph3" href="{{ .Site.Home.Permalink }}" >
&copy; {{ with .Site.Copyright | default .Site.Title }} {{ . | safeHTML }} 2022{{ now.Format "2006" }} {{ end }}
</a>
<div>{{ partial "social-follow.html" . }}</div>
</div>
<span class="white-70 f6">❤️ Copying is an act of love. <a>Please copy and share</a>.</span>
<span class="white-80 f6">❤️ Copying is an act of love. <a>Please copy and share</a>.</span>
<div class="white pv3 tc">{{ partial "footer-buttons.html" }}</div>
</footer>

View File

@@ -18,7 +18,7 @@
</header>
{{ else }}
<header>
<div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}">
<div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}" style="background-color: #330066;">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">