Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/gallery/single.html')
-rw-r--r--layouts/gallery/single.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/gallery/single.html b/layouts/gallery/single.html
new file mode 100644
index 0000000..87a0c77
--- /dev/null
+++ b/layouts/gallery/single.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+<h1>{{ .Page.Title }}</h1>
+
+{{ if and (isset .Params "image") .Params.image }}
+ {{ $image := .Page.Resources.GetMatch .Params.image }}
+ {{ with $image }}
+ {{ $thumb := .Resize "1000x" }}
+ {{ printf `<img src="%s" alt="%s" class="img-responsive gallery-image">` $thumb.RelPermalink .Title | safeHTML }}
+ {{end}}
+{{ end }}
+
+{{ .Content }}
+{{ template "_internal/disqus.html" . }}
+</div>
+{{ end }} \ No newline at end of file