Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Latest commit

 

History

History
35 lines (24 loc) · 1.07 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.07 KB

Pelican-Sundown

A flexible pelican based on the github pages sundown theme created originally by orderedlist.

Configuration

This theme does have a few differences from the original sundown theme. For example, slightly larger font for content, gravatar image, and social icons.

Additions such as gravatar are not required, but available. The following settings should be added/adjusted in the pelicanconf.py:

Gravatar

You can include a gravatar image in the top left of the template by adding the following lines to your config:

import urllib, hashlib

# Conf for pulling Gravatar Image
EMAIL = u'youremail@email.com'
DEFAULT_GRV_URL = u'http://www.example.com/default.jpg'
GRV_SIZE = 120

# construct gravatar URL
GRV_URL = "http://www.gravatar.com/avatar/" + hashlib.md5(EMAIL.lower()).hexdigest() + "?"
GRV_URL += urllib.urlencode({'d':DEFAULT_GRV_URL, 's':str(GRV_SIZE)})

Who is using pelican-sundown