summaryrefslogtreecommitdiffstats
path: root/nikola/conf.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/conf.py.in')
-rw-r--r--nikola/conf.py.in77
1 files changed, 74 insertions, 3 deletions
diff --git a/nikola/conf.py.in b/nikola/conf.py.in
index 40e1996..7d75295 100644
--- a/nikola/conf.py.in
+++ b/nikola/conf.py.in
@@ -2,7 +2,6 @@
<%text>
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
-import os
import time
##############################################
@@ -13,7 +12,12 @@ import time
# Data about this site
BLOG_AUTHOR = "${BLOG_AUTHOR}"
BLOG_TITLE = "${BLOG_TITLE}"
-BLOG_URL = "${BLOG_URL}"
+# This is the main URL for your site. It will be used
+# in a prominent link
+SITE_URL = "${SITE_URL}"
+# This is the URL where nikola's output will be deployed.
+# If not set, defaults to SITE_URL
+# BASE_URL = "${SITE_URL}
BLOG_EMAIL = "${BLOG_EMAIL}"
BLOG_DESCRIPTION = "${BLOG_DESCRIPTION}"
@@ -46,7 +50,7 @@ TRANSLATIONS = {
"${DEFAULT_LANG}": "",
# Example for another language:
# "es": "./es",
- }
+}
# Links for the sidebar / navigation bar.
# You should provide a key-value pair for each used language.
@@ -101,6 +105,10 @@ post_pages = ${POST_PAGES}
# 'html' assumes the file is html and just copies it
post_compilers = ${POST_COMPILERS}
+# Create by default posts in one file format?
+# Set to False for two-file posts, with separate metadata.
+# ONE_FILE_POSTS = True
+
# Paths for different autogenerated bits. These are combined with the
# translation paths.
@@ -176,6 +184,11 @@ post_compilers = ${POST_COMPILERS}
# ".jpg": ["jpegoptim --strip-all -m75 -v %s"],
# }
+# Create a gzipped copy of each generated file. Cheap server-side optimization.
+# GZIP_FILES = False
+# File extensions that will be compressed
+# GZIP_EXTENSIONS = ('.txt', '.htm', '.html', '.css', '.js', '.json')
+
# #############################################################################
# Image Gallery Options
# #############################################################################
@@ -198,6 +211,12 @@ post_compilers = ${POST_COMPILERS}
# Name of the theme to use. Themes are located in themes/theme_name
# THEME = 'site'
+# If you use 'site-reveal' theme you can select several subthemes
+# THEME_REVEAL_CONGIF_SUBTHEME = 'sky' # You can also use: beige/serif/simple/night/default
+
+# Again, if you use 'site-reveal' theme you can select several transitions between the slides
+# THEME_REVEAL_CONGIF_TRANSITION = 'cube' # You can also use: page/concave/linear/none/default
+
# date format used to display post dates. (str used by datetime.datetime.strftime)
# DATE_FORMAT = '%Y-%m-%d %H:%M'
@@ -242,6 +261,25 @@ CONTENT_FOOTER = CONTENT_FOOTER.format(email=BLOG_EMAIL,
# Enable comments on picture gallery pages?
# COMMENTS_IN_GALLERIES = False
+# Do you want a add a Mathjax config file?
+# MATHJAX_CONFIG = ""
+
+# If you are using the compile-ipynb plugin, just add this one:
+#MATHJAX_CONFIG = """
+#<script type="text/x-mathjax-config">
+#MathJax.Hub.Config({
+# tex2jax: {
+# inlineMath: [ ['$','$'], ["\\\(","\\\)"] ],
+# displayMath: [ ['$$','$$'], ["\\\[","\\\]"] ]
+# },
+# displayAlign: 'left', // Change this to 'center' to center equations.
+# "HTML-CSS": {
+# styles: {'.MathJax_Display': {"margin": 0}}
+# }
+#});
+#</script>
+#"""
+
# Enable Addthis social buttons?
# Defaults to true
# ADD_THIS_BUTTONS = True
@@ -309,6 +347,39 @@ CONTENT_FOOTER = CONTENT_FOOTER.format(email=BLOG_EMAIL,
# '(?P<date>\d{4}-\d{2}-\d{2})-(?P<slug>.*)-(?P<title>.*)\.md'
# FILE_METADATA_REGEXP = None
+# Nikola supports Twitter Card summaries / Open Graph.
+# Twitter cards make it possible for you to attach media to Tweets
+# that link to your content.
+#
+# IMPORTANT:
+# Please note, that you need to opt-in for using Twitter Cards!
+# To do this please visit https://dev.twitter.com/form/participate-twitter-cards
+#
+# Uncomment and modify to following lines to match your accounts.
+# Specifying the id for either 'site' or 'creator' will be preferred
+# over the cleartext username. Specifying an ID is not necessary.
+# Displaying images is currently not supported.
+# TWITTER_CARD = {
+# # 'use_twitter_cards': True, # enable Twitter Cards / Open Graph
+# # 'site': '@website', # twitter nick for the website
+# # 'site:id': 123456, # Same as site, but the website's Twitter user ID instead.
+# # 'creator': '@username', # Username for the content creator / author.
+# # 'creator:id': 654321, # Same as creator, but the Twitter user's ID.
+# }
+
+
+# If you want to use formatted post time in W3C-DTF Format(ex. 2012-03-30T23:00:00+02:00),
+# set timzone if you want a localized posted date.
+#
+# TIMEZONE = 'Europe/Zurich'
+
+# If webassets is installed, bundle JS and CSS to make site loading faster
+# USE_BUNDLES = True
+
+# Plugins you don't want to use. Be careful :-)
+# DISABLED_PLUGINS = ["render_galleries"]
+
# Put in global_context things you want available on all your templates.
# It can be anything, data, functions, modules, etc.
+
GLOBAL_CONTEXT = {}