Skip to content
/ eevee Public

A Material Design theme for the Pelican static site generator.

License

Notifications You must be signed in to change notification settings

kura/eevee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eevee - A Material Design theme for Pelican

Eevee the Pokémon

Introduction

Eevee is a theme for Pelican, based on Google's Material Design concept.

It is named after the Pokémon Eevee because, like Eeevee it can evolve in to many 'elements.' By default the colour scheme is teal for the primary and pink for the accent, both of these colours are configurable.

Features

  • Built around Google's Material Design
  • Configurable colour scheme
  • DNS prefetching
  • Disqus
  • Share buttons for Twitter, Facebook and Google+
  • Twitter and Open Graph meta tags
  • CSS minifying via webassets and cssmin
  • No JavaScript but can include Material Design Lite's javascript
  • Google Analytics
  • Piwik
  • Easy menu and footer customisation
  • Custom 404 page
  • Includes Material Icons, Font Awesome and Roboto font

Typography

Google's Roboto font is used for typography, Material Icons and Font Awesome are included too.

Screenshots

Homepage

Homepage

Footer

Footer

Pagination

Pagination

Article header

Article header

Disqus

Disqus

Pygments

Pygments

Requirements

pip install pelican webassets cssmin

Installation

You can find Eevee on GitHub and you can find installation instructions for themes in the pelican documentation.

Configuring the primary and accent colours

The primary and accent colours are configured using the THEME_PRIMARY and THEME_ACCENT options respectively.

You can find available primary and accent colours on Material Design Lite. This website also shows you accents that won't work well with the primary colour you choose.

THEME_PRIMARY = 'blue'
THEME_ACCENT = 'amber'

The default colour scheme is deep_purple and green.

THEME_PRIMARY = 'deep_purple'
THEME_ACCENT = 'green'

Header and footer options

Header

To configure links in the header, use the MENUITEMS option.

MENUITEMS = (('Contact', '/contact/'), ('Software', '/software/'),
             ('Donate', '/donate/'),
             ('.onion', 'http://omgkuraio276g5wo.onion/'))

Using DISPLAY_PAGES_ON_MENU will automatically add pages to the menu.

DISPLAY_PAGES_ON_MENU = True

Footer

You can display links in the footer, by default this option is enabled but can be turned off using the MEGA_FOOTER option. See the Screenshots section for an example of the mega footer.

MEGA_FOOTER = True  # default
MEGA_FOOTER = False  # disable the footer

Up to four columns can be displayed in the footer.

The first column displays the links from MENUITEMS.

MENUITEMS = (('Contact', '/contact/'), ('Software', '/software/'),
             ('Donate', '/donate/'),
             ('.onion', 'http://omgkuraio276g5wo.onion/'))

Using DISPLAY_PAGES_ON_MENU will automatically add pages to the menu.

DISPLAY_PAGES_ON_MENU = True

The second column displays categories, this is enabled using DISPLAY_CATEGORIES_ON_MENU.

DISPLAY_CATEGORIES_ON_MENU = True

The third column displays social links from SOCIAL.

SOCIAL = (('Github', 'https://github.com/kura'),
          ('Twitter', 'https://twitter.com/kuramanga'))

And finally, the fourth column displays links from LINKS.

LINKS = (('blackhole.io', 'https://blackhole.io'), )

The footer will scale based on options you configure, so if you set MENUITEMS and LINKS but not SOCIAL, there will be no gap.

Adding table of contents to articles and pages

A table of contents section is added to an article or page via if it exists as a variable called toc in the article or page object.

The extract_toc adds a toc option for RST content.

The extract_toc plugin adds an ugly header element by default, I have a modified version on GitHub that returns nicer HTML.

Using Disqus for comments

DISQUS_SITENAME = 'somethinghere'

Setting this option will enable Disqus for articles.

Sharing options

USE_OPEN_GRAPH = True

If set, Open Graph meta tags will be added.

USE_TWITTER_CARDS = True

If set, Twitter meta tags will be added.

TWITTER_USERNAME = 'kuramanga'

Used in conjunction with USE_TWITTER_CARDS, adds the "via" meta tag.

Adding images to Open Graph or Twitter

There are two ways of adding an image to Twitter and Open Graph so that when someone shares your content, an image will be added too.

You can add og_image to the file metadata of an article or page, allowing you to configure and image to use per item.

Title
=====
:slug: example
:og_image: /images/example.png

Example content

Or you can set OPEN_GRAPH_IMAGE to an image location.

OPEN_GRAPH_IMAGE = '/images/example.png'

Using Google Analytics or Piwik

Setting the GOOGLE_ANALYTICS option will enable Google Analytics, alternatively you can set PIWIK_SITE_ID, PIWIK_URL and PIWIK_SSL_URL to use Piwik for analytics instead.

GOOGLE_ANALYTICS = 'abc1234'
PIWIK_SITE_ID = '123456'
PIWIK_URL = 'example.com'
# PIWIK_SSL_URL = ''  # Defaults to https://PIWIK_URL

Enabling feeds

You can use the FEED_RSS and FEED_ATOM options to enable RSS and Atom feeds respectively.

FEED_RSS = 'feeds/rss.xml'
FEED_ATOM = 'feeds/atom.xml'

License

Eevee is released under the MIT license.

About

A Material Design theme for the Pelican static site generator.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published