Merge pull request 'Fixes some stuff w/ footnotes absolute links' (#145) from benjaoming/website:fix-links into main
Reviewed-on: https://git.data.coop/data.coop/website/pulls/145
This commit is contained in:
commit
3af362baee
5 changed files with 16 additions and 8 deletions
|
@ -31,7 +31,7 @@ Hvordan vi identificerede det og hvad vi gjorde for at løse det.
|
|||
|
||||
## Nextcloud
|
||||
|
||||
På [cloud.data.coop](https://cloud.data.coop/) kører vi en filsynkroniserings- og delingssoftware [Nextcloud]({{ ref "/services/nextcloud" }}) til vores medlemmer.
|
||||
På [cloud.data.coop](https://cloud.data.coop/) kører vi en filsynkroniserings- og delingssoftware [Nextcloud]({{< ref "/services/nextcloud" >}}) til vores medlemmer.
|
||||
Det er et stykke software, der kan utroligt meget[^for-meget] udover at gemme og synkronisere filer.
|
||||
Det er en service vi har kørt længe.
|
||||
|
||||
|
|
|
@ -8,10 +8,7 @@
|
|||
{{ range $pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ $customDateFormat := "January 2, 2006" }}
|
||||
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
|
||||
<br>
|
||||
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
|
||||
<small class="text-secondary">{{ .PublishDate | time.Format ":date_medium" }}</small>
|
||||
{{ partial "tags" . }}
|
||||
{{ if eq .Site.Params.showPostSummary true }}
|
||||
<br>
|
||||
|
|
11
themes/datacoop2020/layouts/blog/single.html
Normal file
11
themes/datacoop2020/layouts/blog/single.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{- define "main" -}}
|
||||
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
|
||||
<small class="text-secondary">{{ .PublishDate | time.Format ":date_medium" }}</small>
|
||||
{{ partial "tags" . }}
|
||||
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{- end -}}
|
|
@ -1,7 +1,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<base href={{ .Site.BaseURL }}>
|
||||
<base href="{{ .Permalink }}">
|
||||
|
||||
{{ hugo.Generator }}
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
{{ range .Site.Menus.nav }}
|
||||
{{ $atURL := absURL $currentPage.RelPermalink }}
|
||||
{{ $compURL := absURL .URL }}
|
||||
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a>
|
||||
<li><a href="{{ absURL .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a>
|
||||
<ol class="sub-menu">
|
||||
{{ range .Children }}
|
||||
{{ $compURL := absURL .URL }}
|
||||
<li><a href="{{ .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a>
|
||||
<li><a href="{{ absURL .URL }}"{{ if (eq $atURL $compURL) }} class="active"{{ end }}>{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
|
|
Loading…
Add table
Reference in a new issue