mayamcdougall / stellar-pico

HTML5 UP! - Stellar Theme - Ported to PicoCMS
Other
2 stars 2 forks source link

Stellar Theme for Pico

Port of HTML5 UP's Stellar theme for PicoCMS.

Say hello to Stellar, a slick little one-pager with a super vibrant color palette

Getting Started

To use this theme:

  1. Download the Latest Release on GitHub.
  2. Extract themes/stellar to your Pico themes folder.
  3. Optionally extract all files in content-sample/ to your content folder.
  4. Set your theme to stellar in Pico's config.yml.
  5. Optionally, set your site to order pages by index in Pico's config.yml. See below.
  6. Configure your website using the YAML options in index.md.
  7. Add sections to your page with new .md files.

Details

This theme constructs a one-page site out of individual sections, each in their own .md file.

There are four main section layouts: Generic, Spotlight, Features, and Statistics.

Your index.md acts as both theme configuration and the contents of your page footer.

Each type of section has a collection of features exposed through the page's YML header.

We'll go into them in more detail below.

Page Order

Pico has several choices when it comes to ordering your pages (alphabetically, by date, or using a page meta property). Since you probably want your sections to display in a static order, the easiest way to do this is to add an index property to every page and sort by that (eg index: 0, index: 1 and so on).

In Pico's config.yml, change pages_order_by to meta, and pages_order_by_meta to index. You'll also want to set your pages_order to ascending (asc) if it's not already.

pages_order_by_meta: index
pages_order_by: meta
pages_order: asc

Index

Theme Options

The first half of the options in index.md consist of general options for the entire site. These options all exist as children of the stellar key, and should be indented as such.

fonts:
- 'https://fonts.googleapis.com/css?family=Roboto'
- 'https://fonts.googleapis.com/css?family=Ubuntu'

Footer Options

The content of your index.md will be used for the body text on the left side of the footer.

Contact Options

The right side of the footer supports adding contact information (or anything else) in a Definition List, as well as button links to social networks, etc.

items:
  Phone: 000-000-0000
  Email: someone@example.com

Sections

In this theme, each page of your Pico content folder will become a section of the main page. There are four supported "modes" each with a different layout and options.

Generic Mode

When you don't specify a mode, the section will be rendered in generic mode. Generic mode is the most basic layout, and is pretty much just text-on-a-page below a section header. If you're feeling ambitious though, you could always use generic mode to code your own layout by writing some HTML into your markdown.

In most modes, the page content will be displayed immediately under the title and description. In the Statistics layout, content is instead placed at the bottom of the section and formatted into columns. Including content is always optional, but Features and Statistics are the only layouts that can really serve their purpose without it.

The following options are supported by ALL modes, including Generic:

Spotlight Mode

Features Mode

icons:
  Amazing Feature:
    icon: fa-exclamation
    description: This feature is really, really amazing! You'll have to see it for yourself!
    options: style1

Statistics Mode

Statistics mode uses all of the same settings as Features above does. The only difference is that style changes the color of the surrounding box, and not the icon itself.

Actions

Every page section supports having "actions" buttons at the bottom of it. The YAML layout for actions looks like this:

actions:
  Issue Tracker:
    url: http://example.com
    icon: fa-github
    options:
      - brands
      - primary

Issues and Feature Requests

If you have any issues with this port, or would like to request a feature, please create a new Issue on GitHub.


Original Readme

Stellar by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)

Say hello to Stellar, a slick little one-pager with a super vibrant color palette (which I guess you can always tone down if it's a little too vibrant for you), a "sticky" in-page nav bar (powered by my Scrollex plugin), a separate generic page template (just in case you need one), and an assortment of pre-styled elements.

Demo 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

Credits:

Demo Images:
    Unsplash (unsplash.com)

Icons:
    Font Awesome (fontawesome.io)

Other:
    jQuery (jquery.com)
    Scrollex (github.com/ajlkn/jquery.scrollex)
    Responsive Tools (github.com/ajlkn/responsive-tools)