Skip to content

kaluaim/sardine

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Sardine

A minimal Pelican theme.

Screenshot

Screenshot

Features

  • Responsive.
  • RTL support.
  • Easy to customize (title, subtitle, side menu, ...).

Demo

LTR Demo

RTL Demo (my personal website)

Install

Clone the repository then edit the THEME identifier in pelicanconf.py to point to the downloaded theme location, example: THEME = '/Users/kaluaim/workspace/sardine/theme'

Configurations

Sardine has its own custom identifiers in pelicanconf.py for easy customization:

  • SRDN_SITE_DIRECTION if 'rtl' then will import rtl.css to the site
  • SRDN_SITE_LOGO the name of the site logo inside the static/images folder, for example: 'sardine.png'.
  • SRDN_TAGLINE tagline under the site name.
  • SRDN_SIDE_TITLE_PAGES SRDN_SIDE_TITLE_PAGES SRDN_SIDE_TITLE_PAGES SRDN_SIDE_TITLE_PAGES titles for each section in the side menu.
  • SRDN_SIDE_MSG text area above the footer.
  • SRDN_RSS_TITLE SRDN_RSS_URL feet title and URL in the side menu.
  • SRDN_EMAIL_TITLE SRDN_EMAIL_URL eamil subscription title and URL.
  • SRDN_CATEGORY_TEXT SRDN_TAG_TEXT the way you want the category and the tag to apper at the end of post, for example: 'Category:' and 'Tag:'.
  • SRDN_DISQUS_SITENAME the site name for Disqus.
  • SRDN_COMMENTS_DISABLED_MSG text shown if the comments was disabled in a post. you can disable the commient by adding this metadata :comment: false
  • SRDN_FOOTER_LINES tuple conteaning HTML footer lines, after each line <br/> will be added. example: (('<span>Copyright kaluaim © 2016</span>'),('<span>Powred by <a href="http://blog.getpelican.com/">Pelican</a></span>'),)

In addition the theme uses the defaults pelican's identifiers like LINKS and SOCIAL

Credit

Theme structure was influenced by pelican-svbhack and style by Coding Horror

Author

@kaluaim

License

Sardine is licensed under the MIT License.