aerobless / jekyll-photo-gallery Goto Github PK
View Code? Open in Web Editor NEWJekyll plugin to generate nice photo galleries easily.
Jekyll plugin to generate nice photo galleries easily.
Hi,
when I use jekyll serve, I have next error:
/Users/gebruiker/Code/rapax> js
Configuration file: /Users/gebruiker/Code/rapax/_config.yml
Source: /Users/gebruiker/Code/rapax
Destination: /Users/gebruiker/Code/rapax/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
Liquid Exception: undefined method []' for nil:NilClass in photography/index.html ------------------------------------------------ Jekyll 4.2.0 Please append
--traceto the
servecommand for any additional information or backtrace. ------------------------------------------------ Traceback (most recent call last): 60: from /usr/local/opt/ruby/bin/bundle:23:in
load' 58: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/exe/bundle:37:in
<top (required)>'with_friendly_errors' 56: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/exe/bundle:49:in
block in <top (required)>'start' 54: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor/base.rb:485:in
start'dispatch' 52: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor.rb:392:in
dispatch'invoke_command' 50: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
run'exec' 48: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/lib/bundler/cli/exec.rb:28:in
run'kernel_load' 46: from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.2/lib/bundler/cli/exec.rb:63:in
load'<top (required)>' 44: from /usr/local/lib/ruby/gems/2.7.0/bin/jekyll:23:in
load'<top (required)>' 42: from /usr/local/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in
program'go' 40: from /usr/local/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in
execute'each' 38: from /usr/local/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in
block in execute'block (2 levels) in init_with_program' 36: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in
process_with_graceful_fail'each' 34: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in
block in process_with_graceful_fail'process' 32: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:65:in
build'process_site' 30: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:80:in
process'render' 28: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:538:in
render_pages'each' 26: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:539:in
block in render_pages'render_regenerated' 24: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:63:in
run'render_document' 22: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:131:in
render_liquid'render!' 20: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/liquid_renderer/file.rb:70:in
measure_time'block in render!' 18: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/liquid_renderer/file.rb:63:in
measure_bytes'block (2 levels) in render!' 16: from /usr/local/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/liquid_renderer/file.rb:59:in
measure_counts'block (3 levels) in render!' 14: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:220:in
render!'render' 12: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/template.rb:242:in
with_profiling'block in render' 10: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:82:in
render'render_node_to_output' 8: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/for.rb:79:in
render'render_segment' 6: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/context.rb:123:in
stack'block in render_segment' 4: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/tags/for.rb:158:in
each'block (2 levels) in render_segment' 2: from /usr/local/lib/ruby/gems/2.7.0/gems/liquid-4.0.3/lib/liquid/block_body.rb:82:in
render'render_node_to_output' /Users/gebruiker/Code/rapax/_plugins/jekyll-exiftag-mod.rb:17:in
render': undefined method `[]' for nil:NilClass (NoMethodError)I cloned the repository and tried to run /sample-installation/
, it gave me this error:
14:13 $ jekyll serve
Configuration file: /Users/dsbatista/jekyll-photo-gallery/sample-installation/_config.yml
/Users/dsbatista/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': /Users/dsbatista/jekyll-photo-gallery/sample-installation/_plugins/jekyll-exiftag-mod.rb:17: syntax error, unexpected tIDENTIFIER, expecting end-of-input (SyntaxError)
#abort context.registers[:site].config['source'].inspect
^
from /Users/dsbatista/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/external.rb:56:in `block in require_with_graceful_fail'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/external.rb:53:in `each'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/external.rb:53:in `require_with_graceful_fail'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/plugin_manager.rb:85:in `block in require_plugin_files'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/plugin_manager.rb:83:in `each'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/plugin_manager.rb:83:in `require_plugin_files'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/site.rb:115:in `setup'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/site.rb:34:in `initialize'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/commands/build.rb:28:in `new'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/commands/build.rb:28:in `process'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/commands/serve.rb:40:in `block (3 levels) in init_with_program'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/commands/serve.rb:40:in `each'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/lib/jekyll/commands/serve.rb:40:in `block (2 levels) in init_with_program'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `call'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/gems/jekyll-3.5.2/exe/jekyll:13:in `<top (required)>'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/bin/jekyll:23:in `load'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/bin/jekyll:23:in `<main>'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
from /Users/dsbatista/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Configuration file: /home/zerocase/jekyll-photo-gallery/sample-installation/_config.yml
Source: /home/zerocase/jekyll-photo-gallery/sample-installation
Destination: /home/zerocase/jekyll-photo-gallery/sample-installation/_site
Incremental build: disabled. Enable with --incremental
Generating...
Traceback (most recent call last):
30: from /home/zerocase/.gem/ruby/2.7.0/bin/jekyll:23:in `<main>'
29: from /home/zerocase/.gem/ruby/2.7.0/bin/jekyll:23:in `load'
28: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
27: from /home/zerocase/.gem/ruby/2.7.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
26: from /home/zerocase/.gem/ruby/2.7.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
25: from /home/zerocase/.gem/ruby/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
24: from /home/zerocase/.gem/ruby/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
23: from /home/zerocase/.gem/ruby/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
22: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
21: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
20: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:91:in `each'
19: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
18: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/commands/build.rb:36:in `process'
17: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/commands/build.rb:65:in `build'
16: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:28:in `process_site'
15: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:81:in `process'
14: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:217:in `cleanup'
13: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/cleaner.rb:15:in `cleanup!'
12: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/cleaner.rb:25:in `obsolete_files'
11: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/cleaner.rb:59:in `new_files'
10: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/cleaner.rb:59:in `tap'
9: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/cleaner.rb:60:in `block in new_files'
8: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:348:in `each_site_file'
7: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:348:in `each'
6: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:349:in `block in each_site_file'
5: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:349:in `each'
4: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/site.rb:350:in `block (2 levels) in each_site_file'
3: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/cleaner.rb:60:in `block (2 levels) in new_files'
2: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/static_file.rb:59:in `destination'
1: from /home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/static_file.rb:166:in `url'
/home/zerocase/.gem/ruby/2.7.0/gems/jekyll-4.1.1/lib/jekyll/static_file.rb:153:in `cleaned_relative_path': undefined method `length' for nil:NilClass (NoMethodError)
Hey,
Trying to configure your gallery on my Jekyll site and ran into this pickle:
"Liquid Exception: Invalid Date: '"\n ERROR, EXIF-Tag RB\n "' is not a valid datetime. in photography/Descent-into-the-Grand-Canyon-III/index.html
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid Date: '"\n ERROR, EXIF-Tag RB\n "' is not a valid datetime."
Ping project collaborator @oncletom
I have two galleries w/ different unique names, but it seems I can only include one of them in a markdown file. How would I make it work so that I could have more than one album in a given post?
(If you have ideas about how to do this I'm happy to take a crack at it).
I'm seeing an error in my text editor (VS Code):
https://www.dropbox.com/s/pxhdzugfzv28gva/Screenshot%202018-04-11%2019.20.57.png?dl=0
And jekyll is reporting the same:
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'src/css/main.scss':
File to import not found or unreadable: base. on line 47
Any ideas?
I get this error:
bundle exec jekyll serve
Configuration file: /Users/matejsimunic/ArtNomadProject/barber-jekyll/_config.yml
Dependency Error: Yikes! It looks like you don't have /Users/matejsimunic/ArtNomadProject/barber-jekyll/_plugins/jekyll-generate-thumbnails.rb or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-minimagick' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.6.3 | Error: /Users/matejsimunic/ArtNomadProject/barber-jekyll/_plugins/jekyll-generate-thumbnails.rb
although I have correct file.
I tried to import this gallery into my template
Hard to judge the value of this template when the demo site is down:
http://w1nter.com/jekyll-photo-gallery/photography/
Hello,
I'm trying to embed a photo album into a post, and getting the following error:
Error: Liquid syntax error (line 10): Unknown tag 'includeGallery'
Error: Run jekyll build --trace for more information.
Regenerating: 1 file(s) changed at 2018-04-11 12:44:53 Liquid Exception: Liquid syntax error (line 10): Unknown tag 'includeGallery' in /Users/molecule/Projects/molecule.github.io/_trips/northern-lights-in-northern-sweden.md
I'm very new to jekyll so apologies if I've skipped an obvious step. I pasted all files from "plugin" into the relevant folders in my site installation (which is hosted on github). Then I created a test file:
{% includeGallery Sweden2018 %}`
My photos.yml looks like this:
photos:
- title: The welcome hut at Abiskojaure - a welcome sight indeed!
img: /src/img/sweden/abiskojaure-sunny-centered.jpg
country: Sweden
album: Sweden2018
Questions:
Exif orientation is not kept. The photo.html layout does not use it and some images are rotated. This is apparently a common problem for browsers.
I cloned the repository and built /sample-installation/
, it immediately gave me this error:
[Liquid Exception: Invalid Date: '"\n ERROR, EXIF-Tag RB\n "' is not a valid datetime. in photography/Descent-into-the-Grand-Canyon-III/index.html
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid Date: '"\n ERROR, EXIF-Tag RB\n "' is not a valid datetime.
I checked jekyll-exiftag-mod.rb
and this is the if-statement that is causing the issue:
if File.exist?(img)
file_name = img
else
# then start testing with the sources from _config.yml
begin
source = sources.shift
file_name = File.join(context.registers[:site].config['source'], source, img)
end until File.exist?(file_name) or sources.count == 0
end
# try it and return empty string on failure
begin
exif = EXIFR::JPEG::new(file_name)
return tag.split('.').inject(exif){|o,m| o.send(m)}
rescue
"ERROR, EXIF-Tag RB"
end
Any help would be greatly appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.