plug for fixing tables
use pelican-bootstrapify https://github.com/getpelican/pelican/issues/1421
content for bootstarp2
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Mike Curtis'
SITENAME = u'My Blog'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'America/New_York'
THEME="/home/mike/pelican-themes/bootstrap2"
PLUGIN_PATHS = ['/home/mike/pelican-plugins/']
PLUGINS = ['tag_cloud','autopages', 'neighbors', 'summary']
DEFAULT_LANG = u'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
# Formatting for dates
DEFAULT_DATE_FORMAT = ('%a %d %B %Y')
# Formatting for urls
ARTICLE_URL = "posts/{date:%Y}/{date:%m}/{slug}/"
ARTICLE_SAVE_AS = "posts/{date:%Y}/{date:%m}/{slug}/index.html"
CATEGORY_URL = "category/{slug}/index.html"
CATEGORY_SAVE_AS = "category/{slug}/index.html"
TAG_URL = "tag/{slug}/index.html"
TAG_SAVE_AS = "tag/{slug}/index.html"
# Generate yearly archive
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
# Show most recent posts first
NEWEST_FIRST_ARCHIVES = False
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('RegEx Checker', 'https://regex101.com/'),
('Github','https://github.com/mcurtis789'),
)
# Social widget
#SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
DEFAULT_PAGINATION = 3
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
pelicanconf.py file for bootstarp3
AUTHOR = 'Mike Curtis'
SITENAME = 'My Blog'
SITEURL = 'http://blog.mbcurtis.com'
PATH = "content"
#set date format and language
DEFAULT_LANG = u'en'
TIMEZONE = 'America/Detroit'
DEFAULT_DATE_FORMAT = ('%a %d %B %Y')
# 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
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
#https://github.com/mterzo/pelican-bootstrap3
# his is a Bootstrap 3 theme for Pelican, originally developed by DandyDev.
# It's fully responsive and contains sub-themes from the Bootswatch project.
# Pelican-bootstrap3 is compatible with Pelican 3.3.0 and higher.
THEME="/home/mike/Workspace/pelican-themes/pelican-bootstrap3"
PLUGIN_PATHS = ['/home/mike/Workspace/pelican-plugins']
# bootstrapify - fixes table formatting.
# summary - control summary display on the index pages.
# sitemap - create site map of your site.
# i18n_subsites - needed by pelican-bootstrap3
#PLUGINS = ['tag_cloud','autopages', 'neighbors', 'summary']
PLUGINS = ['tag_cloud','autopages', 'neighbors', 'i18n_subsites', 'bootstrapify', 'summary', 'sitemap']
# needed by pelican-bootstrap3
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n'],
}
# The URL to refer to an article.
ARTICLE_URL = "posts/{date:%Y}/{date:%m}/{slug}.html"
# The place where we will save an article.
ARTICLE_SAVE_AS = "posts/{date:%Y}/{date:%m}/{slug}.html"
# The location to save per-year archives of your posts.
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/archives.html'
# The location to save the article archives page.
ARCHIVES_SAVE_AS = 'archives.html'
# The URL to use for a category.
CATEGORY_URL = "category/{slug}/index.html"
# The location to save a category.
CATEGORY_SAVE_AS = "category/{slug}/index.html"
# Formatting for TAG urls
TAG_URL = "tag/{slug}/index.html"
TAG_SAVE_AS = "tag/{slug}/index.html"
# TAG_CLOUD_STEPS Count of different font sizes in the tag cloud
# TAG_CLOUD_MAX_ITEMS Maximum number of tags in the cloud
# TAG_CLOUD_SORTING Tag cloud ordering scheme. Valid values: random, alphabetically, alphabetically-rev, size, and size-rev
# TAG_CLOUD_BADGE Optional setting: turn on badges, displaying the number of articles using each tag
TAG_CLOUD_STEPS = 4
TAG_CLOUD_MAX_ITEMS = 100
TAG_CLOUD_SORTING = "random"
DISPLAY_TAGS_INLINE = True
# List of templates that are used directly to render content.
# Typically direct templates are used to generate index pages for collections of content (e.g., category and tag index pages).
# If the author, category and tag collections are not needed, set DIRECT_TEMPLATES = ['index', 'archives']
#DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives')
# Set SHOW_ARTICLE_AUTHOR to True to show the author of the article at the top of the article and in the index of articles.
# Set SHOW_ARTICLE_CATEGORY to show the Category of each article.
# Set SHOW_DATE_MODIFIED to True to show the article modified date next to the published date.
SHOW_DATE_MODIFIED = True
SHOW_ARTICLE_AUTHOR = True
SHOW_ARTICLE_CATEGORY = True
# Show most recent posts first
NEWEST_FIRST_ARCHIVES = True
# https://github.com/getpelican/pelican-themes/blob/master/pelican-bootstrap3/README.md
DISPLAY_ARTICLE_INFO_ON_INDEX = True
# Number of articles to show on the index pages
DEFAULT_PAGINATION = 3
# A list of tuples (Title, URL) for links to appear on the header.
LINKS = (('github','https://github.com/mcurtis789'),
('Pelican', 'http://getpelican.com/'),
('RegEx Checker', 'https://regex101.com/'),
)
# static paths will be copied without parsing their contents
STATIC_PATHS = [
"robots.txt",
]
#https://github.com/pelican-plugins/sitemap
SITEMAP = {
"format": "xml",
"exclude": ["tag/", "category/", "author/"],
"priorities": {
"articles": 0.5,
"indexes": 0.5,
"pages": 0.5
},
"changefreqs": {
"articles": "monthly",
"indexes": "weekly",
"pages": "monthly"
}
}