diff --git a/_src/_layouts/page.html b/_src/_layouts/page.html
index 60ba44e6..a8162166 100644
--- a/_src/_layouts/page.html
+++ b/_src/_layouts/page.html
@@ -11,7 +11,7 @@ layout: base
{% if page.image %}
- {% picture {{ page.image }} class="teaser" %}
+ {% include picture.html %}
{% endif %}
{{ content }}
diff --git a/_src/_layouts/photo.html b/_src/_layouts/photo.html
index fc208277..343aa75d 100644
--- a/_src/_layouts/photo.html
+++ b/_src/_layouts/photo.html
@@ -6,11 +6,13 @@ layout: base
+
+
{{ page.title | titlecase }}
+
+
diff --git a/_src/_layouts/post.html b/_src/_layouts/post.html
index c1eba82f..fdd25d7c 100644
--- a/_src/_layouts/post.html
+++ b/_src/_layouts/post.html
@@ -15,7 +15,7 @@ layout: base
{% if page.image %}
{% endif %}
diff --git a/_src/_posts/2008-06-03-niepces-camera-obscura-and-the-history-of-the-first-photograph.md b/_src/_posts/2008-06-03-niepces-camera-obscura-and-the-history-of-the-first-photograph.md
index 034e1e44..6bc1b7e0 100644
--- a/_src/_posts/2008-06-03-niepces-camera-obscura-and-the-history-of-the-first-photograph.md
+++ b/_src/_posts/2008-06-03-niepces-camera-obscura-and-the-history-of-the-first-photograph.md
@@ -24,10 +24,10 @@ redirect_from:
These two desktop icons show the Camera Obscura as it was used by Nicéphore Niépce in an Aperture and iPhoto style and are intended as an homage to him. Nicéphore Niépce made it first possible to preserve an image taken with a camera obscura in 1826 or 1827 by using a special mixture of bitumen on a pewter plate, naming it Heliography. This first preserved photograph "View from the Window at Le Gras" is the one you can see in the iPhoto icon contained in this package. The third icon is the folder icon I have created for this icon package.
-{% picture cameraobscura11_all.png %}
-
Either just download the icons or read the exciting story about the First Photograph.
+{% include picture.html file='cameraobscura11_all.png' %}
+
# The story behind these icons
There's a fascinating story behind these icons which is nothing more than the story of the invention of photography. Grab yourself a cup of coffee or tea and sit back while reading this story. Of course, if you're bored already just grab the download package further down this page.
@@ -47,7 +47,7 @@ In 1822 he created a first non-fading negative contact print by utilizing a bitu
After some more tries and combining other elements in his procedure he was able to produce the famous First Photograph "View from the Window at Le Gras" in 1826 or 1827 by utilizing a bitumen of Judea-coated pewter plate and improved lenses from the Paris optician, Charles Chevalier. He called this procedure Heliography and the bitumen-coated pewter plate needed an exposure of eight or more hours!
-{% picture View-from-the-Window-at-Le-Gras.png %}
+{% include picture.html file='View-from-the-Window-at-Le-Gras.png' %}
View from the Window at Le Gras
By the way, in 2002 another Picture made by Niépce was discovered which dates back to 1825. It was made in a process he called Heliogravure and it was an image of an (engraving) image (showing a man leading a horse). But since the scientific definition of the First Photograph is "the world's first permanent photograph from nature", "View from the Window at Le Gras" remains the First "real" photograph.
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 6e7b0df7..6282660e 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -217,12 +217,6 @@ const js = () =>
.pipe(dest(DIST + '/assets/js/'))
-//
-// SVG sprite
-//
-
-
-
//
// Images
//
@@ -244,11 +238,6 @@ export const svg = () => src(SRC + '/_assets/img/**/*.svg')
.pipe($.svgSprite(SPRITECONFIG))
.pipe(dest(DIST + '/assets/img/'))
-// optimize Jekyll generated images
-export const imagesGenerated = () => src(DIST + '/media/gen/**/*')
- .pipe($.if(isProduction, $.imagemin(imageminPlugins)))
- .pipe(dest(DIST + '/media/gen/'))
-
//
// Copy fonts
@@ -373,7 +362,15 @@ export const buildBanner = (done) => {
// `gulp build` is the development build
// `gulp build --production` is the production build
//
-export const build = series(buildBanner, clean, jekyll, parallel(html, css, js, svg, images, imagesGenerated, fonts, media), rev, revReplace, criticalCss)
+export const build = series(
+ buildBanner,
+ clean,
+ jekyll,
+ parallel(html, css, js, svg, images, fonts, media),
+ rev,
+ revReplace,
+ criticalCss
+)
//
// Build site, run server, and watch for file changes