Improve home page
Add social icons and a translated title to the home page Add translated links to the site menu
This commit is contained in:
parent
7f5283374a
commit
6071e6fe19
3 changed files with 60 additions and 28 deletions
79
config.toml
79
config.toml
|
@ -2,9 +2,25 @@ baseURL = "https://faercol.me"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
defaultContentLanguageInSubdir = true
|
defaultContentLanguageInSubdir = true
|
||||||
title = "Melora Hugues"
|
title = "Melora's tech stuff"
|
||||||
theme = "hello-friend-ng"
|
theme = "hello-friend-ng"
|
||||||
paginate = 10
|
paginate = 10
|
||||||
|
rssLimit = 10 # Maximum number of items in the RSS feed.
|
||||||
|
copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." # This message is only used by the RSS template.
|
||||||
|
|
||||||
|
archetypeDir = "archetypes"
|
||||||
|
contentDir = "content"
|
||||||
|
dataDir = "data"
|
||||||
|
layoutDir = "layouts"
|
||||||
|
publishDir = "public"
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "Melora Hugues"
|
||||||
|
|
||||||
|
[taxonomies]
|
||||||
|
category = "blog"
|
||||||
|
tags = "tags"
|
||||||
|
series = "series"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
dateform = "2 Jan 2006"
|
dateform = "2 Jan 2006"
|
||||||
|
@ -12,47 +28,62 @@ paginate = 10
|
||||||
dateformNum = "02-01-2006"
|
dateformNum = "02-01-2006"
|
||||||
dateformNumTime = "02-01-2006 15:04"
|
dateformNumTime = "02-01-2006 15:04"
|
||||||
|
|
||||||
homeSubtitle = "Personal website and tech blog"
|
|
||||||
disableReadOtherPosts = false
|
disableReadOtherPosts = false
|
||||||
enableSharingButtons = true
|
enableSharingButtons = true
|
||||||
enableGlobalLanguageMenu = true
|
enableGlobalLanguageMenu = true
|
||||||
|
|
||||||
description = "Melora Hugues - Personal website and tech blog"
|
description = "Personal website and tech blog for Melora Hugues"
|
||||||
keywords = "blog, tech, dev"
|
keywords = "blog, tech, dev"
|
||||||
images = [""]
|
images = [""]
|
||||||
|
|
||||||
|
# Enable to add comment support
|
||||||
|
# [params.commento]
|
||||||
|
# url = ""
|
||||||
|
|
||||||
|
[params.footer]
|
||||||
|
trademark = true
|
||||||
|
rss = true
|
||||||
|
copyright = false
|
||||||
|
author = true
|
||||||
|
|
||||||
[taxonomies]
|
[params.logo]
|
||||||
category = "blog"
|
logoText = "Hello there!"
|
||||||
tags = "tags"
|
logoHomeLink = "/"
|
||||||
series = "series"
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "gitea"
|
||||||
|
url = "https://git.faercol.me"
|
||||||
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "github"
|
||||||
|
url = "https://github.com/aHugues"
|
||||||
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "linkedin"
|
||||||
|
url = "https://www.linkedin.com/in/huguesmel/"
|
||||||
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "email"
|
||||||
|
url = "mailto:contact@faercol.me"
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
contentDir = "content/en"
|
contentDir = "content/en"
|
||||||
|
[languages.en.params]
|
||||||
|
homeSubtitle = "Personal website and tech blog"
|
||||||
|
|
||||||
[languages.fr]
|
[languages.fr]
|
||||||
contentDir = "content/fr"
|
contentDir = "content/fr"
|
||||||
title = "Mon blog"
|
[languages.fr.params]
|
||||||
|
homeSubtitle = "Site personnel et blog technique"
|
||||||
|
|
||||||
[[menu.main]]
|
[menu]
|
||||||
|
[[menu.main]]
|
||||||
identifier = "blog"
|
identifier = "blog"
|
||||||
name = "Blog"
|
name = "Blog"
|
||||||
url = "/posts"
|
url = "/posts"
|
||||||
|
|
||||||
[[params.social]]
|
[[menu.main]]
|
||||||
name = "gitea"
|
identifier = "resume"
|
||||||
url = "https://git.faercol.me"
|
name = "Resume"
|
||||||
|
url = "https://resume.faercol.me"
|
||||||
[[params.social]]
|
|
||||||
name = "github"
|
|
||||||
url = "https://github.com/aHugues"
|
|
||||||
|
|
||||||
[[params.social]]
|
|
||||||
name = "linkedin"
|
|
||||||
url = "https://www.linkedin.com/in/huguesmel/"
|
|
||||||
|
|
||||||
[[params.social]]
|
|
||||||
name = "email"
|
|
||||||
url = "mailto:contact@faercol.me"
|
|
||||||
|
|
1
i18n/fr.toml
Normal file
1
i18n/fr.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
resume = "CV"
|
|
@ -2,7 +2,7 @@
|
||||||
<ul class="menu__inner">
|
<ul class="menu__inner">
|
||||||
{{- $currentPage := . -}}
|
{{- $currentPage := . -}}
|
||||||
{{ range .Site.Menus.main -}}
|
{{ range .Site.Menus.main -}}
|
||||||
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL | relLangURL }}">{{ or (T .Identifier) .Name }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Site.Params.EnableGlobalLanguageMenu }}
|
{{- if .Site.Params.EnableGlobalLanguageMenu }}
|
||||||
|
|
Loading…
Reference in a new issue