diff --git a/config.toml b/config.toml index a49917e..7c8bfe6 100644 --- a/config.toml +++ b/config.toml @@ -38,7 +38,7 @@ theme = "hugo-sustain" # weight = 200 # url = "/projects/" # [[menu.main]] -# name = "resume" -# identifier = "resume" +# name = "CV" +# identifier = "CV" # weight = 300 -# url = "/resume/" +# url = "/cv/" diff --git a/content/cv/index.md b/content/cv/index.md new file mode 100644 index 0000000..3cc407c --- /dev/null +++ b/content/cv/index.md @@ -0,0 +1,6 @@ +--- +title: cv +date: 21/12/2020 +--- + +ceci est un test diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..cf9b0fa --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,10 @@ +{{ partial "head" . }} + +
+ {{ partial "header" . }} + {{ block "main" . }} + {{end}} +
+ {{ partial "footer" . }} + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..c6c08ae --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,23 @@ +{{ define "main" }} +
+

Archive

+
+
+ {{ range .Data.Pages.ByPublishDate.Reverse }} +
+
+
+ {{ .Date.Format "January 2, 2006" }} +
+
+ +
+ {{ end }} +
+
+
+{{end}} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..0e2ffd2 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,47 @@ +{{ define "main" }} + {{ if isset .Params "showpagemeta" }} + {{ .Render "projects" }} + {{ else }} +
+
+

+ {{ .Title }} +

+
+
+

+ {{ .Date.Format "January 2, 2006" }} +    + {{ range .Params.tags }} + {{ . }} + {{ end }} +

+
+
+
+
+ {{ .Content }} +
+ +
+
+
+
+ {{ end }} +{{end}} diff --git a/layouts/index.html b/layouts/index.html index ea3d439..1c64431 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,18 +1,12 @@ -{{ partial "head" . }} - -
- {{ partial "header" . }} +{{ define "main" }}
Responsive image
-

I'm {{ .Site.Params.author }}, a Software Engineer.

-

Contact me at @{{ .Site.Params.Social.Twitter }} or by email.

+

Je suis {{ .Site.Params.author }}, un ingénieur logiciel.

+

Contactez moi à @{{ .Site.Params.Social.Twitter }} ou par email.

{{ partial "social.html" . }}
-
- {{ partial "footer" . }} - - +{{end}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..e950934 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + + + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..73cb0c0 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,33 @@ + + + + + + + + {{ if .Site.Params.description }}{{ end }} + + + {{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" -}} + {{- if eq $url "/" -}} + {{- .Site.Title -}} + {{- else -}} + {{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Title -}} {{- end -}} + {{- end -}} + + {{ hugo.Generator }} + + + + {{ `` | safeHTML }} + + + + + + + +