summaryrefslogtreecommitdiff
path: root/hugo.toml
blob: 368a7b34d5faef323655894f09f81f343239dc06 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
baseURL = "https://example.org/"
languageCode = "en-US"
title = "Your Website Name"

enableRobotsTXT = true # Copy this line to your project's hugo.toml

[frontmatter]
    # {{ .Date }} will look for publishDate or aliases first, fallback to date
    date = ["publishdate", "pubdate", "published", "date"]

# EXAMPLE: multilingual English-German site with content/en & content/de directories; English as default 
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
disableDefaultLanguageRedirect = true

[languages]
    [languages.de]
        contentDir = "content/de"
        languageCode = "de-DE"
        languageName = "Deutsch"
        weight = 2
 
        [[languages.de.menus.main]]
            identifier = "home"
            name = "Startseite"
            pageRef = "/"
            weight = 10

        [[languages.de.menus.main]]
            identifier = "about"
            name = "Über mich"
            pageRef = "/about/"
            weight = 20
 
        [[languages.de.menus.main]]
            identifier = "search"
            name = "Suche"
            pageRef = "/search/"
            weight = 30
 
    [languages.en]
        contentDir = "content/en"
        languageCode = "en-US"
        languageName = "English"
        weight = 1

[menus]
    [[menus.main]]
        identifier = "home"
        name = "Home"
        pageRef = "/"
        weight = 10

    [[menus.main]]
        identifier = "posts"
        name = "Posts"
        pageRef = "/posts"
        weight = 20

    [[menus.main]]
        identifier = "about"
        name = "About"
        pageRef = "/about"
        weight = 30

    [[menus.main]]
        identifier = "search"
        name = "Search"
        pageRef = "/search"
        weight = 40

[outputs] # Copy outputs configuration to your project's hugo.toml
    home = ["html", "json", "rss"]
    section = ["html", "rss"]
    taxonomy = ["html"]
    term = ["html"]

[params]
    # In your project's hugo.toml, adjust logo to your file's name or set empty string to display site.Title instead
    logo = "/logo.svg"

    [params.author]
        name = "Your Name"
        email = "your@email.com"

    # Replace with your actual social media profiles in your hugo.toml
    [[params.socials]]
        name = "Twitter"
        url = "https://twitter.com/yourhandle"
        icon = "/socials/twitter.svg" 

    [[params.socials]]
        name = "GitHub"
        url = "https://github.com/yourhandle"
        icon = "/socials/github.svg"

    [[params.socials]]
        name = "LinkedIn"
        url = "https://linkedin.com/in/yourhandle"
        icon = "/socials/linkedin.svg"