From 0b7d5cab2caf22a99627c1272d38f8fb97ba2f44 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 11 May 2021 10:01:24 +0200 Subject: [PATCH] better directory structure --- .gitignore | 1 + {blog/archetypes => archetypes}/default.md | 0 blog/config.yaml | 9 ----- config.yaml | 28 +++++++++++++++ content/_index.md | 7 ++++ content/posts/introduction/index.md | 10 ++++++ data/months_fr.yaml | 12 +++++++ layouts/_default/baseof.html | 20 +++++++++++ layouts/_default/list.html | 19 ++++++++++ layouts/_default/single.html | 42 ++++++++++++++++++++++ layouts/index.html | 19 ++++++++++ 11 files changed, 158 insertions(+), 9 deletions(-) create mode 100644 .gitignore rename {blog/archetypes => archetypes}/default.md (100%) delete mode 100644 blog/config.yaml create mode 100644 config.yaml create mode 100644 content/_index.md create mode 100644 content/posts/introduction/index.md create mode 100644 data/months_fr.yaml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00e1475 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +ressources diff --git a/blog/archetypes/default.md b/archetypes/default.md similarity index 100% rename from blog/archetypes/default.md rename to archetypes/default.md diff --git a/blog/config.yaml b/blog/config.yaml deleted file mode 100644 index 0a8508d..0000000 --- a/blog/config.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Global options -baseURL: "https://blog.chosto.me" -defaultContentLanguage: "fr" -enableEmoji: true -enableGitInfo: true -languageCode: "fr-fr" -languageName: "Français" -title: "Billets à la mer" -watch: true diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..01893bc --- /dev/null +++ b/config.yaml @@ -0,0 +1,28 @@ +# Global options +baseURL: https://blog.chosto.me +defaultContentLanguage: fr +enableEmoji: true +enableGitInfo: true +footnoteReturnLinkContents: ↩ +languageCode: fr-fr +languageName: Français +watch: true + +# All pages under posts section will have this link structure +permalinks: + posts: /:year/:month/:day/:title/ + +# Disable all privacy unfriendly stuff +privacy: + disqus: + disable: true + googleAnalytics: + disable: true + instagram: + disable: true + twitter: + disable: true + vimeo: + disable: true + youtube: + disable: true diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..bbcd79a --- /dev/null +++ b/content/_index.md @@ -0,0 +1,7 @@ +--- +title: Billets à la mer +subtitle: et oui +--- + +Test +Salut les potes diff --git a/content/posts/introduction/index.md b/content/posts/introduction/index.md new file mode 100644 index 0000000..b9eff88 --- /dev/null +++ b/content/posts/introduction/index.md @@ -0,0 +1,10 @@ +--- +categories: + - Technologie + - Réflexions +tags: + - smartphone + - addiction +title: Ma première page +date: "2021-05-10" +--- diff --git a/data/months_fr.yaml b/data/months_fr.yaml new file mode 100644 index 0000000..21c9088 --- /dev/null +++ b/data/months_fr.yaml @@ -0,0 +1,12 @@ +1: "janvier" +2: "février" +3: "mars" +4: "avril" +5: "mai" +6: "juin" +7: "juillet" +8: "août" +9: "septembre" +10: "octobre" +11: "novembre" +12: "décembre" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..d044c61 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,20 @@ + + + + + + {{ block "title" . }} + {{ .Site.Title }} + {{ end }} + + + + + {{ block "main" . }} + + {{ end }} + {{ block "footer" . }} + + {{ end }} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e6496eb --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+
+
+

{{.Title}}

+
+ + {{.Content}} +
+ +
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..0e44c18 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,42 @@ +{{ define "main" }} +
+

{{ .Title }}

+
+
+ {{ .Content }} +
+
+
+ +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..7f39974 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+
+

{{.Title}}

+ {{ with .Params.subtitle }} + {{.}} + {{ end }} +
+
+ + {{.Content}} +
+
+ {{ range first 10 .Site.RegularPages }} + {{ .Render "summary"}} + {{ end }} +
+
+{{ end }}