!publish! latest vendor..

This commit is contained in:
w 2023-08-04 14:26:11 +02:00
parent 9cc473ab46
commit 342c9fa025
5 changed files with 29 additions and 690 deletions

View file

@ -1,23 +1,21 @@
<!-- Layout element for the pattern: ![TEXT](URL) Used for Internal links; BIB references; videos; links to static files --> {{- $text_link := .Text -}}
{{- $text_link := .Text -}} <!-- variable for the link text -->
{{ $_ := newScratch }} {{ $_ := newScratch }}
{{- range $k, $v := .Page.Site.Data.sandpointsnamegraph -}} {{- range $k, $v := .Page.Site.Data.sandpointsnamegraph -}}
{{ $_.Add "triads" $k }} {{ $_.Add "triads" $k }}
{{- end -}} {{- end -}}
{{- if strings.HasPrefix .Destination "img:" -}} <!--clause for prefix img: --> {{- if strings.HasPrefix .Destination "img:" -}}
{{- $img_params := (substr .Destination 4) -}} {{- $img_params := (substr .Destination 4) -}}
{{- $img_src := index (split $img_params " ") 0 -}} {{- $img_src := index (split $img_params " ") 0 -}}
{{- $img_attr := index (split $img_params $img_src) 1 -}} {{- $img_attr := index (split $img_params $img_src) 1 -}}
<img class="sandpoints-img" src="{{ $img_src }}" {{ $img_attr | safeHTMLAttr }} /> <img class="sandpoints-img" src="{{ $img_src }}" {{ $img_attr | safeHTMLAttr }} />
{{- else if strings.HasPrefix .Destination "vid:" -}} <!-- clause for prefix vid: --> {{- else if strings.HasPrefix .Destination "vid:" -}}
{{- $vid_params := (substr .Destination 4) -}} {{- $vid_params := (substr .Destination 4) -}}
{{- $vid_src := index (split $vid_params " ") 0 -}} {{- $vid_src := index (split $vid_params " ") 0 -}}
{{- $vid_attr := index (split $vid_params $vid_src) 1 -}} {{- $vid_attr := index (split $vid_params $vid_src) 1 -}}
<video class="sandpoints-vid" controls src="{{ $vid_src }}" {{ $vid_attr | safeHTMLAttr }}></video> <video class="sandpoints-vid" controls src="{{ $vid_src }}" {{ $vid_attr | safeHTMLAttr }}></video>
{{- else if strings.HasPrefix .Destination "bib:" -}} <!-- clause for prefix bib: --> {{- else if strings.HasPrefix .Destination "bib:" -}}
{{- $destination := (substr .Destination 4) -}} {{- $destination := (substr .Destination 4) -}}
{{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}} {{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}}
{{- if index $.Page.Site.Data.books.catalog $destination -}} {{- if index $.Page.Site.Data.books.catalog $destination -}}
@ -28,7 +26,7 @@
{{- $bibtitle = printf "%s" $b.title }} {{- $bibtitle = printf "%s" $b.title }}
{{ end }} {{ end }}
{{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }} {{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }}
{{- if not $text_link -}} <!-- if no title (in square brackets) then compile bibliographic citation text.--> {{- if not $text_link -}}
<span>{{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}},&nbsp;{{- substr . 0 4}}{{- end -}}.&nbsp;<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank"><span class="sup">bib</span><i>{{- $b.title -}}</i></a>.&nbsp;{{- with $b.publisher -}}{{- . -}}.{{- end -}}</span> <span>{{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}},&nbsp;{{- substr . 0 4}}{{- end -}}.&nbsp;<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank"><span class="sup">bib</span><i>{{- $b.title -}}</i></a>.&nbsp;{{- with $b.publisher -}}{{- . -}}.{{- end -}}</span>
{{- else -}} {{- else -}}
<span class="sup">bib</span><a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a> <span class="sup">bib</span><a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with $b.title}} title="{{- . -}}"{{- end -}} target="_blank">{{- $text_link -}}</a>
@ -36,7 +34,7 @@
{{- else -}} {{- else -}}
<a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}⦚<span>bib:{{- $destination -}} not found</span></a> <a href="{{- $c_prefix | safeURL -}}BROWSE_LIBRARY.html#/book/{{- $destination -}}"{{- with .Title}} title="{{- . -}}"{{- end -}}>{{- $text_link -}}⦚<span>bib:{{- $destination -}} not found</span></a>
{{- end -}} {{- end -}}
{{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}} <!-- clause for internal reference to some markdown file in /content/ --> {{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}}
{{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}}
{{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}}
{{ .Page.Scratch.Add "links" (slice $session) }} {{ .Page.Scratch.Add "links" (slice $session) }}
@ -48,18 +46,15 @@
{{- else -}} {{- else -}}
<a href="{{- .Destination -}}/{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}">{{- $text_link -}}⦚<span>{{- .Destination -}} not found</span></a> <a href="{{- .Destination -}}/{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}">{{- $text_link -}}⦚<span>{{- .Destination -}} not found</span></a>
{{- end -}} {{- end -}}
{{- else if strings.HasPrefix .Destination "audio:" -}} <!-- clause for prefix audio:--> {{- else if strings.HasPrefix .Destination "audio:" -}}
{{- $a_destination := (substr .Destination 6) -}} {{- $a_destination := (substr .Destination 6) -}}
{{- if findRE "^.*static" $a_destination -}} {{- if findRE "^.*static" $a_destination -}}
<span class="soundcite" data-url="{{- (replaceRE "^.*static" "" $a_destination ) | safeURL -}}">{{ .Text }}</span> <span class="soundcite" data-url="{{- (replaceRE "^.*static" "" $a_destination ) | safeURL -}}">{{ .Text }}</span>
{{- else -}} {{- else -}}
<span class="soundcite" data-url="{{- $a_destination | safeURL -}}">{{ .Text }}</span> <span class="soundcite" data-url="{{- $a_destination | safeURL -}}">{{ .Text }}</span>
{{- end -}} {{- end -}}
{{- else if findRE "^.*static" .Destination -}} <!-- EDITED clause for link to file in /static/ folder --> {{- else if findRE "^.*static" .Destination -}}
<img src="{{- (replaceRE "^.*static" "" .Destination ) | safeURL -}}" alt="{{- .Title -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} /> <img src="{{- (replaceRE "^.*static" "" .Destination ) | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} />
{{ if .Text }} {{- else -}}
<figcaption> {{with .Text }} {{ . }} {{end}}</figcaption> <!-- ALT becomes caption. Title becomes moouse over text.-->
{{ end }}
{{- else -}} <!-- else-->
<img src="{{- .Destination | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} /> <img src="{{- .Destination | safeURL -}}" alt="{{- .Text -}}" {{- with .Title}} title="{{- . -}}"{{- end -}} />
{{- end -}} {{- end -}}

View file

@ -1,10 +1,10 @@
{{ $id := index .Params 0 }} {{ $id := index .Params 0 }}
{{ $type := index .Params 1 | default "track" }} {{ $type := index .Params 1 | default "track" }}
<iframe <iframe
width="100%" width="100%"
height="300" height="300"
scrolling="no" scrolling="no"
frameborder="no" frameborder="no"
allow="autoplay" allow="autoplay"
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/{{ $type }}s/{{ $id }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"> src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/{{ $type }}s/{{ $id }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true">
</iframe> </iframe>

View file

@ -12,7 +12,7 @@
{{ else }} {{ else }}
<div class="coretitle"><span class="supt">{{ index $p 0 }}</span>{{ index $p 1 }}</div> <div class="coretitle"><span class="supt">{{ index $p 0 }}</span>{{ index $p 1 }}</div>
{{ range .Pages.ByDate.Reverse }} {{ range .Pages.ByDate.Reverse }}
<!--<div class="blog-date">{{ .Date.Format "Jan 2, 2006" }}</div>--> <!-- remove mention of date in keyword view. any 13.07.23--> <div class="blog-date">{{ .Date.Format "Jan 2, 2006" }}</div>
<div class="blog-title"><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div> <div class="blog-title"><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></div>
{{ range $n, $authorFile := .Params.authors }} {{ range $n, $authorFile := .Params.authors }}
{{ $author := $.GetPage (printf "/author/%s" $authorFile) }} {{ $author := $.GetPage (printf "/author/%s" $authorFile) }}

File diff suppressed because one or more lines are too long

View file

@ -38,11 +38,13 @@ startLevel = 1
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true
[markup.goldmark.extensions]
footnoteprefix = true
## Enable custom attribute support for titles and blocks by adding attribute lists inside single curly brackets ({.myclass class="class1 class2" }) and placing it after the Markdown element it decorates, on the same line for titles and on a new line directly below for blocks. introduced in hugo v0.81 ## Enable custom attribute support for titles and blocks by adding attribute lists inside single curly brackets ({.myclass class="class1 class2" }) and placing it after the Markdown element it decorates, on the same line for titles and on a new line directly below for blocks. introduced in hugo v0.81
# #
[markup.goldmark.parser.attribute] #[markup.goldmark.parser.attribute]
block = true #block = true
[module] [module]
## replacement allow for easier local development ## replacement allow for easier local development
@ -72,9 +74,9 @@ target = "data"
## if not working on the css rendered via hugo's postcss pipes ## if not working on the css rendered via hugo's postcss pipes
## this should make it ready to go with only `hugo` and not `hugo -e dev` ## this should make it ready to go with only `hugo` and not `hugo -e dev`
# #
[[module.imports.mounts]] #[[module.imports.mounts]]
source = "assets/css/site-min.css" #source = "assets/css/site-min.css"
target = "static/css/site-min.css" #target = "static/css/site-min.css"
## import _index.md from SandpointsTheme exampleSite to content/metadata so the metadata is rendered without bothering the regular user ## import _index.md from SandpointsTheme exampleSite to content/metadata so the metadata is rendered without bothering the regular user
# #