diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..41008ca --- /dev/null +++ b/layouts/_default/_markup/render-image.html @@ -0,0 +1,11 @@ +{{ if .Title }} +
+ {{ .Text }} +
{{ .Title }}
+
+{{ else }} +
+ {{ .Text }} +
+{{ end }} + diff --git a/static/css/style.css b/static/css/style.css index 3990f6b..d239bd5 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -4,3 +4,6 @@ p > code{color: #FFFFFF; background:#000000; padding:2px} pre{color: #FFFFFF; background:#000000; padding:24px; overflow-x: auto} article{padding:24px 0} .center {display: block;margin-left: auto;margin-right: auto;width: 100%;} +img {display: block; max-width: 100%; height: auto;} +figcaption {color: #888; font: 12px/1.5 monospace; text-align: center;} +figure {margin: auto}