This is Prologue, a simple, single page responsive site template from HTML5 UP, now available as a blog-aware Jekyll theme from Chris Bobbe. It features a clean, minimalistic design and a sticky sidebar with navigation-linked scrolling.
Demo: https://chrisbobbe.github.io/jekyll-theme-prologue/
_config.yml
and it works!_config.yml
._config.yml
and frontmatter_config.yml
as google_analytics
There are two ways to get started (choose one):
bundle install
, you can find the theme files by running open $(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.gh-pages
, and replace theme: jekyll-theme-prologue
with remote_theme: chrisbobbe/jekyll-theme-prologue
in the provided _config.yml
(GitHub Pages now supports open-source themes on GitHub).Next, make sure that url
and base_url
are set for your own website in _config.yml
. For local testing, make them both blank. Add a photo avatar to your project, then set avatar: path/to/your/avatar.jpg
in _config.yml; for example, avatar: assets/images/avatar.jpg
(48x48 pixels works best). Poke around the sample _config.yml
file to see how you can add your social profiles.
Your _config.yml
file must include the following line or your homepage won't 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 to your homepage. Set a cover photo in any of the sections by adding cover-photo: path/to/photo.jpg
and cover-photo-alt: your alt text here
to the section's frontmatter. 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 section variables can be set with frontmatter:
title
(required)order
(required; orders the sequence of sections on the page. Example: 1
)cover-photo
(optional; sets a background image for the section. Example: assets/images/banner.jpg
)cover-photo-alt
(required if using a cover photo. Describes the photo for screen readers and SEO; e.g. "Dome of Light art installation, Kaohsiung, Taiwan")icon
(optional; see Font Awesome for icon codes. Example: fa-github
)icon-style
(optional; "solid" is default, "regular" for outline style icons, or "brands" for logos)auto-header
(optional; "use-title" is default, "none" for no header, or custom header text)hide
(optional; if true
, the section won't appear)Jekyll has great resources to get you started writing blog posts. Check out this Jekyll Docs page first. When you've written a post or two, copy the following into a new file in your project directory called blog.html
, and you'll see a link to your blog from the homepage:
---
layout: blog
title: My Blog
---
-- and that's it!
To add a page, just make a new .html or .md file in your project directory. There's an example called reading-list
provided with the GitHub repository. Add this frontmatter:
---
title: My New Page
layout: page
---
You can also set these page variables in the frontmatter, if you want:
subtitle
order
(orders links in the nav menu, e.g. 1
)icon
(optional; see Font Awesome for icon codes. Example: fa-github
)icon-style
(optional; "solid" is default, "regular" for outline style icons, or "brands" for logos)hide
(optional; if true
, a link won't appear in the nav menu. All this does is remove the nav link; your page will still be served to anyone who has the URL.)This same set of frontmatter variables (including title
) can also be set in index.md
and blog.html
. You may want to give them titles, or hide the homepage link with hide: true
if the homepage is the only page.
For advanced SEO, this theme also lets you add permalink
(see Jekyll Docs), robots
(string, e.g. "noindex, nofollow"), and canonical
(boolean; true is default) to any page or post.
Please feel free to submit issues and feature requests!
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
aj@lkn.io | @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)
github上面有很多基于jekyll的主题 https://github.com/theme4jekyll 使用起来也非常方便。直接clone到本地 这些主题,包括了很多模板,在新建博客的时候可以在开头需要写一些标签,如果为了方便的话,提前写好一个程序来完成将会变得非常方便。 比如我写了一个。这个就在主题文件夹下面(newPost.rb) 1 time = Time.new 2 timest
1.在 Github 上建一个名为 xxx.github.io 的库; 2.把看中了的 Jekyll 模板 clone 到本地; 3.把这个模板 push 到自己的库; 下面为了从头展示如何用 Git + Github + Jekyll 搭建博客。 一、在 Github 创建名为 username.github.io 的库 按照 Github Pages 上的说明,首先要创建一个新的库,把它命名
Scriptor Scriptor is a simple, minimal, clean & responsive Jekyll theme for writers. Live Demo | Download Features Responsive design Archive organized by tags Disqus Comments Accent color option
Hydrogen 轻盈、干净 跟随她的脚步,开始你的博客之旅 厌倦了无止境的加载以及繁杂的页面内容?那您很幸运,因为您发现了Hydrogen 我们避免繁杂 使用轻量化的模块来渲染在您屏幕上展示出来的一切 当您使用过后就知道,她带给你的不仅仅只有简洁极速的阅读体验... 语言:简体中文 | English 点点 Star 来一个好吗!秋梨膏!! #快速开始 #准备 打开主题根目录下的_config.
library-jekyll-theme Easily create a digital bookshelf of your favorite books. Demo Author Website Twitter Github License MIT
Jekyll Docs Theme A Jekyll theme inspired by Bootstrap's official documentation theme from a few years back. This theme started off by stealing all of Bootstrap Docs' CSS and being used in mistic100's
butane-jekyll-theme Getting Started git clone https://github.com/alexcarpenter/butane-jekyll-theme.git cd butane-jekyll-theme rm -rf CHANGELOG.md jekyll serve
Hamilton A minimal and beautiful Jekyll theme best for writing and note-taking. The original purpose of this theme is to be a replacement of the default Jekyll theme -- Minima. Hamilton is an enhancem