aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAriel Costas <94913521+arielcostas@users.noreply.github.com>2023-11-24 23:51:48 +0100
committerAriel Costas <94913521+arielcostas@users.noreply.github.com>2023-11-24 23:51:48 +0100
commita82f0919d535ba5d86abfbe653bad8ba0fdcf51f (patch)
tree7df1d0bc1898d52bcca159854da48524e95c548d /layouts
parentdf5575079b87aeab1e1f14a6912ff3388f16e50a (diff)
More development
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-heading.html2
-rw-r--r--layouts/_default/baseof.html12
-rw-r--r--layouts/partials/footer.html10
-rw-r--r--layouts/partials/header.html14
4 files changed, 26 insertions, 12 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 6023eb1..dd16877 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,4 +1,4 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
<a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
{{ .Text | safeHTML }}
-</h{{ .Level }}>
+</h{{ .Level }}> \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a4c2f56..91e6152 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,17 +1,23 @@
<!DOCTYPE html>
-<html lang="en">
+<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Page.Title }} - Ariel Costas</title>
+
+ {{ $stylesheetOptions := dict "transpiler" "libsass" }}
+ {{ $stylesheet := resources.Get "css/base.scss" | resources.ToCSS $stylesheetOptions | minify }}
+ <link rel="stylesheet" href='{{ $stylesheet.RelPermalink }}'>
</head>
<body>
{{ partial "partials/header.html" . }}
- {{ block "main" . }}
- {{ end }}
+ <main>
+ {{ block "main" . }}
+ {{ end }}
+ </main>
{{ partial "partials/footer.html" . }}
</body>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 7c568ad..8ad681e 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,11 +2,7 @@
<footer>
<p>
- Copyright (C) {{ .Date.Year }} Ariel Costas Guerrero.
- Tots els drets reservats.
-
- Tots els continguts de aquest web estan sota llicència CC BY-SA 4.0,
- per tant, es poden compartir i modificar, sempre que es reconegui la
- autoria i es mantingui la mateixa llicència.
- </span>
+ Copyright &copy; {{ .Date.Year }} Ariel Costas Guerrero. Todos los derechos reservados.<br>
+ Cedido bajo licencia <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.es">CC BY-SA 4.0</a> salvo que se indique lo contrario.
+ </p>
</footer> \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 13b2722..55002b1 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1 +1,13 @@
-<h1>CostasDEV</h1> \ No newline at end of file
+<header>
+ <h1>
+ <a href="{{ .Site.Home.RelPermalink }}">
+ CostasDEV
+ </a>
+ </h1>
+
+ <nav>
+ {{ range .Site.Home.Pages }}
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ {{ end }}
+ </nav>
+</header> \ No newline at end of file