mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Specify markdownify or plainify for .Title references
This commit is contained in:
parent
919ecde4ac
commit
a01a70fc91
@ -75,7 +75,7 @@
|
|||||||
← {{ i18n "newer_post" }}
|
← {{ i18n "newer_post" }}
|
||||||
</div>
|
</div>
|
||||||
<div class="prev-post">
|
<div class="prev-post">
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
@ -88,7 +88,7 @@
|
|||||||
{{ i18n "older_post" }} →
|
{{ i18n "older_post" }} →
|
||||||
</div>
|
</div>
|
||||||
<div class="next-post">
|
<div class="next-post">
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title | plainify }}</title>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<title>{{ print .Title " | " .Site.Title }}</title>
|
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "opengraph.html" . }}
|
{{ partial "opengraph.html" . }}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{{ range .AlternativeOutputFormats }}
|
{{ range .AlternativeOutputFormats }}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title | plainify }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .OutputFormats.Get "rss" }}
|
{{ with .OutputFormats.Get "rss" }}
|
||||||
<link rel="start" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title }}">
|
<link rel="start" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title | plainify }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .PrevInSection }}
|
{{ with .PrevInSection }}
|
||||||
<link rel="prev" title="{{ .Title }}" href="{{ .Permalink }}">
|
<link rel="prev" title="{{ .Title | plainify }}" href="{{ .Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .NextInSection }}
|
{{ with .NextInSection }}
|
||||||
<link rel="next" title="{{ .Title }}" href="{{ .Permalink }}">
|
<link rel="next" title="{{ .Title | plainify }}" href="{{ .Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<meta property="og:title" content="{{ .Title }}">
|
<meta property="og:title" content="{{ .Title | plainify }}">
|
||||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<meta itemprop="name" content="{{ .Title }}">
|
<meta itemprop="name" content="{{ .Title | plainify }}">
|
||||||
<meta itemprop="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta itemprop="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
|
|
||||||
{{ $format := "2006-01-02T15:04:05-07:00" }}
|
{{ $format := "2006-01-02T15:04:05-07:00" }}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
{{ with .Site.Home }}
|
{{ with .Site.Home }}
|
||||||
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title }}</a>
|
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
{{ partial "icon.html" "filter" }}
|
{{ partial "icon.html" "filter" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
|
|
||||||
{{ if eq .Kind "term" }}
|
{{ if eq .Kind "term" }}
|
||||||
<span class="rss-link">
|
<span class="rss-link">
|
||||||
|
Loading…
Reference in New Issue
Block a user