aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-heading.html4
-rw-r--r--layouts/_default/baseof.html19
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/_default/list.md1
-rw-r--r--layouts/_default/single.html3
-rw-r--r--layouts/blog/list.html11
-rw-r--r--layouts/partials/footer.html12
-rw-r--r--layouts/partials/header.html1
8 files changed, 54 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..6023eb1
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">
+ <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
+ {{ .Text | safeHTML }}
+</h{{ .Level }}>
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..a4c2f56
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{{ .Page.Title }} - Ariel Costas</title>
+</head>
+
+<body>
+ {{ partial "partials/header.html" . }}
+
+ {{ block "main" . }}
+ {{ end }}
+
+ {{ partial "partials/footer.html" . }}
+</body>
+
+</html> \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..c1339be
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }}
diff --git a/layouts/_default/list.md b/layouts/_default/list.md
new file mode 100644
index 0000000..a4ec683
--- /dev/null
+++ b/layouts/_default/list.md
@@ -0,0 +1 @@
+{{ .Content|markdownify}} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..c1339be
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }}
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
new file mode 100644
index 0000000..2cf4b0b
--- /dev/null
+++ b/layouts/blog/list.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+ {{- .Content }}
+
+ <ul>
+ {{ range .Pages.ByLastmod }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Page.Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..7c568ad
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,12 @@
+<div role="none" aria-hidden="true" id="main-footer-separator"></div>
+
+<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>
+</footer> \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..13b2722
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1 @@
+<h1>CostasDEV</h1> \ No newline at end of file