Finish creative commons sidebar code.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{{ $Site := .Page.Site }}
|
||||
{{ $Params := $Site.Params }}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
@@ -5,17 +7,17 @@
|
||||
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="Hugo">
|
||||
<meta property="og:url" content="http://example.com/index.html">
|
||||
<meta property="og:url" content="{{ $Site.BaseURL }}">
|
||||
<meta property="og:site_name" content="Hugo">
|
||||
<meta property="og:locale" content="{{ .Site.Language }}">
|
||||
<meta property="article:author" content="John Doe">
|
||||
<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="{{ .Site.Params.favicon.icon }}">
|
||||
<link rel="icon" type="image/x-icon" href="{{ .Site.Params.favicon.icon }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.Params.favicon.small }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.Params.favicon.medium }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.favicon.apple_touch_icon }}">
|
||||
<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" . -}}
|
||||
@@ -24,5 +26,5 @@
|
||||
<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>
|
||||
<title>{{ $Site.Title }}</title>
|
||||
</head>
|
||||
@@ -55,12 +55,12 @@
|
||||
<div class="site-state-item site-state-posts">
|
||||
<a href="/archives/">
|
||||
<span class="site-state-item-count">2</span>
|
||||
<span class="site-state-item-name">日志</span>
|
||||
<span class="site-state-item-name">{{ T "SitePostsTitle" }}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="site-state-item site-state-tags">
|
||||
<span class="site-state-item-count">3</span>
|
||||
<span class="site-state-item-name">标签</span>
|
||||
<span class="site-state-item-name">{{ T "SiteTagsTitle" }}</span>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -84,9 +84,15 @@
|
||||
<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>
|
||||
</div>
|
||||
<div class="cc-license site-overview-item animated" itemprop="license">
|
||||
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" class="cc-opacity" rel="noopener" target="_blank"><img src="https://cdn.jsdelivr.net/npm/@creativecommons/vocabulary@2020.11.3/assets/license_badges/big/by_nc_sa.svg" alt="Creative Commons"></a>
|
||||
</div>
|
||||
{{ $cc := .Site.Params.creativeCommons }}
|
||||
{{ if and $cc $cc.sidebar }}
|
||||
<div class="cc-license site-overview-item animated" itemprop="license">
|
||||
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.{{ substr .Site.Language 0 2 }}" class="cc-opacity" rel="noopener" target="_blank" title="{{ T "CCLinkTitle" }}">
|
||||
<img src="/imgs/cc/{{ $cc.size }}/{{ replace $cc.license "-" "_" }}.svg" alt="{{ T "CCLinkTitle" }}">
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="links-of-blogroll site-overview-item animated">
|
||||
<div class="links-of-blogroll-title"><i class="fa fa-globe fa-fw"></i>
|
||||
Links
|
||||
|
||||
Reference in New Issue
Block a user