diff options
-rw-r--r-- | layouts/gallery/single.html | 12 | ||||
-rw-r--r-- | static/css/index.css | 14 |
2 files changed, 22 insertions, 4 deletions
diff --git a/layouts/gallery/single.html b/layouts/gallery/single.html index ffed743..479e482 100644 --- a/layouts/gallery/single.html +++ b/layouts/gallery/single.html @@ -14,10 +14,14 @@ </header> <div class="post-content markdown-body"> - {{ range .Params.gallery }} - {{ .name }} - <img src="{{ . }}" alt=""> - {{ end }} + <div class="row gallery"> + {{ range .Params.gallery }} + <div class="col-xs-6 gallery-img"> + <img src="{{ .url }}" alt="{{ .name }}"> + <span class="gallery-img-desc">{{ .name }}</span> + </div> + {{ end }} + </div> </div> {{ if .Site.Params.disqus }} diff --git a/static/css/index.css b/static/css/index.css index 2a3c2e6..0ea93bb 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -158,6 +158,20 @@ a:hover { margin: 5px 0; } +/* gallery */ + +.gallery-img { + text-align: center; +} + +.gallery-img span { + text-align: center; +} +.gallery-img-desc { + font-size: 0.8em; + font-weight: 800; +} + /* disqus */ #disqus_thread { |