From 05c37cac8f47621ba21631fefff7b1a94fbb5225 Mon Sep 17 00:00:00 2001 From: mose Date: Tue, 9 Apr 2019 19:23:47 +0200 Subject: [PATCH] un eu plus de bidouillage divers --- config.toml | 29 ++++++++++------- content/_index.md | 9 ++---- content/{page => }/charte.md | 0 content/{page => }/info.md | 0 themes/beautifulhugo/i18n/fr.yaml | 40 ++++++++++++++++++++++++ themes/beautifulhugo/static/css/main.css | 13 ++------ 6 files changed, 61 insertions(+), 30 deletions(-) rename content/{page => }/charte.md (100%) rename content/{page => }/info.md (100%) create mode 100644 themes/beautifulhugo/i18n/fr.yaml diff --git a/config.toml b/config.toml index a928245..eee2c3d 100644 --- a/config.toml +++ b/config.toml @@ -55,39 +55,44 @@ pygmentCodeFences = true # keybase = "username" [[menu.main]] - name = "Blog" + name = "Accueil" url = "" weight = 1 [[menu.main]] - name = "About" - url = "page/about/" - weight = 3 - -[[menu.main]] - identifier = "samples" - name = "Samples" + name = "Charte" + url = "/charte/" weight = 2 [[menu.main]] - parent = "samples" + identifier = "tutos" + name = "Tutos" + weight = 3 + +[[menu.main]] + parent = "tutos" name = "Big Image Sample" url = "post/2017-03-07-bigimg-sample" weight = 1 [[menu.main]] - parent = "samples" + parent = "tutos" name = "Math Sample" url = "post/2017-03-05-math-sample" weight = 2 [[menu.main]] - parent = "samples" + parent = "tutos" name = "Code Sample" url = "post/2016-03-08-code-sample" weight = 3 +[[menu.main]] + name = "Info" + url = "/info/" + weight = 4 + [[menu.main]] name = "Tags" url = "tags" - weight = 3 + weight = 5 diff --git a/content/_index.md b/content/_index.md index 19cd277..8399444 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,9 +1,4 @@ -## Front Page Content +## Bin alors de quoi s'agit-il? -This website is powered by [GitLab Pages](https://about.gitlab.com/features/pages/) -/ [Hugo](https://gohugo.io) and can be built in under 1 minute. -Literally. It uses the `beautifulhugo` theme which supports content on your front page. -Edit `/content/_index.md` to change what appears here. Delete `/content/_index.md` -if you don't want any content here. +C'est l'histoire d'un mec ... -Head over to the [GitLab project](https://gitlab.com/pages/hugo) to get started. diff --git a/content/page/charte.md b/content/charte.md similarity index 100% rename from content/page/charte.md rename to content/charte.md diff --git a/content/page/info.md b/content/info.md similarity index 100% rename from content/page/info.md rename to content/info.md diff --git a/themes/beautifulhugo/i18n/fr.yaml b/themes/beautifulhugo/i18n/fr.yaml new file mode 100644 index 0000000..84b18f4 --- /dev/null +++ b/themes/beautifulhugo/i18n/fr.yaml @@ -0,0 +1,40 @@ +# Content +- id: dateFormat + translation: "2 January 2 2006" +- id: postedOnDate + translation: "Poste le {{ .Count }}" +- id: translationsLabel + translation: "Autres langues: " +- id: translationsSeparator + translation: ", " +- id: readMore + translation: "En lire plus" +- id: olderPosts + translation: "Posts plus anciens" +- id: newerPosts + translation: "Posts plus recents" +- id: previousPost + translation: "Post precedent" +- id: nextPost + translation: "Post suivant" + +# 404 page +- id: pageNotFound + translation: "Whoops, Cette page n'existe pas. (404 error)" + +# Footer +- id: poweredBy # Accepts HTML + translation: 'Hugo v{{ .Hugo.Version }} powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo' + +# Navigation +- id: toggleNavigation + translation: "Plier/deplier navigation" +- id: languageSwitcherLabel + translation: "Language" +- id: gcseLabelShort + translation: "Rechercher" +- id: gcseLabelLong + translation: "Rechercher {{ .Site.Title }}" +- id: gcseClose + translation: "Fermer" + diff --git a/themes/beautifulhugo/static/css/main.css b/themes/beautifulhugo/static/css/main.css index 2ffd999..926a00d 100644 --- a/themes/beautifulhugo/static/css/main.css +++ b/themes/beautifulhugo/static/css/main.css @@ -167,16 +167,10 @@ img { } .navbar-custom .avatar-container .avatar-img-border { width: 100%; - border-radius: 50%; margin-left: -50%; display: inline-block; - box-shadow: 0 0 8px rgba(0, 0, 0, .8); - -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8); - -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8); } .navbar-custom .avatar-container .avatar-img { - width: 100%; - border-radius: 50%; display: block; } @@ -195,14 +189,11 @@ img { } .navbar-custom .avatar-container .avatar-img-border { - width: 100%; - box-shadow: 1px 1px 2px rgba(0, 0, 0, .8); - -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8); - -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8); + width: 80%; } .navbar-custom .avatar-container .avatar-img { - width: 100%; + width: 80%; } }