• Stars
    star
    156
  • Rank 238,231 (Top 5 %)
  • Language
    JavaScript
  • Created almost 10 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Theme based in Clean Blog layout to pelican blogs

Pelican Clean Blog Theme

Theme based in Clean Blog layout.

⚠️ This theme requires Pelican 4.0.0 or newer.

Screenshot

Screenshot

Basic configuration

All configurations about this theme.

Header Covers

To define custom header cover, set the property HEADER_COVER in pelicanconf.py:

HEADER_COVER = 'static/my_image.png'

Header Color

To define a simple header background color, set the property HEADER_COLOR in pelicanconf.py:

HEADER_COLOR = 'black'

you can use any valid css color.

Social URLs

Github, Twitter and Facebook URLs set these properties:

SOCIAL = (('twitter', 'https://twitter.com/myprofile'),
          ('github', 'https://github.com/myprofile'),
          ('facebook','https://facebook.com/myprofile'),
          ('flickr','https://www.flickr.com/myprofile/'),
          ('envelope','mailto:[email protected]'))

If you have new links add them to SOCIAL. The Name has to be the name of the corresponding FontAwesome icon. If SHOW_SOCIAL_ON_INDEX_PAGE_HEADER is set to True social icons will be shown under site sub-title on the index page.

External feed URL

You can specify an external feed URL (e.g. FeedBurner) in SOCIAL using the rss or rss-square icons. The icon will be shown in the footer with the rest of your SOCIAL accounts. A <link> tag for the external feed will be placed in <head> instead of the default Pelican feeds.

Code highlights

This theme contains this color schemes:

  • Tomorrow - tomorrow.css;
  • Tomorrow Night - tomorrow_night.css;
  • Monokai - monokai.css;
  • Github - github.css;
  • Github Jekyll (Gray BG Jekyll way) - github_jekyll.css;
  • Darkly (Default) - darkly.css;

To customize, define COLOR_SCHEME_CSS in pelicanconf.py with css filename. Example:

COLOR_SCHEME_CSS = 'monokai.css'

User defined CSS

Define CSS_OVERRIDE in pelicanconf.py to insert a user defined CSS file after theme CSS. Example:

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.

User defined footer

Define FOOTER_INCLUDE in pelicanconf.py to insert a custom footer text instead the default "Powered by Pelican". The value is a template path. You also need to define the EXTRA_TEMPLATES_PATHS setting. If your custom footer template is stored under the content PATH then Pelican will try to render it as regular HTML page and will most likely fail. To prevent Pelican from trying to render your custom footer add it to IGNORE_FILES. Example:

FOOTER_INCLUDE = 'myfooter.html'
IGNORE_FILES = [FOOTER_INCLUDE]
EXTRA_TEMPLATES_PATHS = [os.path.dirname(__file__)]

WARNING: avoid using names which duplicate existing templates from the theme directory, for example footer.html. Due to how Pelican searches the template directories it will first find the files in the theme directory and you will not see the desired results.

Analytics

Accept many analytics:

  • Google Analytics: GOOGLE_ANALYTICS;
  • Gauges: GAUGES
  • Piwik: PIWIK_URL and PIWIK_SITE_ID.

Favicon

To define if using a favicon and format:

FAVICON = 'favicon.ico'

WARNING: Is necessary static_paths configured:

STATIC_PATHS = ['images', 'extra/favicon.ico']
EXTRA_PATH_METADATA = {
    'extra/favicon.ico': {'path': 'favicon.ico'}
}

Other configuration

  • If ADDTHIS_PUBID is defined sharing buttons from AddThis will appear at the bottom of the article;
  • GOOGLE_SITE_VERIFICATION - Google site verification token;
  • Set SHOW_FULL_ARTICLE to True to show full article content on index.html instead of summary;
  • Set SHOW_SITESUBTITLE_IN_HTML to True to make use of the SITESUBTITLE variable inside the <title> HTML tag;
  • Set FACEBOOK_ADMINS to a list of Facebook account IDs which are associated with this blog. For example ['12345']. For more info see https://developers.facebook.com/docs/platforminsights/domains

Articles

  • To customize header cover to articles, insert the metadata header_cover.
  • To customize OpenGraph images, insert the metadata og_image, otherwise header_cover, HEADER_COVER or a default image is used.
  • To customize Twitter card images, insert the metadata twitter_image, otherwise header_cover, HEADER_COVER or a default image is used. Twitter cards are automatically generated if the twitter icon is configured in SOCIAL!

All image paths are relative from the site root directory. You can also use absolute URLs for og_image and twitter_image.

Example:

  • To 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
:og_image: /images/posts/super-title/facebook_cover.png
:twitter_image: /images/posts/super-title/twitter_cover.png
  • To 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
Og_Image: http://example.com/facebook_cover.png
Twitter_Image: http://example.com/twitter_cover.png

This is the content of my super blog post.

Other metada was created to assign resume of article, with headline:

  • To 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
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.

Test

More Repositories

1

buscaimoveis-scraper

Projeto que coleta anúncios de imóveis a venda em grandes plataformas como OLX, Zap Imóveis, etc
Python
36
star
2

searchtasks.vim

Plugin to search the labels often used as TODO, FIXME and XXX.
Vim Script
21
star
3

django-rest-localflavor

Country-specific Django helpers, to use in Django Rest Framework
Python
19
star
4

old-buscaimoveis

Agregador de anúncios de imóveis a venda
Python
15
star
5

playbook-local-machine

Playbook with all tasks to provision my personal machine
Shell
7
star
6

atom-language-django

Package to Atom Editor to improve Django development
CoffeeScript
6
star
7

lizard

Colorscheme based by wombat colorscheme - https://github.com/vim-scripts/Wombat
Vim Script
6
star
8

web2hash

Aggregating tweets with word web2py.
Python
6
star
9

nord-colorls

Nord theme for colorls
5
star
10

dag_dominios_govbr

Projeto criado para importar dados dos dominios gov.br autorizados pelo Min. do Planejamento
Python
4
star
11

django-faleconosco

Aplicativo Django que implementa área Fale Conosco do Projeto.
Python
3
star
12

vim-guide-survivor

Projeto do site Guia de Sobrevivência do editor Vim
JavaScript
3
star
13

tomatex

Pomodoro timer web
Python
3
star
14

discursoaberto-crawler

Crawler criado para raspagem dos discursos dos deputados no site da Câmara Federal
Python
2
star
15

checkstatus-govbr

Projeto criado para acompanhar situação dos domínios .govbr registrados pela área pública
Python
2
star
16

tokyo-night-konsole

Tokyo Night Color theme for Konsole
2
star
17

globophoto

Projeto teste para exibição de imagens cadastradas em slider
Python
1
star
18

flask-cms

Flask project created on the PyBR13 Tutorial
1
star
19

djprojtemplates

Project created to list django project templates
Python
1
star
20

format_tweets

Renders links, hash and usernames in HTML
Python
1
star
21

react-movies-app

Project based on Movies App of Florin Pop
CSS
1
star
22

eventex-bambae

Projeto do Curso de Imersão Python e Django
Python
1
star
23

palestra-vim-flisoldf

Slides da palestra do FlisolDF 2012
1
star