2020-12-02 17:16:29 +01:00
|
|
|
# This is the configuration file for geminer.
|
2020-12-03 11:35:13 +01:00
|
|
|
# It is not intended to be executed.
|
|
|
|
|
|
|
|
# locale (for templates, for example dates rendering)
|
|
|
|
locale = "fr_FR.utf8"
|
2020-12-02 17:16:29 +01:00
|
|
|
|
|
|
|
# path to directory containing markdonw files to convert
|
2020-12-07 16:24:33 +01:00
|
|
|
md_path = "/srv/my-site-content/posts"
|
2020-12-02 17:16:29 +01:00
|
|
|
|
2020-12-07 16:24:33 +01:00
|
|
|
# path to gemini blog root directory
|
|
|
|
gmi_path = "/srv/gemini/my-site"
|
2020-12-03 17:06:52 +01:00
|
|
|
|
2020-12-07 16:24:33 +01:00
|
|
|
# directory within gmi_path which will contains converted posts
|
|
|
|
posts_dir = "posts"
|
2020-12-02 17:16:29 +01:00
|
|
|
|
|
|
|
# path to directory containing templates
|
2020-12-07 16:24:33 +01:00
|
|
|
tpl_path = "/srv/gemini/templates"
|
2020-12-02 17:16:29 +01:00
|
|
|
|
|
|
|
# list of markdown files extensions
|
|
|
|
# Any file with a different extension will be ignored.
|
|
|
|
md_extensions = [
|
2020-12-07 16:24:33 +01:00
|
|
|
".markdown",
|
|
|
|
".mdown",
|
|
|
|
".mkdn",
|
|
|
|
".md",
|
|
|
|
".mkd",
|
|
|
|
".mdwn",
|
|
|
|
".mdtxt",
|
|
|
|
".mdtext",
|
|
|
|
".text",
|
|
|
|
".Rmd"
|
2020-12-02 17:16:29 +01:00
|
|
|
]
|
|
|
|
|
2020-12-07 16:24:33 +01:00
|
|
|
# Specify gemini files extension. Set to empty string to disable extension.
|
2020-12-04 16:00:22 +01:00
|
|
|
# Warning: disabling could have unwanted side effects.
|
|
|
|
# Check out README for more informations.
|
2020-12-07 16:24:33 +01:00
|
|
|
gmi_extension = ".gmi"
|
2020-12-02 17:16:29 +01:00
|
|
|
|
|
|
|
# replacement map
|
|
|
|
# Some CMS make you use some placeholders (for instance for assets URL).
|
|
|
|
# You have to inform geminer of them here.
|
|
|
|
replace = [
|
|
|
|
("%assets_url%", "https://hashtagueule.fr/assets")
|
2020-12-04 16:00:22 +01:00
|
|
|
]
|
2020-12-02 17:16:29 +01:00
|
|
|
|
|
|
|
# md2gemini settings
|
2020-12-04 16:00:22 +01:00
|
|
|
# Check the documentation at https://pypi.org/project/md2gemini/l
|
2020-12-02 17:16:29 +01:00
|
|
|
code_tag=""
|
|
|
|
img_tag="[IMG]"
|
|
|
|
indent=" "
|
|
|
|
ascii_table=False
|
|
|
|
links="copy"
|
|
|
|
plain=True
|
|
|
|
strip_html=False
|
|
|
|
base_url=""
|
|
|
|
table_tag="table"
|
2020-12-04 16:00:22 +01:00
|
|
|
|
|
|
|
# default template for posts that don't specify one
|
|
|
|
default_post_template = "post"
|
|
|
|
|
|
|
|
# per-post properties to fetch in frontmatter
|
|
|
|
post_props = [
|
|
|
|
"date",
|
|
|
|
"title"
|
|
|
|
]
|
|
|
|
|
|
|
|
# indexable properties to fetch in frontmatter
|
|
|
|
# A lot of CMS will manage properties like tags ans authors, which are written
|
|
|
|
# in the frontmatter, and are used to make subgroups of posts.
|
|
|
|
# This setting enables to do the same for any frontmatter property you wish.
|
|
|
|
#
|
|
|
|
# Each indexable property generate two views:
|
|
|
|
# * per-value post index: This is a list of links to posts that have a given
|
|
|
|
# value of the property. There are as many per-value
|
|
|
|
# indexes as properties values.
|
|
|
|
# * property values index: This is a list of links to per-value indexes.
|
|
|
|
# There is only one page of this kind, and it can be
|
|
|
|
# disabled.
|
|
|
|
#
|
|
|
|
# Exemple: if the property is tags, then it will generate a tag index tags.gmi,
|
2020-12-04 17:07:57 +01:00
|
|
|
# which will link to some subindexes like tags/computer (assuming computer is
|
2020-12-04 16:00:22 +01:00
|
|
|
# an existing tag).
|
|
|
|
#
|
|
|
|
# Specify here a list of dictionnary, each one with the following keys:
|
|
|
|
# * property (mandatory): name of the property present in the frontmatter
|
|
|
|
# * list (facultative): set to True if the property is a list of values
|
|
|
|
# * item_dir (facultative): directory containing per-value posts indexes
|
|
|
|
# * item_tpl (facultative): template of the per-value posts indexes
|
|
|
|
# * index_name (facultative): filename of the property values index
|
|
|
|
# * index_tpl (facultative): template of the property values index
|
|
|
|
#
|
|
|
|
# Filenames are relative to meta_dir and extensions are automatically added.
|
|
|
|
# When a string value is facultative, it defaults to property name, except for
|
|
|
|
# index_name, which disables property values global index if not specified.
|
|
|
|
index_props = [
|
|
|
|
{
|
|
|
|
"property": "tags",
|
|
|
|
"list": True,
|
|
|
|
"item_dir": "tags",
|
|
|
|
"item_tpl": "tag",
|
|
|
|
"index_name": "tags",
|
|
|
|
"index_tpl": "tags_index"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"property": "author",
|
|
|
|
"list": False,
|
|
|
|
"item_dir": "authors",
|
2020-12-04 17:19:34 +01:00
|
|
|
"item_tpl": "author",
|
2020-12-04 16:00:22 +01:00
|
|
|
"index_name": "authors",
|
|
|
|
"index_tpl": "authors_index"
|
|
|
|
}
|
|
|
|
]
|