added support for the meta description tag
This commit is contained in:
parent
629c7196a3
commit
f4cd8429fe
4 changed files with 13 additions and 5 deletions
|
@ -75,6 +75,9 @@ enableEmoji: true
|
||||||
|
|
||||||
# Custom parameters
|
# Custom parameters
|
||||||
params:
|
params:
|
||||||
|
# description
|
||||||
|
description: Theme for a personal portfolio with minimalist design and responsiveness
|
||||||
|
|
||||||
# copyright
|
# copyright
|
||||||
copyright: © 2020 Copyright.
|
copyright: © 2020 Copyright.
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@ enableEmoji: true
|
||||||
|
|
||||||
# Custom parameters
|
# Custom parameters
|
||||||
params:
|
params:
|
||||||
|
# description
|
||||||
|
description: this is an example site for the Toha theme
|
||||||
|
|
||||||
# copyright
|
# copyright
|
||||||
copyright: © 2020 Copyright.
|
copyright: © 2020 Copyright.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{ define "header" }}
|
{{ define "header" }}
|
||||||
|
<meta name="description" content="{{.Description}}" />
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/atom-one-dark.min.css"
|
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/atom-one-dark.min.css"
|
||||||
|
@ -36,7 +37,7 @@
|
||||||
<!--Hero Area-->
|
<!--Hero Area-->
|
||||||
<div class="hero-area col-sm-12" id="hero-area" style='background-image: url({{ strings.TrimSuffix "/" .Site.BaseURL }}{{ partial "helpers/get-hero.html" . }});'>
|
<div class="hero-area col-sm-12" id="hero-area" style='background-image: url({{ strings.TrimSuffix "/" .Site.BaseURL }}{{ partial "helpers/get-hero.html" . }});'>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Content Start-->
|
<!--Content Start-->
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="author-profile ml-auto align-self-lg-center">
|
<div class="author-profile ml-auto align-self-lg-center">
|
||||||
|
@ -44,15 +45,15 @@
|
||||||
<h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
|
<h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
|
||||||
<p>{{ .Page.Date.Format "January 2, 2006" }}</p>
|
<p>{{ .Page.Date.Format "January 2, 2006" }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h1>{{ .Page.Title }}</h1>
|
<h1>{{ .Page.Title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="post-content" id="post-content">
|
<div class="post-content" id="post-content">
|
||||||
{{ .Page.Content }}
|
{{ .Page.Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--- Improve this page button --->
|
<!--- Improve this page button --->
|
||||||
{{ if .Site.Params.GitRepo }}
|
{{ if .Site.Params.GitRepo }}
|
||||||
<div class="btn-improve-page">
|
<div class="btn-improve-page">
|
||||||
|
@ -62,7 +63,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!---Next and Previous Navigator -->
|
<!---Next and Previous Navigator -->
|
||||||
<hr />
|
<hr />
|
||||||
{{ partial "navigators/next-prev-navigator.html" . }}
|
{{ partial "navigators/next-prev-navigator.html" . }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<meta name="description" content="{{.Site.Params.description}}" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue