4.0 KiB
4.0 KiB
title = "Configuration"
priority = 2
Configuration
site.conf
title = "kewt"
style = "kewt"
lang = "en"
draft_by_default = false
dir_indexes = true
single_file_index = true
flatten = false
home_name = "Home"
show_home_in_nav = true
nav_links = ""
nav_extra = ""
footer = "made with <a href=\"https://kewt.krzak.org\">kewt</a>"
logo = ""
display_logo = false
display_title = true
logo_as_favicon = true
favicon = ""
generate_page_title = true
error_page = "not_found.html"
versioning = false
enable_header_links = true
base_url = ""
generate_feed = false
feed_file = "rss.xml"
posts_dir = ""
posts_per_page = 12
custom_admonitions = ""
cw_hide_url = true
generate_tags = false
tags_dir = "tags"
generate_search = false
search_in_footer = false
search_in_header = false
include_cw_pages_in_search = false
title- site titlestyle- style name from the built-instyles/directory. See Theminglang- document language, used for the<html lang="...">attribute (default: "en")draft_by_default- default value for thedraftfrontmatter field in new posts created (default: false)dir_indexes- generate directory index pages when missingindex.mdsingle_file_index- if a directory has one markdown file and noindex.md, use that file asindex.htmlflatten- flatten sidebar directory levelshome_name- text for the home link in navigation (default: "Home")show_home_in_nav- show home link in navigation (default: true)nav_links- comma separated extra nav links, as bare URLs or Markdown links like[Label](https://example.com)nav_extra- raw HTML appended inside the<nav>after the generated link listfooter- footer html/text shown at the bottom of pageslogo- logo image path (used in header if enabled)display_logo- show logo in headerdisplay_title- show title text in headerlogo_as_favicon- uselogoas faviconfavicon- explicit favicon path (used whenlogo_as_faviconis false or no logo is set)generate_page_title- automatically generate title text from the first markdown heading or filename (default: true)error_page- filename for the generated 404 error page (default: "not_found.html", empty to disable)versioning- append a version query parameter (?v=timestamp) to css asset urls to bypass cache (default: false)enable_header_links- turns markdown section headings into clickable anchor links (default: true)base_url- absolute URL of the site, used for sitemap and RSS feed generationgenerate_feed- enable RSS feed generation (requiresbase_url)feed_file- filename for the generated RSS feed (default: "rss.xml")posts_dir- directory name containing posts (e.g., "posts"). Enables reverse-chronological sorting, title headings in indexes, and automatic backlinks.posts_per_page- number of posts per page in paginated post indexes (default: 12). Set to 0 to disable pagination.custom_admonitions- comma separated list of custom admonitionscw_hide_url- embeds non-breaking JS to replace the URL in the browser bar on content warning pages (default: true)generate_tags- generate tag index pages from post frontmatter (requiresposts_dir)tags_dir- directory name for generated tag pages (default: "tags")generate_search- generate asearch.jsonindex for client-side searchsearch_in_footer- include a search box in the page footer (requiresgenerate_search)search_in_header- include a search box in the page header (requiresgenerate_search)include_cw_pages_in_search- include content warning pages in the search index (default: false)
Dot Files
.kewtignore- files/directories to ignore completely. If the file is empty, the whole directory gets ignored..kewthide- files/directories to hide from navigation but still process. Same empty-file rules as.kewtignore..kewtpreserve- files/directories to copy as-is without converting markdown to HTML. Same empty-file rules again.