fix the warnning

This commit is contained in:
starsareintherose 2021-12-29 14:55:41 +00:00
parent 16d7aef1eb
commit cd077e41b5
4 changed files with 59 additions and 60 deletions

View file

@ -8,4 +8,4 @@
</p>
</div>
<div class="rss-right"><a href="{{ .RSSLink }}"><i class="fa fa-rss-square fa-lg"></i></a></div>
<div class="rss-right"><a href="{{ .RelPermalink }}"><i class="fa fa-rss-square fa-lg"></i></a></div>

View file

@ -5,7 +5,7 @@
</span>
</a>
<!--
<a data-url="{{ .Permalink }}" data-id="{{ .UniqueID }}" class="article-share-link">
<a data-url="{{ .Permalink }}" data-id="{{ with .File }}{{ .UniqueID }}{{ end }}" class="article-share-link">
{{with .Site.Data.l10n.articles.share}}{{.}}{{end}}
</a>
-->

View file

@ -1,17 +1,15 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<head>
<!--<title>{{ .Title }} &middot; {{ .Site.Title }}</title>-->
<title>{{ .Title }}</title>
{{ .Hugo.Generator }}
{{ hugo.Generator }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Site.Params.site_description }}<meta name="description" content="{{ . }}">{{ end }}
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
<link rel="icon" href="{{ .Site.BaseURL }}favicon.ico">
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
@ -60,6 +58,7 @@
<!-- highlightjs -->
<!--<script src="{{ .Site.BaseURL }}bower_components/highlightjs/highlight.pack.min.js"></script>-->
</head>
<body>
<div class="container">
</head>
<body>
<div class="container">

View file

@ -27,7 +27,7 @@
<table class="contact-list">
<tr>
{{ partial "social" . }}
<td><a href="{{ .RSSLink }}" target="_blank" title="RSS"><i class="fa fa-rss"></i></a></td>
<td><a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" target="_blank" title="RSS"><i class="fa fa-rss"></i></a></td>
</tr>
</table>
</div>