Add author's avatar image settings.

This commit is contained in:
凡梦星尘
2022-05-06 22:42:09 +08:00
parent a1393183b9
commit bb482faeec
7 changed files with 44 additions and 48 deletions

View File

@@ -1,30 +1,9 @@
{{ $Site := .Page.Site }}
{{ $Params := $Site.Params }}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="generator" content="Hugo v{{ hugo.Version }}">
<meta property="og:type" content="website">
<meta property="og:title" content="Hugo">
<meta property="og:url" content="{{ .Site.BaseURL }}">
<meta property="og:site_name" content="Hugo">
{{/*<meta property="og:locale" content="{{ .langCode }}">*/}}
<meta property="article:author" content="{{ .Site.Params.author }}">
<meta property="og:type" content="website">
<meta property="og:title" content="Hugo">
<meta property="og:url" content="{{ $Site.BaseURL }}">
<meta property="og:site_name" content="Hugo">
<meta property="og:locale" content="{{ .langCode }}">
<meta property="article:author" content="{{ $Params.author }}">
<link rel="canonical" href="{{ $Site.BaseURL }}">
<link rel="shortcut icon" type="image/x-icon" href="{{ $Params.favicon.icon }}">
<link rel="icon" type="image/x-icon" href="{{ $Params.favicon.icon }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ $Params.favicon.small }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ $Params.favicon.medium }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ $Params.favicon.appleTouchIcon }}">
<link rel="stylesheet" href="/css/main.css">
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.min.css" integrity="sha256-DfWjNxDkM94fVBWx1H5BMMp0Zq7luBlV8QRcSES7s+0=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<title>{{ $Site.Title }}</title>
</head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.min.css" integrity="sha256-DfWjNxDkM94fVBWx1H5BMMp0Zq7luBlV8QRcSES7s+0=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">