-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #735 from datatrails/archive-scitt-receipts-remove…
…-scitt-refs Archive scitt receipts remove scitt refs
- Loading branch information
Showing
10 changed files
with
194 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: "{{ replace .Name "-" " " | title }}" | ||
description: "" | ||
lead: "" | ||
date: {{ .Date }} | ||
lastmod: {{ .Date }} | ||
draft: false | ||
images: [] | ||
menu: | ||
archive: | ||
parent: "" | ||
weight: 999 | ||
toc: true | ||
--- | ||
|
||
{{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: "Archive" | ||
description: "Archive section for old articles that we want to keep." | ||
lead: "" | ||
date: 2023-12-11T09:25:37+01:00 | ||
lastmod: 2023-12-11T09:25:37+01:00 | ||
draft: false | ||
images: [] | ||
weight: 999 | ||
toc: true | ||
aliases: | ||
--- | ||
This section is intended to be a space for articles that are no longer needed but still have content that we do not want to delete. | ||
|
||
It is not linked to by any public facing parts of the docs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{ define "main" }} | ||
<div class="row justify-content-center"> | ||
<div class="col-md-12 col-lg-10 col-xl-8"> | ||
<article> | ||
<h1 class="text-left">{{ .Title }}</h1> | ||
<div class="text">{{ .Content }}</div> | ||
<div> | ||
{{ $currentSection := .CurrentSection }} | ||
{{ range where .Site.RegularPages.ByTitle "Section" .Section }} | ||
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }} | ||
<div> | ||
<a href="{{ .RelPermalink }}">{{ .Params.title | title }} →</a> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</article><br> | ||
</div> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{ define "main" }} | ||
<div class="row flex-xl-nowrap"> | ||
<div class="col-lg-5 col-xl-4 docs-sidebar"> | ||
<nav class="docs-links" aria-label="Main navigation"> | ||
{{ partial "sidebar/archive-menu.html" . }} | ||
</nav> | ||
</div> | ||
{{ if ne .Params.toc false -}} | ||
<nav class="docs-toc d-none d-xl-block col-xl-3" aria-label="Secondary navigation"> | ||
{{ partial "sidebar/archive-toc.html" . }} | ||
</nav> | ||
{{ end -}} | ||
{{ if .Params.toc -}} | ||
<main class="docs-content col-lg-11 col-xl-9"> | ||
{{ else -}} | ||
<main class="docs-content col-lg-11 col-xl-9 mx-xl-auto"> | ||
{{ end -}} | ||
{{ if .Site.Params.options.breadCrumb -}} | ||
<!-- https://discourse.gohugo.io/t/breadcrumb-navigation-for-highly-nested-content/27359/6 --> | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb"> | ||
{{ partial "main/breadcrumb" . -}} | ||
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li> | ||
</ol> | ||
</nav> | ||
{{ end }} | ||
{{ if not .Site.Params.options.collapsibleSidebar -}} | ||
{{ partial "main/archive-navigation.html" . }} | ||
{{ else -}} | ||
<div class="my-n3"></div> | ||
{{ end -}} | ||
<h1>{{ .Title }}</h1> | ||
<p class="lead">{{ .Params.lead | safeHTML }}</p> | ||
{{ partial "main/headline-hash.html" .Content }} | ||
{{ if .Site.Params.editPage -}} | ||
{{ partial "main/edit-page.html" . }} | ||
{{ end -}} | ||
{{ partial "main/archive-navigation.html" . }} | ||
</main> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{ if or .Prev .Next -}} | ||
<div class="docs-navigation d-flex justify-content-between"> | ||
<!-- https://www.feliciano.tech/blog/custom-sort-hugo-single-pages/ --> | ||
{{ $pages := where site.RegularPages "Section" .Section -}} | ||
{{ with $pages.Next . -}} | ||
<a href="{{ .RelPermalink }}"> | ||
<div class="card my-1"> | ||
<div class="card-body py-2"> | ||
← {{ .Title }} | ||
</div> | ||
</div> | ||
</a> | ||
{{ end -}} | ||
{{ with $pages.Prev . -}} | ||
<a class="ms-auto" href="{{ .RelPermalink }}"> | ||
<div class="card my-1"> | ||
<div class="card-body py-2"> | ||
{{ .Title }} → | ||
</div> | ||
</div> | ||
</a> | ||
{{ end -}} | ||
</div> | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{ if .Site.Params.options.collapsibleSidebar -}} | ||
<ul class="list-unstyled collapsible-sidebar"> | ||
{{ $currentPage := . -}} | ||
{{ range $index, $element := .Site.Menus.archive -}} | ||
{{- $active := or ($currentPage.IsMenuCurrent "archive" .) ($currentPage.HasMenuCurrent "archive" .) -}} | ||
{{- $active = or $active (eq $currentPage.Section .Identifier) -}} | ||
<li class="mb-1"> | ||
<button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse" data-bs-target="#{{ .Identifier }}" aria-expanded="{{ if $active }}true{{ else }}false{{ end }}"> | ||
{{ .Name }} | ||
</button> | ||
{{ if .HasChildren -}} | ||
<div class="collapse{{ if $active }} show{{ end }}" id="{{ .Identifier }}"> | ||
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small"> | ||
{{ range .Children -}} | ||
{{- $active := or ($currentPage.IsMenuCurrent "archive" .) ($currentPage.HasMenuCurrent "archive" .) -}} | ||
{{- $active = or $active (eq $currentPage.Section .Identifier) -}} | ||
<li><a class="docs-link rounded{{ if $active }} active{{ end }}" href="{{ .URL | relURL }}">{{ .Name }}</a></li> | ||
{{ end -}} | ||
</ul> | ||
</div> | ||
{{ end -}} | ||
</li> | ||
{{ end -}} | ||
</ul> | ||
{{ else -}} | ||
{{ $currentPage := . -}} | ||
{{ range .Site.Menus.archive -}} | ||
<h3>{{ .Name }}</h3> | ||
{{ if .HasChildren -}} | ||
<ul class="list-unstyled"> | ||
{{ range .Children -}} | ||
{{- $active := or ($currentPage.IsMenuCurrent "archive" .) ($currentPage.HasMenuCurrent "archive" .) -}} | ||
{{- $active = or $active (eq $currentPage.Section .Identifier) -}} | ||
<li><a class="docs-link{{ if $active }} active{{ end }}" href="{{ .URL | relURL }}">{{ .Name }}</a></li> | ||
{{ end -}} | ||
</ul> | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ if ne .Params.toc false -}} | ||
<div class="page-links"> | ||
<h3>On this page</h3> | ||
{{ .TableOfContents }} | ||
</div> | ||
{{ end -}} |