Skip to content

A simple Bootstrap 5 theme for Pelican, a statitc site generator written in Python

License

Notifications You must be signed in to change notification settings

szpeter80/pelican-bootstrap-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pelican-bootstrap-5

This is a simple Bootstrap 5 theme for Pelican, a statitc site generator written in Python.

It includes the Bootstrap 5 themes known as "Bootswatch" from https://bootswatch.com/ by Thomas Park.

It also includes the Bootstrap Icons as icon font from https://icons.getbootstrap.com

An example pelicanconf.py

AUTHOR = 'John Doe'
SITENAME = 'JD Blog'
SITEURL = ''

PATH = 'content'

TIMEZONE = 'Europe/Budapest'

DEFAULT_LANG = 'en'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (('Pelican', 'https://getpelican.com/'),
         ('Python.org', 'https://www.python.org/'),
         ('Jinja2', 'https://palletsprojects.com/p/jinja/'),
         ('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('You can add links in your config file', '#'),
          ('Another social link', '#'),)

DEFAULT_PAGINATION = False

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

Customizing the theme

It is possible to crete two files under the assets directory:

  • 'theme_custom.css'
  • 'theme_custom.js'

These are included by the generated pages and enable simple customization without using the frontend tooling.

References

About

A simple Bootstrap 5 theme for Pelican, a statitc site generator written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published