pelicanconf.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = 'demure'
  5. SITENAME = 'demu.red'
  6. SITEURL = ''
  7. TIMEZONE = 'America/Detroit'
  8. DEFAULT_LANG = 'en'
  9. DEFAULT_PAGINATION = True
  10. ### Path Stuff ### {{{
  11. PATH = 'content'
  12. ## path-specific metadata
  13. EXTRA_PATH_METADATA = {
  14. 'extra/robots.txt': {'path': 'robots.txt'},
  15. 'extra/favicon.ico': {'path': 'favicon.ico'},
  16. 'extra/error.html': {'path': 'error.html'},
  17. }
  18. ## static paths will be copied without parsing their contents
  19. STATIC_PATHS = [
  20. 'pics',
  21. 'extra/robots.txt',
  22. 'extra/favicon.ico',
  23. 'extra/error.html',
  24. ]
  25. ## Pages Path
  26. PAGE_PATHS = ['pages']
  27. ## Article Path
  28. ARTICLE_PATHS = ['articles']
  29. ## Ignore files
  30. IGNORE_FILES = ['.template', '*draft*']
  31. ### End Path ### }}}
  32. ### URL Settings ### {{{
  33. # Uncomment following line if you want document-relative URLs when developing
  34. #RELATIVE_URLS = True
  35. ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{slug}/'
  36. ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{slug}/index.html'
  37. PAGE_URL = 'pages/{slug}/'
  38. PAGE_SAVE_AS = 'pages/{slug}/index.html'
  39. # TAG_URL = 'tag/{slug}.html'
  40. # TAG_SAVE_AS = 'tag/{slug}.html'
  41. ### End URL ### }}}
  42. ### Feed ### {{{
  43. # Feed generation is usually not desired when developing
  44. FEED_ALL_ATOM = None
  45. CATEGORY_FEED_ATOM = None
  46. TRANSLATION_FEED_ATOM = None
  47. AUTHOR_FEED_ATOM = None
  48. AUTHOR_FEED_RSS = None
  49. ### End Feed ### }}}
  50. ### Theme ### {{{
  51. THEME = "pelican-twitchy"
  52. # Specify name of a theme installed via the pelican-themes tool
  53. # THEME = "chunk"
  54. # Specify a customized theme, via path relative to the settings file
  55. # THEME = "themes/mycustomtheme"
  56. # Specify a customized theme, via absolute path
  57. # THEME = "/home/myuser/projects/mysite/themes/mycustomtheme"
  58. ### End Theme ### }}}
  59. ### Plugins ### {{{
  60. PLUGIN_PATHS = ['/home/demure/projects/git/pelican-plugins']
  61. PLUGINS = [
  62. 'pelican-toc',
  63. 'bootstrapify',
  64. 'sitemap',
  65. ]
  66. ### End Plugins ### }}}
  67. ### Twitchy Settings ### {{{
  68. ## read https://github.com/ingwinlu/pelican-twitchy
  69. ### General ### {{{
  70. SITESUBTITLE = "A place of geekery"
  71. RECENT_POST_COUNT = 5
  72. EXPAND_LATEST_ON_INDEX = True
  73. ### End General ### }}}
  74. ### More Colors? ### {{{
  75. # BOOTSTRAP_THEME = "sandstone"
  76. # BOOTSTRAP_THEME = "spacelab"
  77. # BOOTSTRAP_THEME = "united"
  78. BOOTSTRAP_THEME = "yeti"
  79. # PYGMENTS_STYLE = "native"
  80. # TYPOGRIFY = False
  81. # CUSTOM_CSS
  82. ### End Colors ### }}}
  83. ### Sidebar ### {{{
  84. # SHARE = False
  85. SOCIAL = (
  86. ('RSS', 'http://demu.red/feeds/all.atom.xml'),
  87. ('Twitter', 'https://twitter.com/demure'),
  88. ('NotABug', 'https://notabug.org/demure'),
  89. ('DeviantArt', 'https://demuredemeanor.deviantart.com'),
  90. ('Etsy', 'https://www.etsy.com/shop/demuredemeanor'),
  91. ('Ko-fi', 'https://ko-fi.com/demure'),
  92. ('GitHub', 'https://github.com/demure/'),
  93. ('EMAIL', 'mailto:demuredemeanor+blog@gmail.com'),
  94. ('Stack-Overflow', 'https://stackoverflow.com/users/2327476/demure'),
  95. ('Stack-Exchange', 'https://stackexchange.com/users/2580702/demure'),
  96. )
  97. # SITELOGO = "pics/hallow-2_150x150.png"
  98. # SITELOGO_SIZE = "150"
  99. HIDE_SITENAME = False
  100. DISPLAY_RECENT_POSTS_ON_MENU = True
  101. DISPLAY_PAGES_ON_MENU = True
  102. DISPLAY_CATEGORIES_ON_MENU = True
  103. DISPLAY_TAGS_ON_MENU = False
  104. ### End Sidebar ### }}}
  105. ### CC License ### {{{
  106. # These settings add a CC License note to the footer.
  107. # CC_LICENSE : Valid Settings are
  108. # * CC-BY - attribution
  109. # * CC-BY-SA - ShareAlike
  110. # * CC-BY-ND - NoDerivatives
  111. # * CC-BY-NC - attribution, No Commercial reuse
  112. # * CC-BY-NC-SA - combination of above
  113. # * CC-BY-NC-ND - combination of above
  114. CC_LICENSE = "CC-BY-NC-SA"
  115. # Alternatively, choose by features directly:
  116. # * CC_LICENSE_DERIVATIVES - yes if permitted, no if not, ShareAlike if allowed under same terms
  117. # * CC_LICENSE_COMMERCIAL - yes if allowed, no if not
  118. # CC_ATTR_MARKUP can be set to True if you want to include attribution markup in th elicense mark.
  119. CC_ATTR_MARKUP = True
  120. ### End CC ### }}}
  121. ### TOC Plugin ### {{{
  122. TOC = {
  123. 'TOC_HEADERS' : '^h[1-6]', # What headers should be included in the generated toc
  124. # Expected format is a regular expression
  125. 'TOC_RUN' : 'true' # Default value for toc generation, if it does not evaluate
  126. # to 'true' no toc will be generated
  127. }
  128. ### End TOC ### }}}
  129. ### Put in publishconf.py ### {{{
  130. # ### Google Analytics ### {{{
  131. # GOOGLE_ANALYTICS
  132. # GOOGLE_ANALYTICS_UNIVERSAL
  133. # GOOGLE_ANALYTICS_UNIVERSAL_PROPERTY
  134. # ### End Google ### }}}
  135. # ### Open Graph ### {{{
  136. # Setting name (followed by default value, if exists)
  137. # ---------------------------------------------------
  138. # OPEN_GRAPH_FB_APP_ID
  139. # OPEN_GRAPH_IMAGE
  140. # ### End Open ### }}}
  141. ### End put ### }}}
  142. ### End Twitchy ### }}}
  143. ### Sitemap Settings ### {{{
  144. SITEMAP = {
  145. 'format': 'xml',
  146. 'priorities': {
  147. 'articles': 0.5,
  148. 'indexes': 0.6,
  149. 'pages': 0.3
  150. },
  151. 'changefreqs': {
  152. 'articles': 'monthly',
  153. 'indexes': 'daily',
  154. 'pages': 'monthly'
  155. }
  156. }
  157. ### End Sitemap ### }}}