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" 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,34 +28,27 @@ 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"
[languages]
[languages.en]
contentDir = "content/en"
[languages.fr]
contentDir = "content/fr"
title = "Mon blog"
[[menu.main]]
identifier = "blog"
name = "Blog"
url = "/posts"
[[params.social]] [[params.social]]
name = "gitea" name = "gitea"
@ -56,3 +65,25 @@ paginate = 10
[[params.social]] [[params.social]]
name = "email" name = "email"
url = "mailto:contact@faercol.me" 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"
[languages.fr.params]
homeSubtitle = "Site personnel et blog technique"
[menu]
[[menu.main]]
identifier = "blog"
name = "Blog"
url = "/posts"
[[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"> <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 }}