blog/themes/farallon/layouts/partials/head.html

27 lines
1.6 KiB
HTML
Raw Normal View History

2024-05-06 12:00:46 +08:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description"
content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else if .IsPage }}{{ .Params.description}}{{ else }}{{ .Description }}{{ end }}" />
{{ $styles := resources.Get "scss/app.scss" | toCSS | minify | fingerprint }}
{{ if .IsPage }}
<meta property="og:title" content="{{ .Page.Title }}">
<meta property="og:url" content="{{ .Page.Permalink }}">
<meta property="og:image" content="{{ .Params.cover}}">
<meta property="og:description" content="{{ .Params.description}}">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image:src" content="{{ .Params.cover}}">
<meta name="twitter:title" content="{{ .Page.Title }}">
<meta name="twitter:description" content="{{ .Params.description}}">
{{ end }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
{{ $favicon := resources.Get "images/favicon.png" }}
<link type="image/vnd.microsoft.icon" href="{{ $favicon.RelPermalink }}" rel="shortcut icon">
{{ if .OutputFormats.Get "RSS" }}
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
2024-05-06 13:39:29 +08:00
{{ end }}
<link rel="stylesheet" href="https://cdnjs.sgcd.net/lxgw-wenkai-screen-webfont/lxgwwenkaigbscreen.css" />