aboutsummaryrefslogtreecommitdiff
path: root/config.toml
blob: 4de99f88a31e6d1de107e54bf9e3fcb481c536eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# base hugo config
baseURL = "https://pablotron.org/"
languageCode = "en-us"
title = "pablotron.org"
theme = "hugo-pt2021"

[author]
name = "Paul Duncan"
email = "rss-spam@pablotron.org"

[params]
  authorName = 'Paul Duncan'
  description = "Paul Duncan's technical site."
  copyrightStartYear = 1998
  # timezone (used for "bin/new post some-post")
  tz = "-04:00"

  # FIXME: probably belongs in params.social
  activityPubUrl = "https://infosec.exchange/@pabs"

# not sure i need this (covered in data/menu.yaml)
[[params.social]]
  icon = "github"
  name = "github"
  url = "https://github.com/pablotron"

# content type permalinks
[permalinks]
  posts = "/:year/:month/:day/:slug"
  articles = "/articles/:slug"
  projects = "/:slug"

[markup]
  [markup.tableOfContents]
    startLevel = 2
    endLevel = 4
    ordered = false

  # set chrome syntax highlighting; use all defaults except 
  # for one directive:
  #
  #   noClasses = false
  #
  # This tells chroma to use classes instead of inline styles
  # for syntax highlighting.
  #
  # After that I ran `hugo genchromaclasses` to generate a static
  # stylesheet for chroma:
  #
  #   hugo gen chromaclasses --style=monokai > \
  #     themes/hugo-pt2021/assets/chroma.css
  #
  # And finally, I imported chroma.css into my style.sass:
  #
  #   /
  [markup.highlight]
    anchorLineNos = false
    codeFences = true
    guessSyntax = false
    hl_Lines = ''
    lineAnchors = ''
    lineNoStart = 1
    lineNos = false
    lineNumbersInTable = true
    noClasses = false
    style = 'monokai'
    tabWidth = 4

# allow executing vim (2023-12-29)
[security.exec]
    allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^vim$']
    osEnv = ['(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+)$']