Skip to content
Snippets Groups Projects
pelicanconf.py 2.65 KiB
Newer Older
  • Learn to ignore specific revisions
  • Jake's avatar
    Jake committed
    import json
    
    
    Jake's avatar
    Jake committed
    AUTHOR = 'Fachgruppe Informatik'
    
    Jake's avatar
    Jake committed
    SITENAME = 'Dieser Wert wird ignoriert und soll stattdessen in lang.json geändert werden.'
    
    Jake's avatar
    Jake committed
    SITEURL = ''
    
    PATH = 'content'
    
    TIMEZONE = 'Europe/Berlin'
    
    DEFAULT_LANG = 'de'
    
    # 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
    
    
    Jake's avatar
    Jake committed
    #DEFAULT_PAGINATION = 10
    DEFAULT_PAGINATION = False
    
    Jake's avatar
    Jake committed
    
    # Uncomment following line if you want document-relative URLs when developing
    
    Jake's avatar
    Jake committed
    RELATIVE_URLS = False
    
    Jake's avatar
    Jake committed
    
    
    Jake's avatar
    Jake committed
    OUTPUT_SOURCES = True
    
    TYPOGRIFY = True
    
    STATIC_PATHS = ['images']
    
    Jake's avatar
    Jake committed
    
    
    Jake's avatar
    Jake committed
    
    PANDOC_ARGS = [
    #    "--mathjax",
    #    "--citeproc",
        "--table-of-contents",
    ]
    
    PANDOC_EXTENSIONS = [
        "+abbreviations",
        "+all_symbols_escapable",
        "+ascii_identifiers",
        "+auto_identifiers",
        "+autolink_bare_uris",
        "+backtick_code_blocks",
        "+bracketed_spans",
        "+definition_lists",
        "+emoji",
        "+escaped_line_breaks",
        "+example_lists",
        "+fancy_lists",
        "+fenced_code_attributes",
        "+fenced_code_blocks",
        "+fenced_divs",
        "+footnotes",
        "+gfm_auto_identifiers",
        "+grid_tables",
        "+hard_line_breaks",
        "+header_attributes",
        "+implicit_figures",
        "+implicit_header_references",
        "+inline_code_attributes",
        "+inline_notes",
        "+intraword_underscores",
        "+latex_macros",
        "+line_blocks",
        "+link_attributes",
        "+lists_without_preceding_blankline",
        "+multiline_tables",
        "+native_divs",
        "+native_spans",
        "+pipe_tables",
        "+raw_attribute",
        "+raw_html",
        "+raw_tex",
        "+shortcut_reference_links",
        "+simple_tables",
        "+smart",
        "+space_in_atx_header",
        "+startnum",
        "+strikeout",
        "+subscript",
        "+superscript",
        "+table_captions",
        "+tex_math_dollars",
        "+tex_math_single_backslash",
        "+yaml_metadata_block",
        "-angle_brackets_escapable",
        "-blank_before_blockquote",
        "-blank_before_header",
        "-citations",
        "-compact_definition_lists",
        "-east_asian_line_breaks",
        "-four_space_rule",
        "-ignore_line_breaks",
        "-literate_haskell",
        "-markdown_attribute",
        "-markdown_in_html_blocks",
        "-mmd_header_identifiers",
        "-mmd_link_attributes",
        "-mmd_title_block",
        "-old_dashes",
        "-pandoc_title_block",
        "-spaced_reference_links",
        "-tex_math_double_backslash",
    ]
    
    CALCULATE_READING_TIME = True
    
    
    PLUGIN_PATHS = ['./pelican-plugins']
    PLUGINS = ['filetime_from_git']
    
    
    Jake's avatar
    Jake committed
    THEME = './theme'
    
    Jake's avatar
    Jake committed
    JINJA_GLOBALS = {} 
    
    Jake's avatar
    Jake committed
    with open('./lang.json') as json_file:
        JINJA_GLOBALS['l'] = json.load(json_file)
    with open('./siteconf.json') as json_file:
        JINJA_GLOBALS['sc'] = json.load(json_file)
    
    Jake's avatar
    Jake committed