Skip to content

Instantly share code, notes, and snippets.

@daviddarnes
Last active June 15, 2016 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddarnes/a1f331dfe491400af9474493c1ec42d4 to your computer and use it in GitHub Desktop.
Save daviddarnes/a1f331dfe491400af9474493c1ec42d4 to your computer and use it in GitHub Desktop.
Jekyll theme file structure

root

  • garth-jekyll-theme.gemspec
  • _layouts
    • default.html
    • page.html
    • front.html
    • post.html
  • _includes
    • header.html
    • footer.html
    • posts.html
    • pagination.html
    • scripts.js
    • icons.svg
  • _sass
    • theme.scss (contains imports for all other scss files)
      • type.scss
      • variables.scss
      • blocks.scss
  • LICENSE
  • README.md

User file references

  • The theme in the config with theme: theme-name
  • The theme.scss in css/styles.scss with @import
  • The scripts.js in js/scripts.js with {% include scripts.js %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment