added support for the meta description tag (#57)
* added support for the meta description tag * Update meta description logic for single page Co-authored-by: hossainemruz <emruz@appscode.com>
This commit is contained in:
parent
629c7196a3
commit
5f48a5bacb
4 changed files with 15 additions and 7 deletions
|
@ -75,9 +75,12 @@ enableEmoji: true
|
||||||
|
|
||||||
# Custom parameters
|
# Custom parameters
|
||||||
params:
|
params:
|
||||||
# copyright
|
# Copyright Notice
|
||||||
copyright: © 2020 Copyright.
|
copyright: © 2020 Copyright.
|
||||||
|
|
||||||
|
# Meta description for your site. This will help the search engines to find your site.
|
||||||
|
description: Portfolio and personal blog of Jane Doe.
|
||||||
|
|
||||||
# background image of the landing page
|
# background image of the landing page
|
||||||
background: "images/background.jpg"
|
background: "images/background.jpg"
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,12 @@ enableEmoji: true
|
||||||
|
|
||||||
# Custom parameters
|
# Custom parameters
|
||||||
params:
|
params:
|
||||||
# copyright
|
# Copyright Notice
|
||||||
copyright: © 2020 Copyright.
|
copyright: © 2020 Copyright.
|
||||||
|
|
||||||
|
# Meta description for your site. This will help the search engines to find your site.
|
||||||
|
description: Portfolio and personal blog of Jane Doe.
|
||||||
|
|
||||||
# background image of the landing page
|
# background image of the landing page
|
||||||
background: "images/background.jpg"
|
background: "images/background.jpg"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{ define "header" }}
|
{{ define "header" }}
|
||||||
|
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Title }}{{ end }}" />
|
||||||
<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"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>{{- .Site.Title -}}</title>
|
<title>{{- .Site.Title -}}</title>
|
||||||
|
<meta name="description" content="{{ .Site.Params.description }}" />
|
||||||
<!-- import common headers -->
|
<!-- import common headers -->
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue