diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-04-06 19:42:00 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-04-06 19:42:00 +0200 |
| commit | 56faea4956d0dbf05ad75bbafca81aa90d09771d (patch) | |
| tree | 9e6eea64635685175fe4507b190fb9e3c02e7b82 /layouts | |
| parent | 9ec92dfef9c73992e849279c62ced2f41a7e43b9 (diff) | |
Add ontology
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 6 | ||||
| -rw-r--r-- | layouts/_default/list.md | 1 | ||||
| -rw-r--r-- | layouts/blog/single.html | 13 | ||||
| -rw-r--r-- | layouts/home/list.html | 32 | ||||
| -rw-r--r-- | layouts/partials/ld/person.html | 45 | ||||
| -rw-r--r-- | layouts/partials/ld/post.html | 26 | ||||
| -rw-r--r-- | layouts/partials/ld/website.html | 8 |
7 files changed, 114 insertions, 17 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 40f8a22..b06b789 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,13 +17,15 @@ <meta property="og:type" content="website"> <meta property="og:url" content="{{ .Permalink }}"> - {{ $stylesheetOptions := dict "transpiler" "libsass" }} + {{- $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'> - {{ $darkStylesheet := resources.Get "css/dark.scss" | resources.ToCSS $stylesheetOptions | resources.Minify | resources.Fingerprint }} + {{- $darkStylesheet := resources.Get "css/dark.scss" | resources.ToCSS $stylesheetOptions | resources.Minify | resources.Fingerprint }} <link rel="stylesheet" href='{{ $darkStylesheet.RelPermalink }}' integrity='{{ $darkStylesheet.Data.Integrity }}' crossorigin='anonymous' media="(prefers-color-scheme: dark)"> + {{ block "head_extras" . }} + {{ end }} </head> <body> diff --git a/layouts/_default/list.md b/layouts/_default/list.md deleted file mode 100644 index a4ec683..0000000 --- a/layouts/_default/list.md +++ /dev/null @@ -1 +0,0 @@ -{{ .Content|markdownify}}
\ No newline at end of file diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..58c2ba5 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,13 @@ +{{ 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 index 4389e28..b2c5925 100644 --- a/layouts/home/list.html +++ b/layouts/home/list.html @@ -1,20 +1,24 @@ +{{ define "head_extras" }} + {{ partial "ld/website.html" . }} +{{ end }} + {{ define "main" }} -{{- .Content }} + {{- .Content }} -{{ with .Site.GetPage "section" "blog" }} -<h2 id="{{ .RelPermalink }}"> - <a class="anchor" href="{{ .RelPermalink | safeURL }}">#</a> - Últimas entradas -</h2> + {{ with .Site.GetPage "section" "blog" }} + <h2 id="{{ .RelPermalink }}"> + <a class="anchor" href="{{ .RelPermalink | safeURL }}">#</a> + Últimas entradas + </h2> -<ul> - {{ range .Pages }} + <ul> + {{ range .Pages }} - <li> - <time datetime="{{ .PublishDate.Format " 2006-01-02T15:04:05-07:00"}}">{{ .PublishDate.Format "02/01" }}</time> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - </li> + <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> {{ end }} -</ul> -{{ end }} {{ end}}
\ No newline at end of file diff --git a/layouts/partials/ld/person.html b/layouts/partials/ld/person.html new file mode 100644 index 0000000..f329ae7 --- /dev/null +++ b/layouts/partials/ld/person.html @@ -0,0 +1,45 @@ +<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 new file mode 100644 index 0000000..c4d0ae4 --- /dev/null +++ b/layouts/partials/ld/post.html @@ -0,0 +1,26 @@ +<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 new file mode 100644 index 0000000..2abab83 --- /dev/null +++ b/layouts/partials/ld/website.html @@ -0,0 +1,8 @@ +<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 |
