diff --git a/customizations/Dotawo/assets/css/site.css b/customizations/Dotawo/assets/css/site.css index b4c1812..52ccedf 100644 --- a/customizations/Dotawo/assets/css/site.css +++ b/customizations/Dotawo/assets/css/site.css @@ -317,10 +317,6 @@ ol li { list-style-type: decimal; } -img { - width: 100%; -} - .supt { display: inline-flex; flex-wrap: nowrap; diff --git a/customizations/Dotawo/layouts/_default/_markup/render-image.html b/customizations/Dotawo/layouts/_default/_markup/render-image.html index bf81236..6e23020 100644 --- a/customizations/Dotawo/layouts/_default/_markup/render-image.html +++ b/customizations/Dotawo/layouts/_default/_markup/render-image.html @@ -29,12 +29,12 @@ {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{ .Page.Scratch.Add "links" (slice $session) }} {{- if not $text_link -}} - {{- index (split .Destination ":") 0 -}}⁄{{- $session.Title -}} + {{- index (split .Destination ":") 0 -}}⁄{{- $session.Title -}} {{- else -}} - {{- index (split .Destination ":") 0 -}}⁄{{- $text_link -}} + {{- index (split .Destination ":") 0 -}}⁄{{- $text_link -}} {{- end -}} {{- else -}} - {{- $text_link -}}⦚{{- .Destination -}} not found + {{- $text_link -}}⦚{{- .Destination -}} not found {{- end -}} {{- else if strings.HasPrefix .Destination "audio:" -}} {{- $a_destination := (substr .Destination 6) -}} diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 96ebc30..37f740c 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -29,12 +29,12 @@ {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} {{ .Page.Scratch.Add "links" (slice $session) }} {{- if not $text_link -}} - {{- index (split .Destination ":") 0 -}}⁄{{- $session.Title -}} + {{- index (split .Destination ":") 0 -}}⁄{{- $session.Title -}} {{- else -}} - {{- index (split .Destination ":") 0 -}}⁄{{- $text_link -}} + {{- index (split .Destination ":") 0 -}}⁄{{- $text_link -}} {{- end -}} {{- else -}} - {{- $text_link -}}⦚{{- .Destination -}} not found + {{- $text_link -}}⦚{{- .Destination -}} not found {{- end -}} {{- else if strings.HasPrefix .Destination "audio:" -}} {{- $a_destination := (substr .Destination 6) -}} diff --git a/layouts/partials/printsinglebody.html b/layouts/partials/printsinglebody.html index 007034a..977f14b 100644 --- a/layouts/partials/printsinglebody.html +++ b/layouts/partials/printsinglebody.html @@ -8,7 +8,7 @@ {{ $currentFile := (printf "/%s" .File) }} {{ $scratch := $s.Get $currentFile }} -