diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 0af1746..014f4d7 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -36,12 +36,6 @@ enableEmoji: true # Custom parameters params: - # Copyright Notice - copyright: © 2020 Copyright. - - # Meta description for your site. This will help the search engines to find your site. - description: Portfolio and personal blog of Jane Doe. - # background image of the landing page background: "images/background.jpg" @@ -62,25 +56,7 @@ params: # specify whether you want to show Table of Contents in reading page enableTOC: true - # specify the list of custom menus that you want to show in the top navbar. - # they will be separated by a divider from the main menus. - customMenus: - - name: Notes - url: https://hossainnotes.netlify.app/docs/example/ - # Provide newsletter configuration. This feature hasn't been implemented yet. # Currently, you can just hide it from the footer. newsletter: enable: true - - # some information about you - author: - name: "Jane Doe" - nickname: "Jane" - image: "images/avatar.png" - # greeting message before your name. it will default to "Hi! I am" if not provided - greeting: "Hi, I am" - # give your some contact information. they will be used in the footer - contactInfo: - email: "janedoe@example.com" - phone: "+0123456789" diff --git a/exampleSite/data/en/author.yaml b/exampleSite/data/en/author.yaml index e66511e..57a704f 100644 --- a/exampleSite/data/en/author.yaml +++ b/exampleSite/data/en/author.yaml @@ -1,6 +1,8 @@ # some information about you name: "Jane Doe" nickname: "Jane" +# greeting message before your name. it will default to "Hi! I am" if not provided +greeting: "Hi, I am" image: "images/avatar.png" # give your some contact information. they will be used in the footer contactInfo: diff --git a/exampleSite/data/en/site.yaml b/exampleSite/data/en/site.yaml new file mode 100644 index 0000000..6512710 --- /dev/null +++ b/exampleSite/data/en/site.yaml @@ -0,0 +1,11 @@ +# Copyright Notice +copyright: © 2020 Copyright. + +# Meta description for your site. This will help the search engines to find your site. +description: Portfolio and personal blog of Jane Doe. + +# specify the list of custom menus that you want to show in the top navbar. +# they will be separated by a divider from the main menus. +customMenus: +- name: Notes + url: https://hossainemruz.gitbook.io/ diff --git a/exampleSite/data/fr/author.yaml b/exampleSite/data/fr/author.yaml index ec8beb5..d55c4f3 100644 --- a/exampleSite/data/fr/author.yaml +++ b/exampleSite/data/fr/author.yaml @@ -1,5 +1,10 @@ +name: "Jane Doe" nickname: "Jane" image: "images/avatar.png" + +# greeting message before your name. it will default to "Hi! I am" if not provided +greeting: "Bonjour, je suis" + # give your some contact information. they will be used in the footer contactInfo: email: "janedoe@example.com" diff --git a/exampleSite/data/fr/site.yaml b/exampleSite/data/fr/site.yaml new file mode 100644 index 0000000..9101f1e --- /dev/null +++ b/exampleSite/data/fr/site.yaml @@ -0,0 +1,11 @@ +# Copyright Notice +copyright: © 2020 Droits d'auteur. + +# Meta description for your site. This will help the search engines to find your site. +description: Portfolio et blog personnel de Jane Doe. + +# specify the list of custom menus that you want to show in the top navbar. +# they will be separated by a divider from the main menus. +customMenus: +- name: Remarques + url: https://hossainemruz.gitbook.io/ diff --git a/i18n/en.toml b/i18n/en.toml index 5e42a76..5422b7a 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,7 +1,4 @@ # More documentation here: https://github.com/nicksnyder/go-i18n -[greeting] -other = "Hello, I am" - [home] other = "Home" @@ -24,4 +21,7 @@ other = "Enter email" other = "We'll never share your email with anyone else." [submit] -other = "Submit" \ No newline at end of file +other = "Submit" + +[hugoAttributionText] +other = "Powered by" diff --git a/i18n/fr.toml b/i18n/fr.toml index 04bedff..1fcdd1d 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -1,7 +1,4 @@ # More documentation here: https://github.com/nicksnyder/go-i18n -[greeting] -other = "Bonjour, je suis" - [home] other = "Accueil" @@ -24,4 +21,7 @@ other = "Entrez une adresse e-mail" other = "Nous ne partagerons jamais votre courriel avec quelqu'un d'autre." [submit] -other = "Envoyer" \ No newline at end of file +other = "Envoyer" + +[hugoAttributionText] +other = "Alimenté par" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5d14a51..90cff75 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,6 +8,14 @@ {{ $sections = (index .Site.Data .Site.Language.Lang).sections }} {{ end }} +{{ $copyrightNotice := "© 2020 Copyright."}} +{{ if (index .Site.Data .Site.Language.Lang).site }} + {{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }} + {{ if $siteConfig.copyright }} + {{ $copyrightNotice = $siteConfig.copyright }} + {{ end }} +{{ end }} +