mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 20:35:07 +01:00
Change theme config
This commit is contained in:
parent
5cfc6e4f29
commit
72e85173cf
43
README.md
43
README.md
@ -58,40 +58,41 @@ The theme doesn't require any advanced configuration. Just copy:
|
|||||||
```
|
```
|
||||||
baseurl = "/"
|
baseurl = "/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
title = "Hello Friend"
|
|
||||||
theme = "hello-friend"
|
theme = "hello-friend"
|
||||||
copyright = ""
|
|
||||||
paginate = 5
|
paginate = 5
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
subtitle = "A simple theme for Hugo"
|
# dir name of your blog content (default is `content/posts`)
|
||||||
# dir name for your list content
|
|
||||||
contentTypeName = "posts"
|
contentTypeName = "posts"
|
||||||
# "light" or "dark"
|
# "light" or "dark"
|
||||||
defaultTheme = "dark"
|
defaultTheme = "dark"
|
||||||
|
|
||||||
[params.logo]
|
|
||||||
logoText = "hello friend"
|
|
||||||
# or
|
|
||||||
#
|
|
||||||
# path = "/img/your-example-logo.svg"
|
|
||||||
# alt = "Your example logo alt text"
|
|
||||||
|
|
||||||
[menu]
|
|
||||||
[[menu.main]]
|
|
||||||
identifier = "about"
|
|
||||||
name = "About"
|
|
||||||
url = "/about"
|
|
||||||
[[menu.main]]
|
|
||||||
identifier = "showcase"
|
|
||||||
name = "Showcase"
|
|
||||||
url = "/showcase"
|
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
|
title = "Hello Friend"
|
||||||
|
subtitle = "A simple theme for Hugo"
|
||||||
|
copyright = ""
|
||||||
writtenBy = "Written by"
|
writtenBy = "Written by"
|
||||||
readMore = "Read more"
|
readMore = "Read more"
|
||||||
readOtherPosts = "Read other posts"
|
readOtherPosts = "Read other posts"
|
||||||
|
|
||||||
|
[languages.en.params.logo]
|
||||||
|
logoText = "hello friend"
|
||||||
|
logoHomeLink = "/"
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# path = "/img/your-example-logo.svg"
|
||||||
|
# alt = "Your example logo alt text"
|
||||||
|
|
||||||
|
[languages.en.menu]
|
||||||
|
[[languages.en.menu.main]]
|
||||||
|
identifier = "about"
|
||||||
|
name = "About"
|
||||||
|
url = "/about"
|
||||||
|
[[languages.en.menu.main]]
|
||||||
|
identifier = "showcase"
|
||||||
|
name = "Showcase"
|
||||||
|
url = "/showcase"
|
||||||
```
|
```
|
||||||
|
|
||||||
to `config.toml` file in your Hugo root directory and change params fields. In case you need, here's [a YAML version](https://gist.github.com/panr/8f9b363e358aaa33f6d353c77feee959).
|
to `config.toml` file in your Hugo root directory and change params fields. In case you need, here's [a YAML version](https://gist.github.com/panr/8f9b363e358aaa33f6d353c77feee959).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<a href="{{ .Site.BaseURL }}" style="text-decoration: none;">
|
<a href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}" style="text-decoration: none;">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
{{ if .Site.Params.Logo.path }}
|
{{ if .Site.Params.Logo.path }}
|
||||||
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
|
<img src="{{ .Site.Params.Logo.path }}" alt="{{ .Site.Params.Logo.alt }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user