A Jekyll version of the responsive, single-page "Prologue" theme by HTML5 UP. Perfect for a streamlined portfolio.
Demo: https://chrisbobbe.github.io/jekyll-theme-prologue/
There are two ways to get started:
- Install the jekyll-theme-prologue gem. Instructions are in the Jekyll docs. After running
bundle install
, you can find the theme files by runningopen $(bundle show jekyll-theme-prologue)
. A sample working_config.yml
file ships with the gem; if you want to activate it, move it to your project's root directory. It will do nothing until you move it there, replacing the default_config.yml
file. - Fork the GitHub repository. If you want to use GitHub Pages, create a branch named
gh-pages
, and replacetheme: jekyll-theme-prologue
withremote_theme: chrisbobbe/jekyll-theme-prologue
in the provided_config.yml
(GitHub Pages now supports open-source themes on GitHub).
Make sure that url
and base_url
are set correctly in _config.yml
. For local testing, make them both blank.
To set the banner image, overwrite assets/images/banner.jpg
. If using the gem, you can add this path to your project directory by making new folders, and Jekyll will automatically look there before falling back on the default theme files. Same for assets/images/avatar.jpg
.
The following instructions are unique to this single-page theme. Jekyll does not support multiple layout-formatted content sections per page, and the theme provides a workaround.
You don't need to use Jekyll's hardcoded support for _pages
or _posts
, and layouts aren't provided for them. If you want to customize the templates, go to _layouts/home.html
and _includes/section.html
provided with the theme.
Your _config.yml
file must include the following line or it will not work: collections: [sections]
. This tells Jekyll to look in the _sections folder (which you will create) for your content and render it all on one page.
Create a _sections
folder in your project's root directory and start adding content. Sample content is provided in the GitHub repository.
All new sections should be added as html or Markdown documents in the _sections
folder. The following variables can be set with frontmatter:
title
(required)order
(required; orders the sequence of sections on the page. Section 1 displays with banner.jpg)icon
(optional; see Font Awesome for icon codes)auto-header
(optional; "use-title" is default, "none" for no header, or custom header text)
There shouldn't be a need to set permalink
in frontmatter because all content appears on the same page.
- Formspree.io contact form integration - just add your email to the
_config.yml
and it works! - Add your social profiles easily in
_config.yml
. Only the social profiles buttons you enter inconfig.yml
will show up on the site footer. - Custom 404 page (called 404.html).
- Comprehensive search engine optimization (SEO) tags based on info you provide in _config.yml
- Google Analytics built-in; just put your Tracking ID in _config.yml
Thanks to @andrewbanchich for his many Jekyll adaptations of HTML5 UP's elegant themes, which helped and inspired me, and of course many thanks to HTML5 UP.
Original README from HTML5 UP:
Prologue by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
This is Prologue, a simple, single page responsive site template. It features a
clean, minimalistic design and a sticky sidebar with navigation-linked scrolling.
Demo content images* are courtesy of the ridiculously talented Felicia Simion. Check out
more of her amazing work over at deviantART:
http://ineedchemicalx.deviantart.com/
(* = Not included! Only meant for use with my own on-site demo, so please do NOT download
and/or use any of Felicia's work without her explicit permission!)
Demo banner images* courtesy of Unsplash, a radtastic collection of CC0 (public domain)
images you can use for pretty much whatever.
(* = Not included)
AJ
[email protected] | @ajlkn
PS: Not sure how to get that contact form working? Give formspree.io a try (it's awesome).
Credits:
Demo Images:
Felicia Simion (ineedchemicalx.deviantart.com)
Unsplash (unsplash.com)
Icons:
Font Awesome (fortawesome.github.com/Font-Awesome)
Other
jQuery (jquery.com)
html5shiv.js (@afarkas @jdalton @jon_neal @rem)
CSS3 Pie (css3pie.com)
background-size polyfill (github.com/louisremi)
Respond.js (j.mp/respondjs)
jquery.scrolly (@ajlkn)
jquery.scrollzer (@ajlkn)
Skel (skel.io)