Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/blog/li.html2
-rw-r--r--layouts/partials/head/metadata.html2
-rw-r--r--layouts/partials/head/openGraph.html4
-rw-r--r--layouts/partials/home/blog.html2
-rw-r--r--layouts/partials/home/projects.html4
-rw-r--r--layouts/partials/nav.html8
6 files changed, 11 insertions, 11 deletions
diff --git a/layouts/partials/blog/li.html b/layouts/partials/blog/li.html
index db6359b..e72f1cd 100644
--- a/layouts/partials/blog/li.html
+++ b/layouts/partials/blog/li.html
@@ -1,5 +1,5 @@
{{ range .Pages.ByPublishDate.Reverse }}
<li class="post-item">
- <span><a href="{{ .Permalink }}">{{ .Title }}</a></span>{{ if .Params.date }} - <span>{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}</span>{{ end }}
+ <span><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></span>{{ if .Params.date }} - <span>{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}</span>{{ end }}
</li>
{{ end }}
diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html
index ab1aded..7481c1c 100644
--- a/layouts/partials/head/metadata.html
+++ b/layouts/partials/head/metadata.html
@@ -6,7 +6,7 @@
<meta name="referrer" content="no-referrer">
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
<title>
-{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}
+{{ .Title | markdownify }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }}
</title>
<!-- RSS -->
{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}
diff --git a/layouts/partials/head/openGraph.html b/layouts/partials/head/openGraph.html
index d613451..ca043b3 100644
--- a/layouts/partials/head/openGraph.html
+++ b/layouts/partials/head/openGraph.html
@@ -1,8 +1,8 @@
-<meta property="og:title" content="{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}" />
+<meta property="og:title" content="{{ .Title | markdownify }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }}" />
<meta property="og:type" content="website" />
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"/>
<meta property="og:url" content="{{ .Permalink }}"/>
-<meta property="og:site_name" content="{{ .Site.Title }}"/>
+<meta property="og:site_name" content="{{ .Site.Title | markdownify }}"/>
{{ with .Resources.ByType "image" }}
{{ range first 5 (sort . "Params.weight") }}
diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html
index 2c2b55b..0582a20 100644
--- a/layouts/partials/home/blog.html
+++ b/layouts/partials/home/blog.html
@@ -6,7 +6,7 @@
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
{{ range first 1 .Pages.ByPublishDate.Reverse }}
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
- <h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
+ <h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h3>
<div class="markdown">
{{ .Summary }}
{{ if .Truncated }}
diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html
index e5a28a8..0cf6d96 100644
--- a/layouts/partials/home/projects.html
+++ b/layouts/partials/home/projects.html
@@ -3,7 +3,7 @@
<!-- Begin Projects container -->
<div class="container">
<h2 class="title is-2 has-text-centered">
- {{ .Title }}
+ {{ .Title | markdownify }}
</h2>
<div class="section">
<div class="columns is-multiline">
@@ -32,7 +32,7 @@
</div>
<div class="card-content has-text-centered top-pad">
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
- {{ .Title }}
+ {{ .Title | markdownify }}
</a>
</div>
</div>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9f8c722..ec6cf57 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -56,7 +56,7 @@
{{ if eq (os.Stat .File.Dir).Name "projects" }}
<!-- Now for some cool projects -->
{{ if $isHome }}
- <a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title | markdownify }}</a>
{{ else }}
{{ $pageIsInProjects := eq $.Page.Section "project"}}
{{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }}
@@ -72,7 +72,7 @@
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
<!-- Let`s show some blog posts -->
{{ if $isHome }}
- <a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title | markdownify }}</a>
{{ else }}
{{ $pageIsInBlog := eq $.Page.Section "blog"}}
{{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }}
@@ -86,7 +86,7 @@
{{ end }}
{{ end }}
{{ else }}
- <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title | markdownify }}</a>
{{ end }}
{{ end }}
{{ end }}
@@ -94,7 +94,7 @@
{{ with .Site.GetPage "/home" }}
{{ with .Resources.GetMatch "contact.md" }}
- <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title | markdownify }}</a>
{{ end }}
{{ end }}