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

github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/gallery/item.html')
-rw-r--r--layouts/partials/gallery/item.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/partials/gallery/item.html b/layouts/partials/gallery/item.html
new file mode 100644
index 0000000..e5c6f31
--- /dev/null
+++ b/layouts/partials/gallery/item.html
@@ -0,0 +1,20 @@
+
+{{ $url := $.Site.BaseURL }}
+{{ $image := .Params.image | urlize }}
+{{ $date := dateFormat "Mon Jan 06, 2006" .Date }}
+{{ $title := .Title }}
+<!-- TODO: Figure out why line height causes issues here -->
+<div class="flex-item flex-item-spacing no-line-height">
+ <div class="relative rounded-corners z-depth-1 lazyload" data-noscript="">
+ <noscript>
+ <a href="{{ $url }}{{ $image }}" data-lightbox="gallery" data-title="{{ $title }}">
+ <img src="{{ $url }}{{ $image }}"
+ class="fill-container-width rounded-corners z-depth-1" />
+ <div class="highlight-block rounded-corners">
+ <h3 class="white-text">{{ $date }}</h3>
+ </div>
+ </a>
+ </noscript>
+ </div>
+</div>
+