From 37e04037722b112de053953fc67645fa5eeabb84 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Thu, 7 Nov 2024 09:13:02 +0100 Subject: [PATCH] css improvement for dt; remove obsolete stuff from 'embed' shortcode --- assets/sass/_cybercards.scss | 4 ++++ layouts/shortcodes/embed.md | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/sass/_cybercards.scss b/assets/sass/_cybercards.scss index b8c4f82..e866cc5 100644 --- a/assets/sass/_cybercards.scss +++ b/assets/sass/_cybercards.scss @@ -21,6 +21,10 @@ blockquote { border-left: 0.7rem solid $gray-200; } +dt { + margin-top: 8px; +} + dd { margin-bottom: 0; margin-left: 1rem; diff --git a/layouts/shortcodes/embed.md b/layouts/shortcodes/embed.md index a0b4fee..f9e63f1 100644 --- a/layouts/shortcodes/embed.md +++ b/layouts/shortcodes/embed.md @@ -1,12 +1,7 @@ {{- $pid := or (.Get "pid") (.Get "page") -}} {{- $this := $.Page -}} {{- $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 -}} -{{- $btext := or (.Get "btext") (printf "%d" $linkid) -}} -{{- $btitle := .Get "btitle" -}} -{{- $anchor := printf "link-%d" $linkid -}} {{- range $pages -}} {{- if ne $title "none" -}} ### [{{ or $title .Title }}]({{ .Permalink }})