mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
- layouts/partials/ → layouts/_partials/ - layouts/shortcodes/ → layouts/_shortcodes/ - layouts/_default/_markup/ → layouts/_markup/ - layouts/_default/*.html → layouts/*.html (flatten _default/) - layouts/index.html → layouts/home.html - layouts/index.*.json/txt → layouts/home.*.json/txt - layouts/_default/index.llms.txt → layouts/home.llms.txt - layouts/tag/ → layouts/tags/ (match /tags/ URL path)
65 lines
2.1 KiB
HTML
65 lines
2.1 KiB
HTML
{{ $description := partial "utils/description.html" . }}
|
|
{{ if .IsHome }}
|
|
<title>{{ site.Title }}</title>
|
|
{{ else }}
|
|
<title>
|
|
{{ printf "%s | %s" .LinkTitle site.Title }}
|
|
</title>
|
|
{{ end }}
|
|
{{ if or (eq .Params.sitemap false) (not hugo.IsProduction) }}
|
|
<meta name="robots" content="noindex" />
|
|
{{ end }}
|
|
<meta name="description" content="{{ $description }}" />
|
|
<meta
|
|
name="keywords"
|
|
content="{{- delimit (partialCached "utils/keywords.html" . .) ", " -}}"
|
|
/>
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
|
|
<!-- favicon -->
|
|
<link rel="icon" href="/assets/images/favicon-32x32.png" sizes="32x32" />
|
|
<link rel="icon" href="/assets/images/favicon-192x192.png" sizes="192x192" />
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<meta name="theme-color" content="#2496ed" />
|
|
|
|
<!-- SEO -->
|
|
<meta name="twitter:title" itemprop="title name" content="{{ .LinkTitle }}" />
|
|
<meta
|
|
name="twitter:description"
|
|
property="og:description"
|
|
itemprop="description"
|
|
content="{{ $description }}"
|
|
/>
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:domain" content="{{ site.BaseURL }}" />
|
|
<meta name="twitter:site" content="@docker_docs" />
|
|
<meta name="twitter:url" content="https://twitter.com/docker_docs" />
|
|
<meta
|
|
name="twitter:image:src"
|
|
content="{{ (resources.Get "images/thumbnail.webp").Permalink }}"
|
|
/>
|
|
<meta name="twitter:image:alt" content="Docker Documentation" />
|
|
<meta property="og:title" content="{{ .LinkTitle }}" />
|
|
<meta property="og:description" content="{{ $description }}" />
|
|
<meta property="og:type" content="website" />
|
|
<meta
|
|
property="og:updated_time"
|
|
itemprop="dateUpdated"
|
|
content="{{ .Lastmod }}"
|
|
/>
|
|
<meta
|
|
property="og:image"
|
|
itemprop="image primaryImageOfPage"
|
|
content="{{ (resources.Get "images/thumbnail.webp").Permalink }}"
|
|
/>
|
|
<meta property="og:locale" content="en_US" />
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
<meta property="og:site_name" content="Docker Documentation" />
|
|
<meta
|
|
property="article:published_time"
|
|
itemprop="datePublished"
|
|
content="{{ .PublishDate | default .Lastmod }}"
|
|
/>
|
|
{{ partial "schema.html" . }}
|