Mass rename/move to get rid of Haskell stuff
8
static/css/custom.css
Normal file
@@ -0,0 +1,8 @@
|
||||
pre.result {
|
||||
background-color: #DDD;
|
||||
}
|
||||
/*
|
||||
code {
|
||||
background-color: #EEE
|
||||
}
|
||||
*/
|
||||
160
static/css/hugo-easy-gallery.css
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
Put this file in /static/css/hugo-easy-gallery.css
|
||||
Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
Grid Layout Styles
|
||||
*/
|
||||
.gallery {
|
||||
overflow: hidden;
|
||||
margin: 10px;
|
||||
max-width: 768px;
|
||||
}
|
||||
.gallery .box {
|
||||
float: left;
|
||||
position: relative;
|
||||
/* Default: 1 tile wide */
|
||||
width: 100%;
|
||||
padding-bottom: 100%;
|
||||
}
|
||||
@media only screen and (min-width : 365px) {
|
||||
/* Tablet view: 2 tiles */
|
||||
.gallery .box {
|
||||
width: 50%;
|
||||
padding-bottom: 50%;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width : 480px) {
|
||||
/* Small desktop / ipad view: 3 tiles */
|
||||
.gallery .box {
|
||||
width: 33.3%;
|
||||
padding-bottom: 33.3%; /* */
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width : 9999px) {
|
||||
/* Medium desktop: 4 tiles */
|
||||
.box {
|
||||
width: 25%;
|
||||
padding-bottom: 25%;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Transition styles
|
||||
*/
|
||||
.gallery.hover-transition figure,
|
||||
.gallery.hover-effect-zoom .img,
|
||||
.gallery:not(.caption-effect-appear) figcaption,
|
||||
.fancy-figure:not(.caption-effect-appear) figcaption {
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
-o-transition: all 0.3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
/*
|
||||
figure styles
|
||||
*/
|
||||
figure {
|
||||
position:relative; /* purely to allow absolution positioning of figcaption */
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
.gallery figure {
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
top: 5px;
|
||||
bottom: 5px;
|
||||
}
|
||||
.gallery.hover-effect-grow figure:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.gallery.hover-effect-shrink figure:hover {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
.gallery.hover-effect-slidedown figure:hover {
|
||||
transform: translateY(5px);
|
||||
}
|
||||
.gallery.hover-effect-slideup figure:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
/*
|
||||
img / a styles
|
||||
*/
|
||||
|
||||
.gallery .img {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background-size: cover;
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.gallery.hover-effect-zoom figure:hover .img {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.gallery img {
|
||||
display: none; /* only show the img if not inside a gallery */
|
||||
}
|
||||
figure a {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
figcaption styles
|
||||
*/
|
||||
.gallery figcaption,
|
||||
.fancy-figure figcaption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
font-size: 75%; /* change this if you want bigger text */
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
opacity: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.gallery.caption-position-none figcaption,
|
||||
.fancy-figure.caption-position-none figcaption {
|
||||
display: none;
|
||||
}
|
||||
.gallery.caption-position-center figcaption,
|
||||
.fancy-figure.caption-position-center figcaption {
|
||||
top: 0;
|
||||
padding: 40% 5px;
|
||||
}
|
||||
.gallery.caption-position-bottom figcaption,
|
||||
.fancy-figure.caption-position-bottom figcaption {
|
||||
padding: 5px;
|
||||
}
|
||||
.gallery.caption-effect-fade figure:not(:hover) figcaption,
|
||||
.gallery.caption-effect-appear figure:not(:hover) figcaption,
|
||||
.fancy-figure.caption-effect-fade figure:not(:hover) figcaption,
|
||||
.fancy-figure.caption-effect-appear figure:not(:hover) figcaption {
|
||||
background: rgba(0, 0, 0, 0);
|
||||
opacity: 0;
|
||||
}
|
||||
.gallery.caption-effect-slide.caption-position-bottom figure:not(:hover) figcaption,
|
||||
.fancy-figure.caption-effect-slide.caption-position-bottom figure:not(:hover) figcaption {
|
||||
margin-bottom: -100%;
|
||||
}
|
||||
.gallery.caption-effect-slide.caption-position-center figure:not(:hover) figcaption,
|
||||
.fancy-figure.caption-effect-slide.caption-position-center figure:not(:hover) figcaption {
|
||||
top: 100%;
|
||||
}
|
||||
figcaption p {
|
||||
margin: auto; /* override style in theme */
|
||||
}
|
||||
|
||||
80
static/js/load-photoswipe.js
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
Put this file in /static/js/load-photoswipe.js
|
||||
Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
|
||||
*/
|
||||
|
||||
/* Show an alert if this js file has been loaded twice */
|
||||
if (window.loadphotoswipejs) {
|
||||
window.alert("You've loaded load-photoswipe.js twice. See https://github.com/liwenyip/hugo-easy-gallery/issues/6")
|
||||
}
|
||||
var loadphotoswipejs = 1
|
||||
|
||||
/* TODO: Make the share function work */
|
||||
$( document ).ready(function() {
|
||||
/*
|
||||
Initialise Photoswipe
|
||||
*/
|
||||
var items = []; // array of slide objects that will be passed to PhotoSwipe()
|
||||
// for every figure element on the page:
|
||||
$('figure').each( function() {
|
||||
if ($(this).attr('class') == 'no-photoswipe') return true; // ignore any figures where class="no-photoswipe"
|
||||
// get properties from child a/img/figcaption elements,
|
||||
var $figure = $(this),
|
||||
$a = $figure.find('a'),
|
||||
$img = $figure.find('img'),
|
||||
$src = $a.attr('href'),
|
||||
$title = $img.attr('alt'),
|
||||
$msrc = $img.attr('src');
|
||||
// if data-size on <a> tag is set, read it and create an item
|
||||
if ($a.data('size')) {
|
||||
var $size = $a.data('size').split('x');
|
||||
var item = {
|
||||
src : $src,
|
||||
w : $size[0],
|
||||
h : $size[1],
|
||||
title : $title,
|
||||
msrc : $msrc
|
||||
};
|
||||
console.log("Using pre-defined dimensions for " + $src);
|
||||
// if not, set temp default size then load the image to check actual size
|
||||
} else {
|
||||
var item = {
|
||||
src : $src,
|
||||
w : 800, // temp default size
|
||||
h : 600, // temp default size
|
||||
title : $title,
|
||||
msrc : $msrc
|
||||
};
|
||||
console.log("Using default dimensions for " + $src);
|
||||
// load the image to check its dimensions
|
||||
// update the item as soon as w and h are known (check every 30ms)
|
||||
var img = new Image();
|
||||
img.src = $src;
|
||||
var wait = setInterval(function() {
|
||||
var w = img.naturalWidth,
|
||||
h = img.naturalHeight;
|
||||
if (w && h) {
|
||||
clearInterval(wait);
|
||||
item.w = w;
|
||||
item.h = h;
|
||||
console.log("Got actual dimensions for " + img.src);
|
||||
}
|
||||
}, 30);
|
||||
}
|
||||
// Save the index of this image then add it to the array
|
||||
var index = items.length;
|
||||
items.push(item);
|
||||
// Event handler for click on a figure
|
||||
$figure.on('click', function(event) {
|
||||
event.preventDefault(); // prevent the normal behaviour i.e. load the <a> hyperlink
|
||||
// Get the PSWP element and initialise it with the desired options
|
||||
var $pswp = $('.pswp')[0];
|
||||
var options = {
|
||||
index: index,
|
||||
bgOpacity: 0.8,
|
||||
showHideOpacity: true
|
||||
}
|
||||
new PhotoSwipe($pswp, PhotoSwipeUI_Default, items, options).init();
|
||||
});
|
||||
});
|
||||
});
|
||||
BIN
static/wp_old/2008/03/6282.jpg
Normal file
|
After Width: | Height: | Size: 586 KiB |
BIN
static/wp_old/2008/03/6285.jpg
Normal file
|
After Width: | Height: | Size: 339 KiB |
BIN
static/wp_old/2008/03/6289.jpg
Normal file
|
After Width: | Height: | Size: 304 KiB |
BIN
static/wp_old/2008/03/6292.jpg
Normal file
|
After Width: | Height: | Size: 521 KiB |
BIN
static/wp_old/2008/03/6306.jpg
Normal file
|
After Width: | Height: | Size: 507 KiB |
BIN
static/wp_old/2008/03/6310.jpg
Normal file
|
After Width: | Height: | Size: 491 KiB |
BIN
static/wp_old/2008/03/6318.jpg
Normal file
|
After Width: | Height: | Size: 496 KiB |
BIN
static/wp_old/2008/03/6338.jpg
Normal file
|
After Width: | Height: | Size: 599 KiB |
BIN
static/wp_old/2008/03/6341.jpg
Normal file
|
After Width: | Height: | Size: 641 KiB |
BIN
static/wp_old/2008/03/6348.jpg
Normal file
|
After Width: | Height: | Size: 195 KiB |
BIN
static/wp_old/2008/03/6367e.jpg
Normal file
|
After Width: | Height: | Size: 359 KiB |
BIN
static/wp_old/2008/03/6369e.jpg
Normal file
|
After Width: | Height: | Size: 402 KiB |
BIN
static/wp_old/2008/03/6389e.jpg
Normal file
|
After Width: | Height: | Size: 499 KiB |
BIN
static/wp_old/2008/03/img_6253.jpg
Normal file
|
After Width: | Height: | Size: 241 KiB |
BIN
static/wp_old/2008/03/img_6262.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
static/wp_old/2008/03/img_6265.jpg
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
static/wp_old/2008/03/img_6291.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
static/wp_old/2008/03/img_6359.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
static/wp_old/2008/04/6422e.jpg
Normal file
|
After Width: | Height: | Size: 500 KiB |
BIN
static/wp_old/2008/04/6425e.jpg
Normal file
|
After Width: | Height: | Size: 314 KiB |
BIN
static/wp_old/2008/04/cubicleart.jpg
Normal file
|
After Width: | Height: | Size: 194 KiB |
BIN
static/wp_old/2008/04/header2.jpeg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
static/wp_old/2008/04/k6584e.jpg
Normal file
|
After Width: | Height: | Size: 350 KiB |
BIN
static/wp_old/2008/04/may-150x150.jpg
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
static/wp_old/2008/04/may.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
static/wp_old/2008/04/moderato-150x150.jpg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
static/wp_old/2008/04/moderato.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
static/wp_old/2008/05/6547.jpg
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
static/wp_old/2008/05/6549.jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
static/wp_old/2008/05/6553.jpg
Normal file
|
After Width: | Height: | Size: 209 KiB |
BIN
static/wp_old/2008/05/6554.jpg
Normal file
|
After Width: | Height: | Size: 209 KiB |
BIN
static/wp_old/2008/05/6555.jpg
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
static/wp_old/2008/05/6556.jpg
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
static/wp_old/2008/05/6557.jpg
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
static/wp_old/2008/05/6562.jpg
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
static/wp_old/2008/05/6563.jpg
Normal file
|
After Width: | Height: | Size: 240 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1325-685x454.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1325.jpg
Normal file
|
After Width: | Height: | Size: 735 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1330-685x348.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1330.jpg
Normal file
|
After Width: | Height: | Size: 690 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1338-685x454.jpg
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1338.jpg
Normal file
|
After Width: | Height: | Size: 792 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1339-685x454.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
static/wp_old/2010/11/20101113-DSC_1339.jpg
Normal file
|
After Width: | Height: | Size: 779 KiB |
BIN
static/wp_old/2010/12/20101206-cyanotype0003-530x685.jpg
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
static/wp_old/2010/12/20101206-cyanotype0003.jpg
Normal file
|
After Width: | Height: | Size: 690 KiB |
BIN
static/wp_old/2010/12/20101208-DSC_1517-685x454.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
static/wp_old/2010/12/20101208-DSC_1517.jpg
Normal file
|
After Width: | Height: | Size: 941 KiB |
BIN
static/wp_old/2010/12/20101208-DSC_1520-685x454.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
static/wp_old/2010/12/20101208-DSC_1520.jpg
Normal file
|
After Width: | Height: | Size: 999 KiB |
BIN
static/wp_old/2010/12/20101208-DSC_1533-685x454.jpg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
static/wp_old/2010/12/20101208-DSC_1533.jpg
Normal file
|
After Width: | Height: | Size: 918 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1535-685x454.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1535.jpg
Normal file
|
After Width: | Height: | Size: 574 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1539-685x454.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1539.jpg
Normal file
|
After Width: | Height: | Size: 751 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1546-685x454.jpg
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1546.jpg
Normal file
|
After Width: | Height: | Size: 683 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1550-685x454.jpg
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
static/wp_old/2010/12/20101209-DSC_1550.jpg
Normal file
|
After Width: | Height: | Size: 690 KiB |
BIN
static/wp_old/2010/12/20101212-CIMG0269-685x513.jpg
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
static/wp_old/2010/12/20101212-CIMG0269.jpg
Normal file
|
After Width: | Height: | Size: 703 KiB |
BIN
static/wp_old/2010/12/20101212-CIMG0270-685x513.jpg
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
static/wp_old/2010/12/20101212-CIMG0270.jpg
Normal file
|
After Width: | Height: | Size: 848 KiB |
BIN
static/wp_old/2010/12/cyanotype0001-685x523.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
static/wp_old/2010/12/cyanotype0001.jpg
Normal file
|
After Width: | Height: | Size: 828 KiB |
BIN
static/wp_old/2010/12/cyanotype0002-685x533.jpg
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
static/wp_old/2010/12/cyanotype0002.jpg
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
static/wp_old/2011/06/20110606-20-001-685x454.jpg
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
static/wp_old/2011/06/20110606-20-001.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
static/wp_old/2011/06/20110606-20-002-685x454.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
static/wp_old/2011/06/20110606-20-002.jpg
Normal file
|
After Width: | Height: | Size: 727 KiB |
BIN
static/wp_old/2011/06/20110606-20-003-685x454.jpg
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
static/wp_old/2011/06/20110606-20-003.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
static/wp_old/2011/06/20110606-20-004-685x454.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
static/wp_old/2011/06/20110606-20-004.jpg
Normal file
|
After Width: | Height: | Size: 818 KiB |
BIN
static/wp_old/2011/06/20110606-20-005-454x685.jpg
Normal file
|
After Width: | Height: | Size: 105 KiB |
BIN
static/wp_old/2011/06/20110606-20-005.jpg
Normal file
|
After Width: | Height: | Size: 917 KiB |
BIN
static/wp_old/2011/06/20110606-20-006-685x454.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
static/wp_old/2011/06/20110606-20-006.jpg
Normal file
|
After Width: | Height: | Size: 646 KiB |
BIN
static/wp_old/2011/06/20110606-20-007-685x454.jpg
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
static/wp_old/2011/06/20110606-20-007.jpg
Normal file
|
After Width: | Height: | Size: 902 KiB |
BIN
static/wp_old/2011/06/20110606-20-008-685x454.jpg
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
static/wp_old/2011/06/20110606-20-008.jpg
Normal file
|
After Width: | Height: | Size: 977 KiB |