From 6e8d18d4cc7d8c2ba5920289c0ab646245e205c6 Mon Sep 17 00:00:00 2001 From: Enric Pineda Date: Thu, 15 Jun 2023 13:03:52 +0200 Subject: [PATCH] =?UTF-8?q?Comencem=20amb=20els=20estils=20i=20alguna=20co?= =?UTF-8?q?sa=20m=C3=A9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/pinitema/layouts/_default/list.html | 10 ++++++++++ themes/pinitema/layouts/index.html | 13 ++++--------- themes/pinitema/layouts/partials/header.html | 13 ++++++++++++- themes/pinitema/static/css/style.css | 1 + 4 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 themes/pinitema/static/css/style.css diff --git a/themes/pinitema/layouts/_default/list.html b/themes/pinitema/layouts/_default/list.html index 6ebf454..7f20de4 100644 --- a/themes/pinitema/layouts/_default/list.html +++ b/themes/pinitema/layouts/_default/list.html @@ -1,3 +1,9 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +

{{ .Title }}

{{ range .Pages.ByPublishDate.Reverse }}

@@ -7,3 +13,7 @@

{{ end }} +
+{{- partial "footer.html" . -}} + + \ No newline at end of file diff --git a/themes/pinitema/layouts/index.html b/themes/pinitema/layouts/index.html index 083680c..393d734 100644 --- a/themes/pinitema/layouts/index.html +++ b/themes/pinitema/layouts/index.html @@ -5,15 +5,10 @@ {{- partial "header.html" . -}}
{{ define "main" }} -

{{ .Title }}

-{{ range .Pages.ByPublishDate.Reverse }} -

-

{{ .Title }}

- -

{{ .Summary }}

-
-

-{{ end }} + + {{- range (.Paginate ( first 3 .Pages.ByDate )).Pages }} +
  • {{ .Title }}
  • + {{- end}} {{ end }} {{- block "main" . }}{{- end }}
    diff --git a/themes/pinitema/layouts/partials/header.html b/themes/pinitema/layouts/partials/header.html index 4f93b15..336c284 100644 --- a/themes/pinitema/layouts/partials/header.html +++ b/themes/pinitema/layouts/partials/header.html @@ -1 +1,12 @@ -

    Hola!

    \ No newline at end of file +
    + +
    Hamburguesa
    +
    + \ No newline at end of file diff --git a/themes/pinitema/static/css/style.css b/themes/pinitema/static/css/style.css new file mode 100644 index 0000000..0aafb48 --- /dev/null +++ b/themes/pinitema/static/css/style.css @@ -0,0 +1 @@ +header {width: 90%; margin: 1em auto 0 auto; display: flex; flex-direction: row; justify-content: space-between;} \ No newline at end of file