diff --git a/config.toml b/config.toml index b0dfa65..a3e53c4 100644 --- a/config.toml +++ b/config.toml @@ -12,6 +12,9 @@ enableRobotsTXT = true posts = "/:slugorfilename" other = "/:slugorfilename" -[markup] - [markup.highlight] - style = 'monokailight' \ No newline at end of file + +[markup.highlight] + style = 'monokailight' + +[markup.goldmark.parser] + wrapStandAloneImageWithinParagraph = false diff --git a/themes/mmotium/assets/css/_vars.scss b/themes/mmotium/assets/css/_vars.scss index 0702953..1b9cfbb 100644 --- a/themes/mmotium/assets/css/_vars.scss +++ b/themes/mmotium/assets/css/_vars.scss @@ -14,7 +14,7 @@ $page-bg-color: #dfdfdf; $page-bg-image: "/images/bg.jpg"; $post-bg-color: white; -$image-wrappper-bg-color: #fcfcfc; -$image-wrappper-border-color: #d6d6d6; +$image-wrapper-bg-color: #fcfcfc; +$image-wrapper-border-color: #d6d6d6; $table-border-color: #d6d6d6; \ No newline at end of file diff --git a/themes/mmotium/assets/css/style.scss b/themes/mmotium/assets/css/style.scss index d91b525..ca549b0 100644 --- a/themes/mmotium/assets/css/style.scss +++ b/themes/mmotium/assets/css/style.scss @@ -53,8 +53,8 @@ nav.navbar { text-align: center; margin: 0; padding: 16px; - background-color: $image-wrappper-bg-color; - border: 1px solid $image-wrappper-border-color; + background-color: $image-wrapper-bg-color; + border: 1px solid $image-wrapper-border-color; } img { diff --git a/themes/mmotium/layouts/_default/_markup/render-image.html b/themes/mmotium/layouts/_default/_markup/render-image.html index 7c0aeeb..1f25ba6 100644 --- a/themes/mmotium/layouts/_default/_markup/render-image.html +++ b/themes/mmotium/layouts/_default/_markup/render-image.html @@ -1,25 +1,31 @@ +{{ if .IsBlock }}
+{{ end }} + {{/* Remote image */ -}} {{ if or (hasPrefix .Destination "https://") (hasPrefix .Destination "http://") }} - {{.Text}} + {{.Text}} {{/* Local image */ -}} {{ else }} {{- $img := .Page.Resources.GetMatch .Destination -}} {{- $resizeMimes := slice "image/png" "image/jpeg" -}} {{ if $img -}} - + {{ if in $resizeMimes $img.MediaType.Type -}} - {{.Text}} + {{.Text}} {{- else -}} - {{.Text}} + {{.Text}} {{- end -}} {{- else -}} - {{.Text}} + {{.Text}} {{- end -}} {{- end -}} - {{ if .Title }}
{{ .Title }}
{{ end }} + {{ if and (.IsBlock) (.Title) }}
{{ .Title }}
{{ end }} + +{{ if .IsBlock }}
+{{ end }} diff --git a/themes/mmotium/layouts/_default/baseof.html b/themes/mmotium/layouts/_default/baseof.html index 348b554..93cbde1 100644 --- a/themes/mmotium/layouts/_default/baseof.html +++ b/themes/mmotium/layouts/_default/baseof.html @@ -2,9 +2,9 @@ - - - + + + {{ block "head_meta" . }}{{ end }} diff --git a/themes/mmotium/layouts/_default/single.html b/themes/mmotium/layouts/_default/single.html index 4304f20..f848cbc 100644 --- a/themes/mmotium/layouts/_default/single.html +++ b/themes/mmotium/layouts/_default/single.html @@ -1,13 +1,13 @@ {{ define "head_meta" }} - - - - - - {{ with .PublishDate }}{{ end }} - {{ with .Lastmod }}{{ end }} + + + + + + {{ with .PublishDate }}{{ end }} + {{ with .Lastmod }}{{ end }} {{ $thumb := $.Resources.Get $.Params.featured_image -}} - {{ with $thumb }}{{end}} + {{ with $thumb }}{{end}} {{end}} {{ define "main" }}