Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshdavenport
Created January 13, 2018 12:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdavenport/cfb2df657f0357fa8d44a0fbc92431be to your computer and use it in GitHub Desktop.
Save joshdavenport/cfb2df657f0357fa8d44a0fbc92431be to your computer and use it in GitHub Desktop.
Basic reusable jekyll gallery utilising variable
@xihajun
Copy link

xihajun commented Feb 11, 2022

May I kindly ask how does it work?

Just put those two file into /_layouts/gallery.html and a readme file?

@joshdavenport
Copy link
Author

Been a very long time since I've used this or even jekyll but that should basically be it yeah @xihajun

Add the layout in _layouts, then use the layout in front matter as shown in the a-gallery.md example (look at the raw markdown, the gist viewing is formatting the md in a way that is useless for jekyll markdown based pages)

@xihajun
Copy link

xihajun commented Feb 12, 2022

thank you 😊 @joshdavenport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment