From ef1b2a1e5e61d7929c3dad7c9ae13b7be09ac63e Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Sun, 20 Apr 2025 17:06:18 +0200 Subject: [PATCH] fix blockquotes and linking --- assets/css/pages/_single.scss | 22 ++++------------------ layouts/partials/cite.html | 3 ++- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/assets/css/pages/_single.scss b/assets/css/pages/_single.scss index e00bf5e..9916b7e 100644 --- a/assets/css/pages/_single.scss +++ b/assets/css/pages/_single.scss @@ -11,7 +11,7 @@ grid-column-end: 3; background-color: $light; filter: brightness(80%); - @include mq('desktop') { + @include mq("desktop") { border: 2px solid $dark; grid-column-end: 2; padding: 2em; @@ -180,11 +180,11 @@ grid-row-start: 2; grid-row-end: 3; - @include mq('desktop') { + @include mq("desktop") { grid-row-start: 1; grid-row-end: 4; grid-column-start: 2; - } + } /* Temporary until I've fixed all the figures */ overflow-x: clip; @@ -239,20 +239,6 @@ } } - &:first-child { - font-size: 1.2em; - text-align: center; - display: block; - margin: 0 auto; - border-left: 0; - padding-left: 0; - width: 100%; - padding-top: 1em; - padding-bottom: 1.2em; - border-top: 2px outset $dark; - border-bottom: 2px inset $dark; - } - & p:first-child { margin-top: 0; } @@ -360,7 +346,7 @@ grid-row-start: 3; grid-row-end: 4; border-top: 2px solid $dark; - @include mq('desktop') { + @include mq("desktop") { margin-bottom: 2em; grid-row-start: 2; grid-row-end: 3; diff --git a/layouts/partials/cite.html b/layouts/partials/cite.html index 8fe8c33..648ae17 100644 --- a/layouts/partials/cite.html +++ b/layouts/partials/cite.html @@ -1,6 +1,7 @@ {{- $itemType := default "CreativeWork" .schemaType -}} -{{- $pages := where ( where .g.Site.Pages "Section" .section ) "title" .title | first 1 -}} +{{ warnf "%x" ( len ( where .g.Site.Pages "Section" .section ) ) }} +{{- $pages := where ( where .g.Site.Pages "Section" .section ) "Title" .title | first 1 -}} {{- with .c -}} {{- with $pages -}}{{- range . -}}{{- end -}}{{- end -}}