From 788c7c621bba53a0bff03441518bc43259a09d3c Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 14 Mar 2019 07:30:22 +0100 Subject: [PATCH] homepage: personnal data * NEW Adds an index layout. * NEW Adds a partial perso layout. * NEW Adds a partial pro layout. * NEW Adds a partial online layout. Signed-off-by: iGor milhit --- layouts/_default/baseof.html | 2 -- layouts/index.html | 15 +++++++++++++++ layouts/partials/online.html | 1 + layouts/partials/perso.html | 14 ++++++++++++++ layouts/partials/pro.html | 23 +++++++++++++++++++++++ 5 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/online.html create mode 100644 layouts/partials/perso.html create mode 100644 layouts/partials/pro.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5f8e2ec..c4963da 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,9 +3,7 @@ {{- partial "head.html" . -}} {{- partial "header.html" . -}} -
{{- block "main" . }}{{- end }} -
{{- partial "footer.html" . -}} diff --git a/layouts/index.html b/layouts/index.html index e69de29..b149f82 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+ {{if not .Site.Params.contactsPriv.hide }} + {{ partial "perso" .}} + {{ end }} + {{if not .Site.Params.contactsPro.hide }} + {{ partial "pro" . }} + {{ end }} + + {{.Content}} + {{ if not .Site.Params.online }} + {{ partial "online" }} + {{ end }} +
+{{ end }} diff --git a/layouts/partials/online.html b/layouts/partials/online.html new file mode 100644 index 0000000..28c7a3d --- /dev/null +++ b/layouts/partials/online.html @@ -0,0 +1 @@ +

Online

diff --git a/layouts/partials/perso.html b/layouts/partials/perso.html new file mode 100644 index 0000000..90c6f16 --- /dev/null +++ b/layouts/partials/perso.html @@ -0,0 +1,14 @@ + diff --git a/layouts/partials/pro.html b/layouts/partials/pro.html new file mode 100644 index 0000000..1aa05cc --- /dev/null +++ b/layouts/partials/pro.html @@ -0,0 +1,23 @@ +