mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 05:36:07 +01:00
74 lines
3.1 KiB
HTML
74 lines
3.1 KiB
HTML
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
|
|
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" class="p-summary"/>
|
|
<meta name="keywords" content="{{ .Site.Params.keywords }}{{ if .Params.tags }}{{ range .Params.tags }}, {{ . }}{{ end }}{{ end }}" />
|
|
<meta name="theme-color" content="{{ .Site.Params.themeColor }}" />
|
|
{{- $modified := .Lastmod -}}
|
|
{{- if .IsHome }}{{ with getenv "HUGO_LAST_UPDATE_TIME" }}{{ $modified = time . }}{{ end }}{{ end -}}
|
|
<meta property="dcterms.modified" content="{{ $modified.Format "2006-01-02T15:04:05Z07:00"}}" />
|
|
<link rel="canonical" href="{{ .Permalink }}" class="u-url"/>
|
|
|
|
{{/* IndieWeb */}}
|
|
<link rel="webmention" href="https://webmention.io/www.byjp.me/webmention">
|
|
<link rel="authorization_endpoint" href="https://indiekit.byjp.me/auth">
|
|
<link rel="token_endpoint" href="https://indiekit.byjp.me/auth/token">
|
|
<link rel="indieauth-metadata" href="https://indiekit.byjp.me/.well-known/oauth-authorization-server">
|
|
<link rel="micropub" href="https://indiekit.byjp.me/micropub">
|
|
{{ block "title" . -}}
|
|
<title>
|
|
{{- if .IsHome -}}
|
|
{{- $.Site.Title -}}
|
|
{{- else -}}
|
|
{{- if .Title -}}{{- .Title -}}{{- else -}}Untitled {{ $.Type | singularize -}}{{- end -}}, {{ $.Site.Title -}}
|
|
{{- end -}}
|
|
</title>
|
|
{{- end }}
|
|
|
|
<!-- CSS -->
|
|
{{/* <link href="/css/flags.css" rel="stylesheet" type="text/css"> */}}
|
|
|
|
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
|
|
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
|
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
|
|
|
{{ range $val := $.Site.Params.customCSS }}
|
|
{{ if gt (len $val) 0 }}
|
|
<link rel="stylesheet" type="text/css" href="{{ $val }}">
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<!-- Icons -->
|
|
{{- partial "favicons.html" . }}
|
|
|
|
{{ template "_internal/schema.html" . }}
|
|
|
|
{{ if isset .Site.Taxonomies "series" }}
|
|
{{ template "_internal/opengraph.html" . }}
|
|
{{ end }}
|
|
|
|
{{ range .Params.categories }}
|
|
<meta property="article:section" content="{{ . }}" />
|
|
{{ end }}
|
|
|
|
{{ if isset .Params "date" }}
|
|
<meta property="article:published_time" content="{{ time .Date }}" />
|
|
{{ end }}
|
|
|
|
<!-- RSS -->
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
{{ end -}}
|
|
|
|
<!-- JSON Feed -->
|
|
{{ if .OutputFormats.Get "json" }}
|
|
<link href="{{ if .OutputFormats.Get "json" }}{{ .Site.BaseURL }}feed.json{{ end }}" rel="alternate"
|
|
type="application/json" title="{{ .Site.Title }}" />
|
|
{{ end }}
|
|
|
|
<!-- Custom head tags -->
|
|
{{- if templates.Exists "partials/extra-head.html" -}}
|
|
{{ partial "extra-head.html" . }}
|
|
{{- end }}
|
|
|