diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index eef90e0..9957c21 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,27 +1,16 @@ {{ $img := $.Page.Resources.GetMatch (.Get "src")}} -{{ $name_splitted := split $img.RelPermalink "." }} -{{ $name_base := index $name_splitted 0 }} -{{ $ext_base := index $name_splitted 1 }}
{{ with .Get "link" }} - {{ else }} - {{ end }} - - {{ if ( in "svg ico gif" $ext_base ) }} - {{ . }} - {{ else }} - - - {{ . }} - {{ end }} - - + {{ . }} + {{ with .Get "link" }} + + {{ end }} {{ if .Get "caption" }}

{{ .Get "caption" }} diff --git a/static/css/style.css b/static/css/style.css index bfe3b02..09abc16 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -547,11 +547,11 @@ a:focus { } .article-body figure.half { width: 100%; - max-width: 45%; + max-width: 50%; } .article-body figure.third { width: 100%; - max-width: 30%; + max-width: 33.33%; } .article-body figure.logo img { width: 100px;