Browse Source

Worked on implementing photo post pages.

pull/77/head
Jeffery Russell 4 years ago
parent
commit
e151952c8b
22 changed files with 4784 additions and 2 deletions
  1. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02145.jpg
  2. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02154.jpg
  3. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02168.jpg
  4. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02203.jpg
  5. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02207.jpg
  6. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02221.jpg
  7. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02237.jpg
  8. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02282.jpg
  9. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02288.jpg
  10. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02296.jpg
  11. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/DSC02317.jpg
  12. +0
    -0
      blogContent/photos/2019/june/mohawk-river-trail/post.md
  13. +8
    -0
      includes/js/lg/jquery.mousewheel.min.js
  14. +3364
    -0
      includes/js/lg/lightgallery-all.js
  15. +5
    -0
      includes/js/lg/lightgallery-all.min.js
  16. +1361
    -0
      includes/js/lg/lightgallery.js
  17. +4
    -0
      includes/js/lg/lightgallery.min.js
  18. +4
    -0
      includes/js/lg/picturefill.min.js
  19. +0
    -0
      photography/generatePage.js
  20. +3
    -0
      routes/index.js
  21. +6
    -2
      routes/photos/index.js
  22. +29
    -0
      templates/photos/photosEntry.html

blogContent/photos/2019/june/Mohawk River Trail/DSC02145.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02145.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02154.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02154.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02168.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02168.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02203.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02203.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02207.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02207.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02221.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02221.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02237.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02237.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02282.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02282.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02288.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02288.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02296.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02296.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/DSC02317.jpg → blogContent/photos/2019/june/mohawk-river-trail/DSC02317.jpg View File


blogContent/photos/2019/june/Mohawk River Trail/post.md → blogContent/photos/2019/june/mohawk-river-trail/post.md View File


+ 8
- 0
includes/js/lg/jquery.mousewheel.min.js View File

@ -0,0 +1,8 @@
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 3.1.12
*
* Requires: jQuery 1.2.2+
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});

+ 3364
- 0
includes/js/lg/lightgallery-all.js
File diff suppressed because it is too large
View File


+ 5
- 0
includes/js/lg/lightgallery-all.min.js
File diff suppressed because it is too large
View File


+ 1361
- 0
includes/js/lg/lightgallery.js
File diff suppressed because it is too large
View File


+ 4
- 0
includes/js/lg/lightgallery.min.js
File diff suppressed because it is too large
View File


+ 4
- 0
includes/js/lg/picturefill.min.js
File diff suppressed because it is too large
View File


+ 0
- 0
photography/generatePage.js View File


+ 3
- 0
routes/index.js View File

@ -24,6 +24,9 @@ routes.use('/sitemap.txt', includes);
routes.use('/robots.txt', includes);
const photosPages = require('./photos');
routes.use('/photos', photosPages);
/** category pages */
const category = require('./category');
routes.use('/category', category);

+ 6
- 2
routes/photos/index.js View File

@ -1,6 +1,8 @@
const routes = require('express').Router();
const utils = require('../utils/utils');
const pageBuilder = require('../../utils/pageBuilder');
const utils = require('../../utils/utils');
const whiskers = require('whiskers');
@ -9,11 +11,13 @@ const url = require('url');
routes.get('/', (request, result) =>
{
//do something later
console.log("boo");
});
routes.get('*', (request, result) =>
{
console.log("ding");
pageBuilder.buildPageWithTemplate(request, result,
function(){}, "photos/photosEntry.html");
});
module.exports = routes;

+ 29
- 0
templates/photos/photosEntry.html View File

@ -1,7 +1,20 @@
{header}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.6.12/css/lg-transitions.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.6.12/css/lightgallery.min.css" />
<div class="container">
<div id="lightgallery">
<a href="/blogContent/photos/2019/june/mohawk-river-trail/DSC02145.jpg">
<img src="/blogContent/photos/2019/june/mohawk-river-trail/DSC02145.jpg" />
</a>
<a href="/blogContent/photos/2019/june/mohawk-river-trail/DSC02145.jpg">
<img src="/blogContent/photos/2019/june/mohawk-river-trail/DSC02145.jpg" />
</a>
</div>
</div>
<!--
_.-,
@ -11,4 +24,20 @@
` \;
jgs ;_\
-->
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
crossorigin="anonymous">
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#lightgallery").lightGallery();
});
</script>
<script src="https://cdn.jsdelivr.net/picturefill/2.3.1/picturefill.min.js"></script>
<script src="/includes/js/lg/lightgallery-all.min.js"></script>
<script src="/includes/js/lg/jquery.mousewheel.min.js"></script>
{footer}

Loading…
Cancel
Save