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:
Melora Hugues 2023-06-19 16:37:16 +02:00
parent 7f5283374a
commit 6071e6fe19
3 changed files with 60 additions and 28 deletions

View file

@ -2,9 +2,25 @@ baseURL = "https://faercol.me"
languageCode = "en-us"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
title = "Melora Hugues"
title = "Melora's tech stuff"
theme = "hello-friend-ng"
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]
dateform = "2 Jan 2006"
@ -12,47 +28,62 @@ paginate = 10
dateformNum = "02-01-2006"
dateformNumTime = "02-01-2006 15:04"
homeSubtitle = "Personal website and tech blog"
disableReadOtherPosts = false
enableSharingButtons = true
enableGlobalLanguageMenu = true
description = "Melora Hugues - Personal website and tech blog"
description = "Personal website and tech blog for Melora Hugues"
keywords = "blog, tech, dev"
images = [""]
# Enable to add comment support
# [params.commento]
# url = ""
[params.footer]
trademark = true
rss = true
copyright = false
author = true
[taxonomies]
category = "blog"
tags = "tags"
series = "series"
[params.logo]
logoText = "Hello there!"
logoHomeLink = "/"
[[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.en]
contentDir = "content/en"
[languages.en.params]
homeSubtitle = "Personal website and tech blog"
[languages.fr]
contentDir = "content/fr"
title = "Mon blog"
[languages.fr.params]
homeSubtitle = "Site personnel et blog technique"
[[menu.main]]
identifier = "blog"
name = "Blog"
url = "/posts"
[menu]
[[menu.main]]
identifier = "blog"
name = "Blog"
url = "/posts"
[[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"
[[menu.main]]
identifier = "resume"
name = "Resume"
url = "https://resume.faercol.me"

1
i18n/fr.toml Normal file
View file

@ -0,0 +1 @@
resume = "CV"

View file

@ -2,7 +2,7 @@
<ul class="menu__inner">
{{- $currentPage := . -}}
{{ range .Site.Menus.main -}}
<li><a href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
<li><a href="{{ .URL | relLangURL }}">{{ or (T .Identifier) .Name }}</a></li>
{{- end }}
{{- if .Site.Params.EnableGlobalLanguageMenu }}