css improvement for dt; remove obsolete stuff from 'embed' shortcode

This commit is contained in:
Helmut Merz 2024-11-07 09:13:02 +01:00
parent 5326e4f7b4
commit 37e0403772
2 changed files with 4 additions and 5 deletions

View file

@ -21,6 +21,10 @@ blockquote {
border-left: 0.7rem solid $gray-200; border-left: 0.7rem solid $gray-200;
} }
dt {
margin-top: 8px;
}
dd { dd {
margin-bottom: 0; margin-bottom: 0;
margin-left: 1rem; margin-left: 1rem;

View file

@ -1,12 +1,7 @@
{{- $pid := or (.Get "pid") (.Get "page") -}} {{- $pid := or (.Get "pid") (.Get "page") -}}
{{- $this := $.Page -}} {{- $this := $.Page -}}
{{- $title := .Get "title" -}} {{- $title := .Get "title" -}}
{{- $linkid := or ($this.Scratch.Get "linkid") 1 -}}
{{- $this.Scratch.Set "linkid" (add $linkid 1) -}}
{{- $pages := where .Site.RegularPages "Params.pageid" "eq" $pid -}} {{- $pages := where .Site.RegularPages "Params.pageid" "eq" $pid -}}
{{- $btext := or (.Get "btext") (printf "%d" $linkid) -}}
{{- $btitle := .Get "btitle" -}}
{{- $anchor := printf "link-%d" $linkid -}}
{{- range $pages -}} {{- range $pages -}}
{{- if ne $title "none" -}} {{- if ne $title "none" -}}
### [{{ or $title .Title }}]({{ .Permalink }}) ### [{{ or $title .Title }}]({{ .Permalink }})