Initial commit
This commit is contained in:
105
theme/partials/content.hbs
Normal file
105
theme/partials/content.hbs
Normal file
@@ -0,0 +1,105 @@
|
||||
|
||||
<div id="container">
|
||||
|
||||
<!--
|
||||
Gallery title
|
||||
-->
|
||||
<header>
|
||||
<h1><a href="{{relative gallery.home.url}}">{{gallery.title}}</a></h1>
|
||||
</header>
|
||||
|
||||
<!--
|
||||
Breadcrumbs of parent albums
|
||||
-->
|
||||
<nav class="breadcrumbs">
|
||||
{{#each breadcrumbs~}}
|
||||
<a class="breadcrumb-item" href="{{relative url}}">{{title}}</a> /
|
||||
{{~/each~}}
|
||||
<a class="breadcrumb-item" href="{{relative album.url}}">{{album.title}}</a>
|
||||
</nav>
|
||||
|
||||
{{#if settings.featuredAlbum}}
|
||||
{{#if album.home}}
|
||||
<!--
|
||||
Featured album slider (on homepage only)
|
||||
-->
|
||||
<ul id="lightSlider">
|
||||
{{! Find the featured album, if any !}}
|
||||
{{#each album.albums~}}
|
||||
{{#compare title '==' @root.settings.featuredAlbum}}
|
||||
{{! Display its image files in the slider !}}
|
||||
{{#each files~}}
|
||||
{{#unless isVideo}}
|
||||
<li data-thumb="{{relative urls.thumbnail}}" data-src="{{relative urls.large}}">
|
||||
<img src="{{relative urls.large}}" alt="{{filename}}">
|
||||
</li>
|
||||
{{/unless}}
|
||||
{{~/each}}
|
||||
{{/compare}}
|
||||
{{~/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<!--
|
||||
Nested albums, if any
|
||||
-->
|
||||
<div id="albums" class="justified-gallery">
|
||||
{{#each album.albums~}}
|
||||
{{! Hide the featured album from listings !}}
|
||||
{{#compare title '!=' @root.settings.featuredAlbum}}
|
||||
<a href="{{relative url}}">
|
||||
<img src="{{relative previews.0.urls.small}}" alt="">
|
||||
<div class="caption" style="display: inline-block">
|
||||
<h3>{{title}}</h3>
|
||||
<div class="summary">{{summary}}</div>
|
||||
</div>
|
||||
</a>
|
||||
{{/compare}}
|
||||
{{~/each}}
|
||||
</div>
|
||||
|
||||
<!--
|
||||
All photos and videos
|
||||
-->
|
||||
<ul id="media" class="clearfix justified-gallery">
|
||||
{{#each album.files~}}
|
||||
{{> thumbnail}}
|
||||
{{~/each}}
|
||||
</ul>
|
||||
|
||||
<!--
|
||||
Pagination
|
||||
-->
|
||||
{{#compare pagination.length '>' 1}}
|
||||
<nav class="pagination">
|
||||
Pages:
|
||||
{{#each pagination}}
|
||||
{{#if current}}
|
||||
<a class="page current" href="{{relative url}}">{{index}}</a>
|
||||
{{else}}
|
||||
<a class="page" href="{{relative url}}">{{index}}</a>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</nav>
|
||||
{{/compare}}
|
||||
|
||||
<!--
|
||||
Zip file link
|
||||
-->
|
||||
{{#if album.zip}}
|
||||
<div id="zip">
|
||||
Download album as a <a href="{{album.zip}}">zip file</a>.
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<!--
|
||||
Optional footer
|
||||
-->
|
||||
{{#if gallery.footer}}
|
||||
<footer>
|
||||
<p>{{{gallery.footer}}}</p>
|
||||
</footer>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
61
theme/partials/thumbnail.hbs
Normal file
61
theme/partials/thumbnail.hbs
Normal file
@@ -0,0 +1,61 @@
|
||||
{{!--
|
||||
Image/Video thumbnails
|
||||
--}}
|
||||
|
||||
<div class="albumList"
|
||||
data-sub-html="{{meta.caption}}"
|
||||
data-download-url="{{relative urls.download}}"
|
||||
|
||||
{{~#if isVideo~}}
|
||||
data-html="#media{{id}}"
|
||||
{{~else~}}
|
||||
data-src="{{relative urls.large}}"
|
||||
{{~/if~}}
|
||||
|
||||
data-exthumbimage="{{relative urls.thumbnail}}"
|
||||
{{~#if @root.settings.hideExtension~}}
|
||||
data-filename="{{remove_extension filename}}"
|
||||
{{~else~}}
|
||||
data-filename="{{filename}}"
|
||||
{{~/if~}}
|
||||
|
||||
{{#if meta.exif}}
|
||||
data-datetimeoriginal="{{meta.exif.DateTimeOriginal}}"
|
||||
data-fnumber="{{meta.exif.FNumber}}"
|
||||
data-exposuretime="{{meta.exif.ExposureTime}}"
|
||||
data-isospeedratings="{{meta.exif.ISO}}"
|
||||
data-focallength="{{meta.exif.FocalLength}}"
|
||||
data-lens="{{meta.exif.Lens}}"
|
||||
data-model="{{meta.exif.Model}}"
|
||||
data-make="{{meta.exif.Make}}"
|
||||
data-gpslatitude="{{meta.exif.GPSLatitude}}"
|
||||
data-gpslongitude="{{meta.exif.GPSLongitude}}"
|
||||
data-gpslatituderef="{{meta.exif.GPSLatitudeRef}}"
|
||||
data-gpslongituderef="{{meta.exif.GPSLongitudeRef}}"
|
||||
data-gpsaltitude="{{meta.exif.GPSAltitude}}"
|
||||
{{/if}}
|
||||
>
|
||||
|
||||
{{~#if isVideo~}}
|
||||
<a href="{{relative urls.download}}">
|
||||
{{~else~}}
|
||||
<a href="{{relative urls.large}}">
|
||||
{{~/if~}}
|
||||
<img
|
||||
src="{{relative urls.small}}"
|
||||
width="{{multiply 300 (aspect meta.width meta.height)}}"
|
||||
height="300"
|
||||
{{~#if @root.settings.hideExtension~}}
|
||||
alt="{{remove_extension filename}}"
|
||||
{{~else~}}
|
||||
alt="{{filename}}"
|
||||
{{~/if~}}
|
||||
/>
|
||||
</a>
|
||||
|
||||
{{#compare meta.animated "||" isVideo}}
|
||||
<div class="video-overlay">
|
||||
<img src="{{relative 'public/play.png'}}" />
|
||||
</div>
|
||||
{{/compare}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user