aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-05-04 01:05:04 +0200
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-05-04 13:34:10 +0200
commitfe7c149811f2e20c055ad0375aff05d29491efb4 (patch)
tree8df0652a35cca0f9c8fcb5fb90648fef2f8415b4 /layouts
parent3de434508e0b609dea1ce8dca94ef1b708e61d61 (diff)
Rebuild the site in Astro
Add licence Update site name in header to match README.md Add missing metadescription, opengraph and link to RSS Update Astro configuration to include sitemap integration with priority and changefreq settings New post
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-heading.html4
-rw-r--r--layouts/_default/baseof.html42
-rw-r--r--layouts/_default/single.html9
-rw-r--r--layouts/blog/list.html12
-rw-r--r--layouts/blog/single.html13
-rw-r--r--layouts/home/list.html29
-rw-r--r--layouts/partials/footer.html9
-rw-r--r--layouts/partials/header.html62
-rw-r--r--layouts/partials/ld/person.html45
-rw-r--r--layouts/partials/ld/post.html26
-rw-r--r--layouts/partials/ld/website.html8
11 files changed, 0 insertions, 259 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
deleted file mode 100644
index dd16877..0000000
--- a/layouts/_default/_markup/render-heading.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<h{{ .Level }} id="{{ .Anchor | safeURL }}">
- <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
- {{ .Text | safeHTML }}
-</h{{ .Level }}> \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
deleted file mode 100644
index 7015d95..0000000
--- a/layouts/_default/baseof.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<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>
-
- <link rel="canonical" href="{{ .Permalink }}">
-
- <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" }}
- {{ $mainStylesheet := resources.Get "css/base.scss" | resources.ToCSS $stylesheetOptions | resources.Minify | resources.Fingerprint }}
- <link rel="stylesheet" href='{{ $mainStylesheet.RelPermalink }}' integrity='{{ $mainStylesheet.Data.Integrity }}' crossorigin='anonymous'>
-
- {{ block "head_extras" . }}
- {{ end }}
-</head>
-
-<body>
- {{ partial "partials/header.html" . }}
-
- <main>
- {{ block "main" . }}
- {{ end }}
- </main>
-
- {{ partial "partials/footer.html" . }}
-
- {{ $script := resources.Get "js/navbar.js" | minify }}
- <script src='{{ $script.RelPermalink }}'></script>
-</body>
-
-</html> \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
deleted file mode 100644
index f87f4b3..0000000
--- a/layouts/_default/single.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-<p class="meta">
- {{ if gt .Date.Unix 0 }}
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05-07:00" }}">{{ .Date.Format "2006-01-02" }}</time>
- {{ end }}
-</p>
-{{ .Content }}
-{{ end }} \ No newline at end of file
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
deleted file mode 100644
index db1cb98..0000000
--- a/layouts/blog/list.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ define "main" }}
- {{- .Content }}
-
- <ul>
- {{ range .Pages.ByLastmod.Reverse }}
- <li>
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05-07:00" }}">{{ .Date.Format "2006-01-02" }}</time>
- <a href="{{ .RelPermalink }}">{{ .Page.Title }}</a>
- </li>
- {{ end }}
- </ul>
-{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
deleted file mode 100644
index 58c2ba5..0000000
--- a/layouts/blog/single.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{ define "head_extras" }}
- {{ partial "ld/post.html" . }}
-{{ end }}
-
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-<p class="meta">
- {{ if gt .Date.Unix 0 }}
- <time datetime="{{ .Date.Format " 2006-01-02T15:04:05-07:00" }}">{{ .Date.Format "2006-01-02" }}</time>
- {{ end }}
-</p>
-{{ .Content }}
-{{ end }} \ No newline at end of file
diff --git a/layouts/home/list.html b/layouts/home/list.html
deleted file mode 100644
index f0316bc..0000000
--- a/layouts/home/list.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{ define "head_extras" }}
-{{ partial "ld/website.html" . }}
-{{ end }}
-
-{{ define "main" }}
-{{- .Content }}
-
-{{ with .Site.GetPage "section" "blog" }}
-<section>
- <h2 id="{{ .RelPermalink }}">
- <a class="anchor" href="{{ .RelPermalink | safeURL }}">#</a>
- Ăšltimas entradas
- </h2>
-
- <ul>
- {{ range .Pages | first 5 }}
-
- <li>
- <time datetime="{{ .PublishDate.Format " 2006-01-02T15:04:05-07:00"}}">{{ .PublishDate.Format "02/01"
- }}</time>
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
- </li>
- {{ end }}
- </ul>
-
- <a href="{{ .RelPermalink }}" class="button">Ver todas las entradas</a>
-</section>
-{{ end }}
-{{ end}} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
deleted file mode 100644
index 0e48d48..0000000
--- a/layouts/partials/footer.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<div role="none" aria-hidden="true" id="main-footer-separator"></div>
-
-<footer>
- <p>
- Copyright &copy; 2023-{{ time.Now.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
deleted file mode 100644
index 5199467..0000000
--- a/layouts/partials/header.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<header class="collapsed">
- <div id="brand">
- <button id="mobile-menu" type="button" aria-controls="nav-pages nav-socials">
- <img src="/icons/menu-2.svg" alt="Menu" width="24" height="24" />
- </button>
-
- <h1>
- <a href="{{ .Site.Home.RelPermalink }}">
- costasdev
- </a>
- </h1>
- </div>
-
- <nav id="nav-pages">
- {{$current := .}}
- {{ range .Site.Home.Pages }}
- <a href="{{ .RelPermalink }}" {{ if eq .RelPermalink $current.RelPermalink }} class="active" {{ end }}>{{ .Title
- }}</a>
- {{ end }}
- </nav>
-
- <nav id="nav-socials">
- <a rel="me" href="https://masto.es/@arielcg" title="Mastodon">
-
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-mastodon" width="32"
- height="32" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
- stroke-linecap="round" stroke-linejoin="round">
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
- <path
- d="M18.648 15.254c-1.816 1.763 -6.648 1.626 -6.648 1.626a18.262 18.262 0 0 1 -3.288 -.256c1.127 1.985 4.12 2.81 8.982 2.475c-1.945 2.013 -13.598 5.257 -13.668 -7.636l-.026 -1.154c0 -3.036 .023 -4.115 1.352 -5.633c1.671 -1.91 6.648 -1.666 6.648 -1.666s4.977 -.243 6.648 1.667c1.329 1.518 1.352 2.597 1.352 5.633s-.456 4.074 -1.352 4.944z" />
- <path
- d="M12 11.204v-2.926c0 -1.258 -.895 -2.278 -2 -2.278s-2 1.02 -2 2.278v4.722m4 -4.722c0 -1.258 .895 -2.278 2 -2.278s2 1.02 2 2.278v4.722" />
- </svg>
-
- </a>
- <a href="https://github.com/arielcostas" title="GitHub">
-
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="32"
- height="32" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
- stroke-linecap="round" stroke-linejoin="round">
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
- <path
- d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
- </svg>
-
- </a>
- <a href="https://linkedin.com/in/ariel-costas" title="LinkedIn">
-
- <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-linkedin" width="32"
- height="32" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
- stroke-linecap="round" stroke-linejoin="round">
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
- <path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" />
- <path d="M8 11l0 5" />
- <path d="M8 8l0 .01" />
- <path d="M12 16l0 -5" />
- <path d="M16 16v-3a2 2 0 0 0 -4 0" />
- </svg>
-
- </a>
- </nav>
-</header> \ No newline at end of file
diff --git a/layouts/partials/ld/person.html b/layouts/partials/ld/person.html
deleted file mode 100644
index f329ae7..0000000
--- a/layouts/partials/ld/person.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<script type="application/ld+json">
-{
- "@context": "http://schema.org",
- "@type": "Person",
- "@id": "https://costas.dev/me",
- "name": "Ariel Costas Guerrero",
- "givenName": "Ariel",
- "familyName": "Costas Guerrero",
- "url": "https://costas.dev/me",
- "nationality": "ES",
- "sameAs": [
- "https://github.com/arielcostas",
- "https://linkedin.com/in/ariel-costas",
- "https://masto.es/@arielcg"
- ],
- "hasCertification": [
- {
- "@type": "Certification",
- "name": "Microsoft Certified: Azure DevOps Engineer Expert",
- "url": "https://learn.microsoft.com/gl-es/users/ariel-costas/transcript/vn32b8j6m2zwyn7",
- "validFrom": "2023-09-15",
- "expires": "2024-09-16",
- "issuedBy": {
- "@context": "http://schema.org",
- "@type": "Organization",
- "name": "Microsoft Corporation",
- "url": "https://microsoft.com"
- }
- },
- {
- "@type": "Certification",
- "name": "Microsoft Certified: Azure Developer Associate",
- "url": "https://learn.microsoft.com/gl-es/users/ariel-costas/transcript/vn32b8j6m2zwyn7",
- "validFrom": "2023-09-15",
- "expires": "2024-09-16",
- "issuedBy": {
- "@context": "http://schema.org",
- "@type": "Organization",
- "name": "Microsoft Corporation",
- "url": "https://microsoft.com"
- }
- }
- ]
-}
-</script> \ No newline at end of file
diff --git a/layouts/partials/ld/post.html b/layouts/partials/ld/post.html
deleted file mode 100644
index 0afa7ad..0000000
--- a/layouts/partials/ld/post.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<script type="application/ld+json">
- {
- "@context": "http://schema.org",
- "@type": "BlogPosting",
- "@id": {{ printf "%s" .Page.Permalink }},
- "url": {{ printf "%s" .Page.Permalink }},
- "headline": "{{ printf "%s" .Title | safeJS }}",
- {{- with .Params.summary -}}
- "description": "{{ printf "%s" . | safeJS }}",
- {{- end }}
- {{ with .Params.date -}}
- "datePublished": {{ time.Format "2006-01-02T15:04:05-07:00" . }},
- {{- end }}
- "author": {
- "@type": "Person",
- "url": "https://www.costas.dev/me",
- "name": "Ariel Costas Guerrero"
- },
- "creator": {
- "@type": "Person",
- "url": "https://www.costas.dev/me",
- "name": "Ariel Costas Guerrero"
- },
- "inLanguage": "{{ with .Params.lang }}{{ . }}{{ else }}es{{ end }}"
- }
-</script> \ No newline at end of file
diff --git a/layouts/partials/ld/website.html b/layouts/partials/ld/website.html
deleted file mode 100644
index 421250f..0000000
--- a/layouts/partials/ld/website.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<script type="application/ld+json">
-{
- "@context": "http://schema.org",
- "@type": "WebSite",
- "id": "https://www.costas.dev/",
- "url": "https://www.costas.dev/"
-}
-</script> \ No newline at end of file