Update theme
This commit is contained in:
commit
3b8b42903e
@ -17,6 +17,10 @@
|
|||||||
margin-inline-end: 1px
|
margin-inline-end: 1px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer span:last-child {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.footer a {
|
.footer a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
border-bottom: 1px solid var(--secondary)
|
border-bottom: 1px solid var(--secondary)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
{{- $pages = $pages | first $limit -}}
|
{{- $pages = $pages | first $limit -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
|
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
|
||||||
{{- if .Site.Params.ShowFullTextinRSS }}
|
{{- if .Site.Params.ShowFullTextinRSS }}
|
||||||
<content>{{ .Content | html }}</content>
|
<content:encoded>{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content:encoded>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</item>
|
</item>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -5,10 +5,11 @@
|
|||||||
<span>© {{ now.Year }} <a href="{{ "" | absLangURL }}">{{- .Site.Params.label.text | default .Site.Title }}</a></span>
|
<span>© {{ now.Year }} <a href="{{ "" | absLangURL }}">{{- .Site.Params.label.text | default .Site.Title }}</a></span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not $.Site.Params.hideCredits }}
|
{{- if not $.Site.Params.hideCredits }}
|
||||||
<span>·</span>
|
<span>
|
||||||
<span>Powered by <a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a></span>
|
Powered by
|
||||||
<span>·</span>
|
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
|
||||||
<span>Theme <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a></span>
|
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
|
||||||
|
</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@ -58,6 +58,16 @@
|
|||||||
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style">
|
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- with .Site.Params.profileMode }}
|
||||||
|
{{- if and .enabled .imageUrl }}
|
||||||
|
<link rel="preload" href="{{ .imageUrl }}" as="image">
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- with .Site.Params.label.icon }}
|
||||||
|
<link rel="preload" href="{{ . }}" as="image">
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- /* Search */}}
|
{{- /* Search */}}
|
||||||
{{- if (eq .Layout `search`) -}}
|
{{- if (eq .Layout `search`) -}}
|
||||||
<link crossorigin="anonymous" rel="preload" as="fetch" href="../index.json">
|
<link crossorigin="anonymous" rel="preload" as="fetch" href="../index.json">
|
||||||
@ -99,7 +109,7 @@
|
|||||||
|
|
||||||
{{- /* RSS */}}
|
{{- /* RSS */}}
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- range .AllTranslations -}}
|
{{- range .AllTranslations -}}
|
||||||
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" />
|
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}" />
|
||||||
|
@ -123,12 +123,12 @@
|
|||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
{{- if ne $lang .Lang }}
|
{{- if ne $lang .Lang }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | default (.Lang | humanize) }}"
|
<a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | default (.Lang | title) }}"
|
||||||
aria-label="{{ .Language.LanguageName | default (.Lang | humanize) }}">
|
aria-label="{{ .Language.LanguageName | default (.Lang | title) }}">
|
||||||
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
||||||
{{- .Language.LanguageName | emojify -}}
|
{{- .Language.LanguageName | emojify -}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- .Lang | humanize -}}
|
{{- .Lang | title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
{{- with .buttons }}
|
{{- with .buttons }}
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
{{- range . }}
|
{{- range . }}
|
||||||
<a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | humanize }}">
|
<a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | title }}">
|
||||||
<span class="button-inner">{{ .name }}</span>
|
<span class="button-inner">{{ .name | title }}</span>
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="social-icons">
|
<div class="social-icons">
|
||||||
{{- range . }}
|
{{- range . }}
|
||||||
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ .name | humanize }}">
|
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ .name | title }}">
|
||||||
{{ partial "svg.html" . }}
|
{{ partial "svg.html" . }}
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -29,14 +29,6 @@
|
|||||||
<meta property="article:section" content="{{ .Section }}" />
|
<meta property="article:section" content="{{ .Section }}" />
|
||||||
{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }}
|
{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }}
|
||||||
{{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format $iso8601 }}" />{{ end }}
|
{{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format $iso8601 }}" />{{ end }}
|
||||||
|
|
||||||
{{- range .Site.Authors }}
|
|
||||||
{{ with .Social.facebook }}<meta property="article:author" content="https://www.facebook.com/{{ . }}" />{{ end }}
|
|
||||||
{{ with .Site.Social.facebook }}<meta property="article:publisher" content="https://www.facebook.com/{{ . }}" />{{ end }}
|
|
||||||
{{- with .Params.tags }}{{ range first 6 . }}
|
|
||||||
<meta property="article:tag" content="{{ . }}" />
|
|
||||||
{{- end }}{{ end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
|
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | humanize -}}",
|
"@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | title -}}",
|
||||||
"name": {{ .Site.Title }},
|
"name": {{ .Site.Title }},
|
||||||
"url": {{ .Site.BaseURL }},
|
"url": {{ .Site.BaseURL }},
|
||||||
"description": {{ .Site.Params.description | plainify | truncate 180 | safeHTML }},
|
"description": {{ .Site.Params.description | plainify | truncate 180 | safeHTML }},
|
||||||
@ -105,7 +105,7 @@
|
|||||||
"@id": {{ .Permalink | safeHTML }}
|
"@id": {{ .Permalink | safeHTML }}
|
||||||
},
|
},
|
||||||
"publisher": {
|
"publisher": {
|
||||||
"@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | humanize -}}",
|
"@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | title -}}",
|
||||||
"name": {{ .Site.Title }},
|
"name": {{ .Site.Title }},
|
||||||
"logo": {
|
"logo": {
|
||||||
"@type": "ImageObject",
|
"@type": "ImageObject",
|
||||||
|
@ -31,8 +31,3 @@
|
|||||||
{{ with .Site.Social.twitter -}}
|
{{ with .Site.Social.twitter -}}
|
||||||
<meta name="twitter:site" content="@{{ . }}"/>
|
<meta name="twitter:site" content="@{{ . }}"/>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ range .Site.Authors }}
|
|
||||||
{{ with .twitter -}}
|
|
||||||
<meta name="twitter:creator" content="@{{ . }}"/>
|
|
||||||
{{ end -}}
|
|
||||||
{{ end -}}
|
|
@ -10,7 +10,7 @@
|
|||||||
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
|
||||||
{{- .Language.LanguageName | emojify -}}
|
{{- .Language.LanguageName | emojify -}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- .Lang | humanize -}}
|
{{- .Lang | title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user