diff options
author | jesselau76 <jesselau76@gmail.com> | 2018-11-08 01:09:29 +0300 |
---|---|---|
committer | jesselau76 <jesselau76@gmail.com> | 2018-11-08 01:09:29 +0300 |
commit | d69afe19f62cc533d8824ee47fbbf3548a1e2717 (patch) | |
tree | c449b7eaa84191259da8e5d56f7d298412f98485 | |
parent | ffa865a6ed1d42e75c098d6534cc6181b23c6e53 (diff) |
custom seo
-rw-r--r-- | layouts/404.html | 7 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | static/css/style.css | 16 |
3 files changed, 22 insertions, 12 deletions
diff --git a/layouts/404.html b/layouts/404.html index 2859dfb..acbc088 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,3 +1,9 @@ +{{ define "customseo" -}} + +<meta name="robots" content="noindex,follow"/> + +{{- end }} + {{ define "main" -}} <div class="w3-container w3-center"> @@ -11,4 +17,3 @@ {{- end }} - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 66f2ef6..a2cb63e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,16 +1,9 @@ <!DOCTYPE html> <html lang="{{ .Site.Language }}"> <head> - <meta charset="utf-8"> - {{ if eq .URL "/" }} - <title>{{ .Site.Title }}</title> - <meta property="og:title" content="{{ .Site.Title }}"> - <meta property="og:type" content="website"> - {{ else }} - <title>{{ .Title }}{{ with .Params.subtitle }} - {{ . }} {{ end }} - {{ .Site.Title }}</title> - <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}"> - {{ end }} + {{ partial "head.html" . }} + {{ block "customseo" . }}{{ end }} </head> <body class="w3-light-grey"> <div class="w3-content"> diff --git a/static/css/style.css b/static/css/style.css index 5c469a4..450e211 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -55,6 +55,9 @@ img, iframe, video { margin-right: auto; } main { hyphens: auto; } + +/* custom blockquote */ + blockquote { margin: 20px 0 30px; border-left: #2EA3F2 5px solid; @@ -66,7 +69,15 @@ blockquote p { } -{{ if .Site.Params.socialshare }} +/* change em to color red */ + +em { + + font-style: normal; + color:red; +} + +/* social share css */ @media screen and (min-width: 1024px) { @@ -126,4 +137,5 @@ blockquote p { border-radius: 0px 0px 15px 15px; } - {{ end }}
\ No newline at end of file + +
\ No newline at end of file |