Add author's avatar image settings.
This commit is contained in:
@@ -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">
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
<div class="site-overview-wrap sidebar-panel">
|
||||
<div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
<img class="site-author-image" itemprop="image" alt="John Doe" src="/imgs/hugo-next-avator.png">
|
||||
<img class="site-author-image" itemprop="image" alt="John Doe" src="{{ .Site.Params.avatar.url }}">
|
||||
<p class="site-author-name" itemprop="name">{{ .Site.Params.author }}</p>
|
||||
<div class="site-description" itemprop="description">{{ .Site.Params.description }}</div>
|
||||
</div>
|
||||
@@ -80,19 +80,7 @@
|
||||
</span>
|
||||
<span class="links-of-author-item">
|
||||
<a href="mailto:yourname@gmail.com" title="E-Mail → mailto:yourname@gmail.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
|
||||
</span>
|
||||
<span class="links-of-author-item">
|
||||
<a href="https://weibo.com/yourname" title="Weibo → https://weibo.com/yourname" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
|
||||
</span>
|
||||
<span class="links-of-author-item">
|
||||
<a href="https://plus.google.com/yourname" title="Google → https://plus.google.com/yourname" rel="noopener" target="_blank"><i class="fab fa-google fa-fw"></i>Google</a>
|
||||
</span>
|
||||
<span class="links-of-author-item">
|
||||
<a href="https://twitter.com/yourname" title="Twitter → https://twitter.com/yourname" rel="noopener" target="_blank"><i class="fab fa-twitter fa-fw"></i>Twitter</a>
|
||||
</span>
|
||||
<span class="links-of-author-item">
|
||||
<a href="https://www.facebook.com/yourname" title="FB Page → https://www.facebook.com/yourname" rel="noopener" target="_blank"><i class="fab fa-facebook fa-fw"></i>FB Page</a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{{ $cc := .Site.Params.creativeCommons }}
|
||||
{{ if and $cc $cc.sidebar }}
|
||||
|
||||
Reference in New Issue
Block a user