diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 79ccbec..a53c635 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -231,11 +231,18 @@ max-width: 100%; } -.post-content img { +.post-content { border-radius: 4px; margin: 1rem 0; } +/* Had to make this change so the images have a smaller bottom margin. + This would allow me to position the caption closer to the image*/ +img { + border-radius: 4px; + margin: 1rem 0 0.1rem 0; +} + .post-content img[src*="#center"] { margin: 1rem auto; } diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 1acb87d..fafd734 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1 +1,8 @@ -{{ .Text }} +{{ if .Title }} +
+ {{ .Text }} +
{{ .Title }}
+
+{{ else }} + {{ .Text }} +{{ end }} \ No newline at end of file