2014-12-10 17:25:34 +00:00
|
|
|
# Pelican Clean Blog Theme
|
2014-12-10 16:01:04 +00:00
|
|
|
|
2014-12-11 00:51:28 +00:00
|
|
|
Theme based in [Clean Blog layout](http://ironsummitmedia.github.io/startbootstrap-clean-blog/).
|
2014-12-10 16:11:41 +00:00
|
|
|
|
2014-12-11 01:00:27 +00:00
|
|
|
## Screenshot
|
|
|
|
|
|
|
|
![Screenshot](screenshot.png)
|
2014-12-10 16:11:41 +00:00
|
|
|
|
2014-12-10 17:25:34 +00:00
|
|
|
## Basic configuration
|
|
|
|
|
2014-12-10 18:21:12 +00:00
|
|
|
All configurations about this theme.
|
|
|
|
|
|
|
|
### Header Covers
|
|
|
|
|
2014-12-10 17:25:34 +00:00
|
|
|
To define custom header cover, set the property ``HEADER_COVER`` in ``pelicanconf.py``:
|
|
|
|
|
|
|
|
```python
|
|
|
|
HEADER_COVER = 'static/my_image.png'
|
|
|
|
```
|
|
|
|
|
2014-12-10 18:21:12 +00:00
|
|
|
### Social URLs
|
|
|
|
|
2014-12-10 17:25:34 +00:00
|
|
|
Github, Twitter and Facebook URLs set these properties:
|
|
|
|
|
|
|
|
```python
|
|
|
|
GITHUB_URL = 'http://github.com/myprofile'
|
|
|
|
TWITTER_URL = 'http://twitter.com/myprofile'
|
|
|
|
FACEBOOK_URL = 'http://facebook.com/myprofile'
|
|
|
|
```
|
|
|
|
|
|
|
|
If you have insert new links, customize ``base.html``.
|
|
|
|
|
2014-12-10 18:21:12 +00:00
|
|
|
### Code highlights
|
|
|
|
|
|
|
|
This theme contains this color schemes:
|
|
|
|
|
|
|
|
- Tomorrow - ``tomorrow.css``;
|
|
|
|
- Tomorrow Night - ``tomorrow_night.css``;
|
|
|
|
- Monokai - ``monokai.css``;
|
|
|
|
- Github - ``github.css``;
|
|
|
|
- Darkly (Default) - ``darkly.css``;
|
|
|
|
|
|
|
|
To customize, define ``COLOR_SCHEME_CSS`` in ``pelicanconf.py`` with css filename. Example:
|
|
|
|
|
|
|
|
```python
|
|
|
|
COLOR_SCHEME_CSS = 'monokai.css'
|
|
|
|
```
|
|
|
|
|
2015-11-25 22:34:35 +00:00
|
|
|
### User defined CSS
|
|
|
|
|
|
|
|
Define ``CSS_OVERRIDE`` in ``pelicanconf.py`` to insert a user defined CSS file
|
|
|
|
after theme CSS. Example:
|
|
|
|
|
|
|
|
```python
|
|
|
|
CSS_OVERRIDE = 'myblog.css'
|
|
|
|
```
|
|
|
|
|
|
|
|
### Disable theme JavaScript
|
|
|
|
|
|
|
|
Set ``DISABLE_CUSTOM_THEME_JAVASCRIPT`` to True if you want to disable
|
|
|
|
``js/clean-blog.min.js`` in case it affects forms and input fields.
|
|
|
|
|
2014-12-11 00:51:28 +00:00
|
|
|
### Analytics
|
|
|
|
|
|
|
|
Accept many analytics:
|
|
|
|
|
|
|
|
- Google Analytics: ``GOOGLE_ANALYTICS``;
|
|
|
|
- Gauges: ``GAUGES``
|
|
|
|
- Piwik: ``PIWIK_URL`` and ``PIWIK_SITE_ID``.
|
|
|
|
|
2014-12-10 18:21:12 +00:00
|
|
|
### Articles
|
|
|
|
|
|
|
|
To customize header cover to articles, insert the metadata ``header_cover``:
|
|
|
|
|
|
|
|
- To RST
|
|
|
|
```rst
|
|
|
|
My super title
|
|
|
|
##############
|
|
|
|
|
|
|
|
:date: 2010-10-03 10:20
|
|
|
|
:modified: 2010-10-04 18:40
|
|
|
|
:tags: thats, awesome
|
|
|
|
:category: yeah
|
|
|
|
:slug: my-super-post
|
|
|
|
:authors: Alexis Metaireau, Conan Doyle
|
|
|
|
:summary: Short version for index and feeds
|
|
|
|
:header_cover: /images/posts/super-title/cover.png
|
|
|
|
```
|
|
|
|
|
|
|
|
- To Markdown
|
|
|
|
```markdown
|
|
|
|
Title: My super title
|
|
|
|
Date: 2010-12-03 10:20
|
|
|
|
Modified: 2010-12-05 19:30
|
|
|
|
Category: Python
|
|
|
|
Tags: pelican, publishing
|
|
|
|
Slug: my-super-post
|
|
|
|
Authors: Alexis Metaireau, Conan Doyle
|
|
|
|
Summary: Short version for index and feeds
|
|
|
|
Header_Cover: /images/posts/super-title/cover.png
|
|
|
|
|
|
|
|
This is the content of my super blog post.
|
|
|
|
```
|
|
|
|
|
|
|
|
Other metada was created to assign resume of article, with ``headline``:
|
|
|
|
|
|
|
|
- To RST
|
|
|
|
```rst
|
|
|
|
My super title
|
|
|
|
##############
|
|
|
|
|
|
|
|
:date: 2010-10-03 10:20
|
|
|
|
:modified: 2010-10-04 18:40
|
|
|
|
:tags: thats, awesome
|
|
|
|
:category: yeah
|
|
|
|
:slug: my-super-post
|
|
|
|
:authors: Alexis Metaireau, Conan Doyle
|
|
|
|
:summary: Short version for index and feeds
|
|
|
|
:headline: Resume of article
|
|
|
|
```
|
|
|
|
|
|
|
|
- To Markdown
|
|
|
|
```markdown
|
|
|
|
Title: My super title
|
|
|
|
Date: 2010-12-03 10:20
|
|
|
|
Modified: 2010-12-05 19:30
|
|
|
|
Category: Python
|
|
|
|
Tags: pelican, publishing
|
|
|
|
Slug: my-super-post
|
|
|
|
Authors: Alexis Metaireau, Conan Doyle
|
|
|
|
Summary: Short version for index and feeds
|
|
|
|
Headline: Resume of article
|
|
|
|
|
|
|
|
This is the content of my super blog post.
|
|
|
|
```
|
|
|
|
|