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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsiya <parsiya@gmail.com>2019-01-20 23:16:58 +0300
committerparsiya <parsiya@gmail.com>2019-01-20 23:16:58 +0300
commit73f38066f611cc0751eb8278aa40d7d5e3440cd3 (patch)
treea9a176fa8ca3595f7972ffe8b589de79e76d0bd5
parente62b793c61e75bae591e19af343f15941b955f1d (diff)
remove unused tags from header partial, minor cleanup, fixes #56
-rw-r--r--README.md2
-rw-r--r--layouts/partials/header.html7
-rw-r--r--sample-config.toml2
3 files changed, 4 insertions, 7 deletions
diff --git a/README.md b/README.md
index 4a51913..dbece86 100644
--- a/README.md
+++ b/README.md
@@ -96,7 +96,7 @@ post = "/blog/:year-:month-:day-:title/"
textrss = false
# Website's default description
- defaultDescription = ""
+ description = ""
# Populate with your search keywords - these will appear in meta tags
# defaultKeywords = ["keyword1" , "keyword2" , "keyword3" , "keyword4"]
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 438c2ea..3ef30da 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,12 +1,9 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
- <link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- added from octo -->
- <meta name="HandheldFriendly" content="True">
- <meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1">
{{ if not .Site.Params.disableGoogleFonts }}
@@ -43,11 +40,11 @@
<!-- RSS -->
{{ with .RSSLink }}<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}
- <meta name="description" content="{{ if ne .Description "" }}{{ .Description }}{{ else }}{{ .Site.Params.defaultDescription }}{{ end }}">
+ <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
<meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ if gt $index 0 }},{{ end }}{{ . }}{{ else }}{{ .Site.Params.defaultKeywords }}{{ end }}">
<meta name="author" content="{{ .Site.Params.author }}">
- <!-- Generator version for usage tacking -->
+ <!-- Generator version for usage tracking -->
{{ .Hugo.Generator }}
<!-- Google Analytics -->
diff --git a/sample-config.toml b/sample-config.toml
index 6d45d09..8ac1e6e 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -103,7 +103,7 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
textrss = false
# Website's default description
- defaultDescription = ""
+ description = ""
# Populate this with your own search keywords - these will appear in the meta tags
# defaultKeywords = ["keyword1" , "keyword2" , "keyword3" , "keyword4"]