aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Costas <94913521+arielcostas@users.noreply.github.com>2023-12-03 20:40:20 +0100
committerAriel Costas <94913521+arielcostas@users.noreply.github.com>2023-12-03 20:40:20 +0100
commit809f8858a6dc00d65e97c4b40fc3227bb346914e (patch)
tree14b416fd0e3c9001f9db8298895858ad263ee9ba
parent49e70b2b275c46b4c581657e035dbbbbffd4afea (diff)
Add OpenGraph
-rw-r--r--layouts/_default/baseof.html9
-rw-r--r--layouts/blog/list.html2
-rw-r--r--layouts/home/list.html2
-rw-r--r--layouts/partials/header.html2
4 files changed, 12 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 91e6152..115b754 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -2,10 +2,19 @@
<html lang="es">
<head>
+ <base href="{{ .Site.BaseURL }}">
+
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Page.Title }} - Ariel Costas</title>
+ <meta name="description" content="{{ .Page.Description }}">
+
+ <meta property="og:title" content="{{ .Page.Title }} - Ariel Costas">
+ <meta property="og:description" content="{{ .Page.Description }}">
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="{{ .Permalink }}">
+
{{ $stylesheetOptions := dict "transpiler" "libsass" }}
{{ $stylesheet := resources.Get "css/base.scss" | resources.ToCSS $stylesheetOptions | minify }}
<link rel="stylesheet" href='{{ $stylesheet.RelPermalink }}'>
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index 627dd4a..055f302 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -5,7 +5,7 @@
{{ range .Pages.ByLastmod }}
<li>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05-07:00" }}">{{ .Date.Format "2006-01-02" }}</time>
- <a href="{{ .Permalink }}">{{ .Page.Title }}</a>
+ <a href="{{ .RelPermalink }}">{{ .Page.Title }}</a>
</li>
{{ end }}
</ul>
diff --git a/layouts/home/list.html b/layouts/home/list.html
index 95f13a6..af3dbeb 100644
--- a/layouts/home/list.html
+++ b/layouts/home/list.html
@@ -10,7 +10,7 @@
<ul>
{{ range .Pages }}
- <li>{{ .PublishDate.Format "02/01" }} <a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ <li>{{ .PublishDate.Format "02/01" }} <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 55002b1..9e51d9b 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -7,7 +7,7 @@
<nav>
{{ range .Site.Home.Pages }}
- <a href="{{ .Permalink }}">{{ .Title }}</a>
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</nav>
</header> \ No newline at end of file