diff --git a/README.md b/README.md index b685821..91ebc7b 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ As well as some additional **features**: - Added random footer messages - Added "Edit this on GitHub" button - Added `inlineimg` shortcode to render images (e.g. SVGs) in-line +- Added support for `![](image title="title")` syntax for image titles - Random, somewhat humorous messages at the end of each post And some **bugfixes**: diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..dc0c16b --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,8 @@ +{{ if .Title }} +
+ {{ .Text }} +
{{ .Title }}
+
+{{ else }} + {{ .Text }} +{{ end }} diff --git a/static/css/main.css b/static/css/main.css index 40ea17f..d698ec6 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -488,4 +488,15 @@ ul { margin: 0 0 0 0 !important; max-width: 100%; display: inline-block !important; +} + +.figcaption-img { + margin-bottom: 0px; +} + +figcaption { + font-size: 0.9rem; + display: block; + text-align: center; + color: gray; } \ No newline at end of file