-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae1d4d5
commit d1e8c84
Showing
5 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
layout: page | ||
title: "Napoli I" | ||
#description: "masonry" | ||
active: gallery | ||
header-img: "img/gallery12-bg.jpg" | ||
#album-title: "my 9th album" | ||
images: | ||
- image_path: /gallery/archive/g12/na1.jpg | ||
copyright: © Gianpaolo Filippa | ||
- image_path: /gallery/archive/g12/na2.jpg | ||
caption: Santa Chiara | ||
copyright: © Gianpaolo Filippa | ||
|
||
--- | ||
|
||
<html class="no-js" lang="en"> | ||
<head> | ||
<meta content="charset=utf-8"> | ||
</head> | ||
|
||
<body> | ||
|
||
<section id="content" role="main"> | ||
<div class="wrapper"> | ||
<br><br> | ||
<h2>{{page.album-title}}</h2> | ||
|
||
|
||
<!-- Gallery __--> | ||
<div class="gallery masonry-gallery"> | ||
|
||
{% for image in page.images %} | ||
|
||
<figure class="gallery-item"> | ||
<header class='gallery-icon'> | ||
|
||
<a href="{{ site.url }}{{ site.baseurl }}{{ image.image_path }}" class="popup" title="{{ image.caption }}" data-caption="{{ image.copyright }}"> | ||
<img src="{{ site.url }}{{ site.baseurl }}{{ image.image_path }}"></a> | ||
|
||
</header> | ||
<figcaption class='gallery-caption'> | ||
<div class="entry-summary"> | ||
<h3>{{image.caption}}</h3> | ||
<p>{{image.copyright}}</p> | ||
</div> | ||
</figcaption> | ||
</figure> | ||
|
||
{% endfor %} | ||
|
||
</div> | ||
|
||
</div><!-- END .wrapper --> | ||
</section> | ||
|
||
<!-- jQuery --> | ||
|
||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | ||
<!-- include image popups --> | ||
<script src="{{ site.baseurl }}/js/jquery.magnific-popup.js"></script> | ||
<script src="{{ site.baseurl }}/js/retina.min.js"></script> | ||
<!-- include Masonry --> | ||
<script src="{{ site.baseurl }}/js/isotope.pkgd.min.js"></script> | ||
<!-- include mousewheel plugins --> | ||
<script src="{{ site.baseurl }}/js/jquery.mousewheel.min.js"></script> | ||
<!-- include carousel plugins --> | ||
<script src="{{ site.baseurl}}/js/jquery.tinycarousel.min.js"></script> | ||
<!-- include svg line drawing plugin --> | ||
<script src="{{ site.baseurl }}/js/jquery.lazylinepainter.min.js"></script> | ||
<!-- include custom script --> | ||
<script src="{{ site.baseurl }}/js/scripts.js"></script> | ||
<!-- Modernizr --> | ||
<script src="{{ site.baseurl }}/js/modernizr.js"></script> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function($) { | ||
$('a.popup').magnificPopup({ | ||
type: 'image', | ||
gallery:{ | ||
enabled:true, | ||
navigateByImgClick: true, | ||
preload: [0,1] // Will preload 0 - before current, and 1 after the current image | ||
}, | ||
image: { | ||
titleSrc: function(item) { | ||
return item.el.attr('title') + ' ' + item.el.attr('data-caption'); | ||
} | ||
} | ||
// other options | ||
}); | ||
}); | ||
</script> | ||
|
||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters