Header fixes (#25)
* #21 changing logic to selecting cover image - For categories, tags - Some code refactor and indenting * #21 initial codes for pelican unit tests * #21 few more testing changes * Ref #21 unit tests for article tests coverimages * Ref #21 unit tests for page, tags, category and author coverimages * Ref #21 readme updated
This commit is contained in:
parent
994b999633
commit
7b26ad1013
39 changed files with 1283 additions and 127 deletions
126
tests/default_conf.py
Normal file
126
tests/default_conf.py
Normal file
|
@ -0,0 +1,126 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*- #
|
||||
from __future__ import unicode_literals
|
||||
|
||||
AUTHOR = u'Zutrinken'
|
||||
SITENAME = u'Attila Demo'
|
||||
SITEURL = ''
|
||||
|
||||
PATH = 'content'
|
||||
|
||||
DEFAULT_DATE = 'fs'
|
||||
|
||||
DEFAULT_DATE_FORMAT = '%d %b %Y'
|
||||
|
||||
TIMEZONE = 'Asia/Calcutta'
|
||||
|
||||
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
|
||||
|
||||
# Blogroll
|
||||
LINKS = (('Pelican', 'http://getpelican.com/'),
|
||||
('Python.org', 'http://python.org/'),
|
||||
('Jinja2', 'http://jinja.pocoo.org/'),
|
||||
('You can modify those links in your config file', '#'),)
|
||||
|
||||
# Social widget
|
||||
SOCIAL = (('Facebook', 'http://facebook.com/arulraj.net'),
|
||||
('Twitter', 'http://twitter.com/arulrajnet')
|
||||
)
|
||||
|
||||
# Pagination
|
||||
DEFAULT_PAGINATION = 3
|
||||
PAGINATION_PATTERNS = (
|
||||
(1, '{base_name}/', '{base_name}/index.html'),
|
||||
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
|
||||
)
|
||||
|
||||
# Uncomment following line if you want document-relative URLs when developing
|
||||
#RELATIVE_URLS = True
|
||||
|
||||
STATIC_PATHS = ['assets']
|
||||
|
||||
EXTRA_PATH_METADATA = {
|
||||
'assets/robots.txt': {'path': 'robots.txt'},
|
||||
'assets/favicon.ico': {'path': 'favicon.ico'},
|
||||
'assets/CNAME': {'path': 'CNAME'}
|
||||
}
|
||||
|
||||
# Post and Pages path
|
||||
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
|
||||
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
|
||||
PAGE_URL = 'pages/{slug}/'
|
||||
PAGE_SAVE_AS = 'pages/{slug}/index.html'
|
||||
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
|
||||
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'
|
||||
|
||||
# Tags and Category path
|
||||
CATEGORY_URL = 'category/{slug}'
|
||||
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
|
||||
CATEGORIES_SAVE_AS = 'catgegories.html'
|
||||
TAG_URL = 'tag/{slug}'
|
||||
TAG_SAVE_AS = 'tag/{slug}/index.html'
|
||||
TAGS_SAVE_AS = 'tags.html'
|
||||
|
||||
# Author
|
||||
AUTHOR_URL = 'author/{slug}'
|
||||
AUTHOR_SAVE_AS = 'author/{slug}/index.html'
|
||||
AUTHORS_SAVE_AS = 'authors.html'
|
||||
|
||||
### Plugins
|
||||
|
||||
# PLUGIN_PATHS = [
|
||||
# 'pelican-plugins'
|
||||
# ]
|
||||
|
||||
# PLUGINS = [
|
||||
# 'sitemap',
|
||||
# 'neighbors',
|
||||
# 'assets'
|
||||
# ]
|
||||
|
||||
# Sitemap
|
||||
SITEMAP = {
|
||||
'format': 'xml',
|
||||
'priorities': {
|
||||
'articles': 0.5,
|
||||
'indexes': 0.5,
|
||||
'pages': 0.5
|
||||
},
|
||||
'changefreqs': {
|
||||
'articles': 'monthly',
|
||||
'indexes': 'daily',
|
||||
'pages': 'monthly'
|
||||
}
|
||||
}
|
||||
|
||||
# Comments
|
||||
DISQUS_SITENAME = "attilademo"
|
||||
|
||||
# Analytics
|
||||
GOOGLE_ANALYTICS = "UA-3546274-12"
|
||||
|
||||
THEME = 'attila'
|
||||
|
||||
### Theme specific settings
|
||||
|
||||
COLOR_SCHEME_CSS = 'github.css'
|
||||
|
||||
CSS_OVERRIDE = ['assets/css/myblog.css']
|
||||
|
||||
# AUTHORS_BIO = {
|
||||
# "arul": {
|
||||
# "name": "Arul",
|
||||
# "cover": "assets/images/avatar.png",
|
||||
# "image": "assets/images/arul_author_cover.jpg",
|
||||
# "website": "http://blog.arulraj.net",
|
||||
# "location": "Chennai",
|
||||
# "bio": "This is the place for a small biography with max 200 characters. Well, now 100 are left. Cool, hugh?"
|
||||
# }
|
||||
# }
|
Loading…
Add table
Add a link
Reference in a new issue