Steve for Jekyll

New in 1.1: Comments!

Starting with 1.1, Steve supports Staticman-powered comments, and provides initial settings from our own staticman.yml config file. You can create your own settings at any time, but keep in mind that Steve looks for the following fields when submitting comments:

  • name
  • email
  • website
  • message

Follow these instructions to set up your Staticman instance.

You can also customize your comments’ section and submit form adding the site.comments object in your _config.yml:

comments:
  title: Comments
  form_title: New Comment
  date_format: "%b %e, %Y @ %l:%M %P"
  staticman_endpoint: # Get yours on <https://staticman.net>
  notice: |+ # Accepts Markdown
    Please be nice in the comments.

    Comments are moderated, so it can take a while for your's to show up.

    Also, you can use [Markdown](https://daringfireball.net/projects/markdown).
  fields:
    name:
      label: Name
      placeholder: "John Appleseed"
    email:
      label: Email address
      placeholder: "your@email.net"
    website:
      label: Website
      placeholder: "https://john.blog/"
    message:
      label: Message
      placeholder: Your comment message
    submit: Submit Comment

Hello, world!

Wellcome to Jekyll! You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.

To add new posts, simply add a file in the _posts directory that follows the convention YYYY-MM-DD-name-of-post.ext and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.

Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo. If you have questions, you can ask them on Jekyll Talk.

Setting up your theme

Steve is made to be used with zero-configuration needed. Even so, you can customize it further with theme settings, style variables, content includes and plugin-specific configurations. We will guide you through each one of those.

Theme settings

Steve’s settings are defined in your site’s _config.yml:

steve:
  intensedebate_account: # get one at <https://intensedebate.com/install>
  archives: # Prefixes used with archive titles
    date: Posts from
    tag: More about…
    category: Posts filed in
  date_formats: # Uses <http://strftime.net>
    post: "%b %e, %Y" # The date format used in the post layout.
    archives: # The date formats for the archive layout.
      day: "%b %e, %Y"
      month: "%b, %Y"
      year: "%Y"
  page_404: |+
    The page you're looking for could not be found.

    Maybe the search can help.
  pagination: # Strings used in the blog- and post-pagination.
    next_page: "&laquo; Next"
    prev_page: "Previous &raquo;"
    prev_post: "Previous:"
    next_post: "Next:"
  post: # Strings used in the post layout.
    byline: "By"
    tags: More about…
  search: # Strings used in the search form.
    label: Search this blog
    placeholder: What you're looking for?
    submit: Go!

The above are the default values that Steve will use. Feel free to change the ones you want. This is useful if you want to localize the theme strings or change the date formats used by the theme.

Style variables

You can change Steve’s appearance with a different color scheme or typography setting custom variables. Follow these instructions:

  1. Create a screen.scss file in assets/css.
  2. Add the following content:
     ---
     ---
    
     @import "steve-for-jekyll";
    
  3. Before the @import declaration, you can set the following custom SCSS variables:
/*
  Color Scheme
*/

$color__background-content: #fff; // posts, pages and sidebar background color.
$color__background-body: #e4f0f6; // body background color:
$color__text: #000112; // body text color

$color__link: #4e9dd8; // color for links and accents
$color__link-hover: #2361a7; // alternate color for active or focused links and accents

$color__details: #939496; // color for details such as borders and shadows
$color__details-lighter: #f0f1f4; // lighter alternative for details
$color__details-darker: #6d6e70; // darker alternative for details

/*
  Typography
*/

$font__body: sans-serif; // used for the main, body typography
$font__headings: sans-serif; // used for headings and feature elements
$font__code: monospace; // used for pre-formatted text and code.


/*
  Layout
*/
$layout__container-width: 1180px; // the width of the main content (content + sidebar)
$layout__gutter: 2rem ; // the spacing unit between elements.

You can change the values to any variable you want. Steve will replace the default values set by the theme with the ones you choose. Be sure that the variable definitions are above your @import "steve-for-jekyll" declaration.

Content includes

Steve supports two editable areas and three different menus.

Editable areas

You can add any content you want in your site’s sidebar or footer.

  • Create a custom-widgets.html file in _includes/blog/ to add custom content to your site’s sidebar.
  • Create a custom-text.html file in _includes/footer to add custom content to your site’s footer.

Steve has three menu positions controlled using Jekyll data files:

  • _data/menu.yml — The main menu, above the website content.
  • _data/social.yml — The social menu, in the website sidebar.
  • _data/links.yml — And a third menu at the bottom of your website’s footer.

Create the respective data file for the menu you want to use. Menus are a YAML List with the following structure:

- title: "About this site" # The item title
  url: "/about/" # The item URL or path
  external: true # Optional, if the link points to an external resource.
  color: "#336699" # Only on `_data/menu.yml`, the background color of this menu item.
  icon: "<svg ...>" # Only on `_data/social.yml`, the SVG icon markup for this item -- get one in <https://simpleicons.org>

Blogrolls

Blogrolls are linked lists shown in your site’s sidebar.Like menus, you can set up as any blogrolls as you want using the _data/blogroll.yml data file.

- title: Blogroll # The blogroll title shown in the sidebar
  links: # The list of links in this blogroll
  - title: Link 1
    url: "https://example.com"
  - title: Link 2
    url: "https://example.net"
  - title: Link 3
    url: "https://example.org"
- title: Blogroll 2
  links:
    - title: Link 1
      url: "https://example.com"
    - title: Link 2
      url: "https://example.net"
    - title: Link 3
      url: "https://example.org"

Plugin-specific settings

Steve uses the following Jekyll plugins to create sitemaps, RSS feeds, archives and much more.

While Steve sets initial configurations for these plugins, you may want to change them in your _config.yml. Please refer to these plugins documentations for further reading about how to change their config options.