diff --git a/content/index.md b/content/index.md deleted file mode 100644 index 1803e7d..0000000 --- a/content/index.md +++ /dev/null @@ -1,3 +0,0 @@ -##Welcome to Marcus World! - -This is an attempt at making the index file. If this works we'll put some images. diff --git a/example.html b/example.html new file mode 100644 index 0000000..0a72db7 --- /dev/null +++ b/example.html @@ -0,0 +1,17 @@ +{{ with .Params.hide_example }} + +{{ else }} +
+ In the config.yaml or config.toml file you would have something like +

+ [params] + name = 'Simba' + + Then in the partial you use the variables with brackets like this + {{ .Site.Params.name }} or like {{ now.Year }} + + Check out this guide + https://cloudcannon.com/tutorials/hugo-beginner-tutorial/hugo-templating-basics/ +

+
+{{ end }} diff --git a/hugo.toml b/hugo.toml index e6fccaa..1b926f2 100644 --- a/hugo.toml +++ b/hugo.toml @@ -49,6 +49,12 @@ preserveTaxonomyNames = true # Text to go before copyright information prefix= "[FSF 2016](https://www.fsf.org/about/) [GNOME Lover](https://www.gnome.org/friends/) [GPG Key](https://keys.openpgp.org/vks/v1/by-fingerprint/034C591E11591CC00ADCF3DA7DC7E4FF11629043)" +[params.socials] + mastodon = "https://tilde.zone/@mnw" + sdf-pixelfed = "https://pixelfed.sdf.org/mnw" + pixelfed = "https://pixelfed.social/mnw" + xmpp = "xmpp:mnw@jabber.sdf.org" + [menu] # This displays buttons in the navbar to access your contents [[menu.main]] diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..3008e7b --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,23 @@ +[home] +other = "Home" + +[posts] +other = "Posts" + +[postslist] +other = "Blog posts" + +[categories] +other = "Categories" + +[socials] +other = "Socials" + +[tags] +other = "Tags" + +[backtohome] +other = "Back to Home" + +[builton] +other = "Built on" diff --git a/i18n/fr.toml b/i18n/fr.toml new file mode 100644 index 0000000..7388e89 --- /dev/null +++ b/i18n/fr.toml @@ -0,0 +1,23 @@ +[home] +other = "Accueil" + +[posts] +other = "Articles" + +[postslist] +other = "Articles de blog" + +[categories] +other = "Catégories" + +[socials] +other = "Résea Social" + +[tags] +other = "Etiquettes" + +[backtohome] +other = "Retour à l'accueil" + +[builton] +other = "Propulsé par" diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..de704a3 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,45 @@ +{{ define "main" }} + + + +
+
+

{{ .Site.Params.mainpagesubtitle }}

+

+

{{ .Site.Params.mainpagedesc }}

+

+
+

+

{{ i18n "postslist" }}

+ +
+ +
+

{{ i18n "categories" }}

+ +

+

{{ i18n "tags" }}

+ +

+

{{ i18n "socials" }}

+ +
+
+ +{{ end }} diff --git a/layouts/partials/socials.html b/layouts/partials/socials.html new file mode 100644 index 0000000..84fc2ab --- /dev/null +++ b/layouts/partials/socials.html @@ -0,0 +1,5 @@ +{{ range $key, $value := .Site.Params.socials }} +
  • + {{ $key }} +
  • +{{ end }}