mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-03 04:18:57 -05:00
some cleanup around hugo + webpack manifest
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
{{ partial "head/meta" . -}}
|
||||
{{ partial "head/open-graph" . -}}
|
||||
{{ partialCached "head/mobile" . -}}
|
||||
{{ partial "head/canonical" . -}}
|
||||
{{ partialCached "head/preload" . -}}
|
||||
{{ partial "head/styles" . -}}
|
||||
{{ partialCached "head/favicons" (dict "pngSizes" "192 48 32 16" "icoSizes" "16 32" "manifest" .Site.Data.manifest) -}}
|
||||
{{ partialCached "head/feeds" . -}}
|
||||
{{ partial "head/canonical" . -}}
|
||||
{{ partialCached "head/favicons" . -}}
|
||||
{{ partialCached "head/misc" . -}}
|
||||
{{ partial "head/schema" . -}}
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
{{ if .Site.Params.social.webmentionIO }}
|
||||
<link rel="webmention" href="{{ "/api/mention/" | absURL }}">
|
||||
<link rel="pingback" href="{{ "/api/ping/" | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="canonical" href="{{ print .Site.Params.baseURL .Permalink }}">
|
||||
|
||||
<link rel="author" href="{{ "humans.txt" | absURL }}">
|
||||
<link rel="pgpkey" href="{{ "pubkey.asc" | absURL }}" type="application/pgp-keys">
|
||||
<link rel="alternate" href="{{ "feed.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }} (RSS)">
|
||||
<link rel="alternate" href="{{ "feed.atom" | absURL }}" type="application/atom+xml" title="{{ .Site.Title }} (Atom)">
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{{- $s := slice -}}
|
||||
{{- range (split .icoSizes " ") }}{{ $s = $s | append (printf "%vx%v" . .) }}{{ end -}}
|
||||
{{- $faviconIco := index .manifest "images/favicon.ico" }}
|
||||
<link rel="icon" href="{{ $faviconIco.src | absURL }}"> <!-- sizes="{{ delimit $s " " }}" -->
|
||||
{{ with .Site.Data.manifest }}
|
||||
{{- with index . "images/favicon.ico" }}
|
||||
<link rel="icon" href="{{ .src | absURL }}">
|
||||
{{- end }}
|
||||
|
||||
{{- $faviconSvg := index .manifest "images/favicon.svg" }}
|
||||
<link rel="icon" href="{{ $faviconSvg.src | absURL }}" type="image/svg+xml">
|
||||
{{- with index . "images/favicon.svg" }}
|
||||
<link rel="icon" href="{{ .src | absURL }}" type="image/svg+xml">
|
||||
{{- end -}}
|
||||
|
||||
{{- $appleIcon := index .manifest "images/apple-touch-icon.png" }}
|
||||
<link rel="apple-touch-icon" href="{{ $appleIcon.src | absURL }}" sizes="180x180">
|
||||
{{- with index . "images/apple-touch-icon.png" }}
|
||||
<link rel="apple-touch-icon" href="{{ .src | absURL }}" sizes="180x180">
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
||||
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
<link rel="alternate" href="{{ "feed.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }} (RSS)">
|
||||
<link rel="alternate" href="{{ "feed.atom" | absURL }}" type="application/atom+xml" title="{{ .Site.Title }} (Atom)">
|
||||
7
layouts/partials/head/misc.html
Normal file
7
layouts/partials/head/misc.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ if .Site.Params.social.webmentionIO }}
|
||||
<link rel="webmention" href="{{ "/api/mention/" | absURL }}">
|
||||
<link rel="pingback" href="{{ "/api/ping/" | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="author" href="{{ "humans.txt" | absURL }}">
|
||||
<link rel="pgpkey" href="{{ "pubkey.asc" | absURL }}" type="application/pgp-keys">
|
||||
Reference in New Issue
Block a user