Comencem amb els estils i alguna cosa més.

This commit is contained in:
Enric Pineda 2023-06-15 13:03:52 +02:00
parent efbc4ca71e
commit 6e8d18d4cc
4 changed files with 27 additions and 10 deletions

View file

@ -1,3 +1,9 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
<h1>{{ .Title }}</h1>
{{ range .Pages.ByPublishDate.Reverse }}
<p>
@ -7,3 +13,7 @@
</a>
</p>
{{ end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -5,15 +5,10 @@
{{- partial "header.html" . -}}
<div id="content">
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ range .Pages.ByPublishDate.Reverse }}
<p>
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<a class="summary" href="{{ .RelPermalink }}">
<p>{{ .Summary }}</p>
</a>
</p>
{{ end }}
{{- range (.Paginate ( first 3 .Pages.ByDate )).Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{- end}}
{{ end }}
{{- block "main" . }}{{- end }}
</div>

View file

@ -1 +1,12 @@
<h1>Hola!</h1>
<header>
<div id="logo">El logo</div>
<div id="iconamenu">Hamburguesa</div>
</header>
<nav>
<ul>
<li>El blog</li>
<li>Sala de premsa</li>
<li>Sobre mi</li>
<li>Currículum</li>
</ul>
</nav>

View file

@ -0,0 +1 @@
header {width: 90%; margin: 1em auto 0 auto; display: flex; flex-direction: row; justify-content: space-between;}