Compare commits

..

2 commits

4 changed files with 12 additions and 6 deletions

View file

@ -477,8 +477,11 @@ ol li {
list-style-type: decimal; list-style-type: decimal;
} }
img { img, video {
width: 100%; max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
} }
.supt { .supt {

View file

@ -9,12 +9,12 @@
{{- $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 src="{{ $img_src }}" {{ $img_attr | safeHTMLAttr }} /> <img class="sandpoints-img" src="{{ $img_src }}" {{ $img_attr | safeHTMLAttr }} />
{{- else if strings.HasPrefix .Destination "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 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:" -}} {{- 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/" -}}

View file

@ -5,6 +5,9 @@
<p>_Dir: {{ $currentName }}</p> <p>_Dir: {{ $currentName }}</p>
{{ partial "readdir.html" $currentName }} {{ partial "readdir.html" $currentName }}
{{ else }} {{ else }}
<p>_File: {{ $currentName }} {{ if eq (path.Ext .Name) ".md" }}
{{ $f := readFile $currentName }}
<textarea wrap="off" col="108" row="48 ">{{ $f }}</textarea>
{{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}

File diff suppressed because one or more lines are too long