diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html index 2955281..93e22cd 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html @@ -1,21 +1,23 @@ -{{- $text_link := .Text -}} + + +{{- $text_link := .Text -}} {{ $_ := newScratch }} {{- range $k, $v := .Page.Site.Data.sandpointsnamegraph -}} {{ $_.Add "triads" $k }} {{- end -}} -{{- if strings.HasPrefix .Destination "img:" -}} +{{- if strings.HasPrefix .Destination "img:" -}} {{- $img_params := (substr .Destination 4) -}} {{- $img_src := index (split $img_params " ") 0 -}} {{- $img_attr := index (split $img_params $img_src) 1 -}} -{{- else if strings.HasPrefix .Destination "vid:" -}} +{{- else if strings.HasPrefix .Destination "vid:" -}} {{- $vid_params := (substr .Destination 4) -}} {{- $vid_src := index (split $vid_params " ") 0 -}} {{- $vid_attr := index (split $vid_params $vid_src) 1 -}} -{{- else if strings.HasPrefix .Destination "bib:" -}} +{{- else if strings.HasPrefix .Destination "bib:" -}} {{- $destination := (substr .Destination 4) -}} {{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}} {{- if index $.Page.Site.Data.books.catalog $destination -}} @@ -26,7 +28,7 @@ {{- $bibtitle = printf "%s" $b.title }} {{ end }} {{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }} - {{- if not $text_link -}} + {{- if not $text_link -}} {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}. bib⁄{{- $b.title -}}. {{- with $b.publisher -}}{{- . -}}.{{- end -}} {{- else -}} bib⁄{{- $text_link -}} @@ -34,7 +36,7 @@ {{- else -}} {{- $text_link -}}⦚bib:{{- $destination -}} not found {{- end -}} -{{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}} +{{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}} {{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{ .Page.Scratch.Add "links" (slice $session) }} @@ -46,15 +48,18 @@ {{- else -}} {{- $text_link -}}⦚{{- .Destination -}} not found {{- end -}} -{{- else if strings.HasPrefix .Destination "audio:" -}} +{{- else if strings.HasPrefix .Destination "audio:" -}} {{- $a_destination := (substr .Destination 6) -}} {{- if findRE "^.*static" $a_destination -}} {{ .Text }} {{- else -}} {{ .Text }} {{- end -}} -{{- else if findRE "^.*static" .Destination -}} - {{- .Text -}} -{{- else -}} +{{- else if findRE "^.*static" .Destination -}} + {{- .Title -}} + {{ if .Text }} +
{{with .Text }} {{ . }} {{end}}
+ {{ end }} +{{- else -}} {{- .Text -}} {{- end -}} diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/site.min.css b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/site.min.css index 3bac55c..0dd3409 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/site.min.css +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/site.min.css @@ -1,4 +1,4 @@ -html,body,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr{ +html,body,dl,dt,dd,blockquote,figcaption, figure,fieldset,legend,textarea,pre,iframe,hr{ margin:0; padding:0 } @@ -247,6 +247,7 @@ input:focus,select:focus,textarea:focus,label:focus,button:focus{ font-size:1em; margin-left:-.37em } + footer{ display:flex; margin-bottom:1rem; @@ -451,7 +452,7 @@ blockquote{ padding-bottom:.1rem; background-color:#fff9f9 } - pre {/*edited by anybody*/ +pre {/*edited by anybody*/ padding-left:1rem; border: 1px red solid; /*border-top: 1px red solid; @@ -464,6 +465,13 @@ blockquote{ code { /*edited by anybody; added background color same as in pre above*/ background-color: #fff5f5; } +figcaption {/*edited by anybody*/ + margin-left:1rem; + font-size: 75%; + margin-bottom:1rem; + margin-top: -0.7rem; /*negative top margin so that it's colser to the image*/ +} + h2+p:first-letter{ font-family:great vibes,cursive; color:rgba(0,0,0,.8);