# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://blowfish.page/docs/getting-started/

theme = "blowfish" # UNCOMMENT THIS LINE
baseURL = "https://berlin.ccc.de/"
defaultContentLanguage = "de"
RelativeURLs = true
CanonifyURLs = true

pluralizeListTitles = "false" # hugo function useful for non-english languages, find out more in  https://gohugo.io/getting-started/configuration/#pluralizelisttitles

enableRobotsTXT = true
summaryLength = 0

buildDrafts = false
buildFuture = false

enableEmoji = true

# googleAnalytics = "G-XXXXXXXXX"

[pagination]
  pagerSize = 100

[imaging]
  anchor = 'Center'

[taxonomies]
  tag = "tags"
  category = "categories"
  author = "authors"
  series = "series"

[sitemap]
  changefreq = 'daily'
  filename = 'sitemap.xml'
  priority = 0.5

[permalinks]
  post = "/post/:year/:month/:day/:title/"

[outputs]
  home = ["HTML", "RSS", "JSON"]
  section = ["HTML", "Calendar", "RSS", "XML", "ICS"]
  page = ["HTML", "Calendar", "ICS"]

# Output Formats Configuration
[outputFormats.Calendar]
  mediaType = "text/calendar"
  baseName = "index"
  isPlainText = true
  notAlternative = true

[outputFormats.XML]
  mediaType = "application/xml"
  baseName = "index"
  isPlainText = true

[outputFormats.RSS]
  mediaType = "application/rss+xml"

# Media Types Configuration
[mediaTypes]
  [mediaTypes."text/calendar"]
    suffixes = ["ics"]
  [mediaTypes."application/rss"]
    suffixes = ["rss"]
  [mediaTypes."application/xml"]
    suffixes = ["xml"]

[related]
  threshold = 0
  toLower = false

    [[related.indices]]
        name = "tags"
        weight = 100

    [[related.indices]]
        name = "categories"
        weight = 100

    [[related.indices]]
        name = "series"
        weight = 50

    [[related.indices]]
        name = "authors"
        weight = 20

    [[related.indices]]
        name = "date"
        weight = 10

    [[related.indices]]
      applyFilter = false
      name = 'fragmentrefs'
      type = 'fragments'
      weight = 10