diff options
author | Dragos Plesca <dragos.plesca@gmail.com> | 2015-03-17 23:23:39 +0300 |
---|---|---|
committer | Dragos Plesca <dragos.plesca@gmail.com> | 2015-03-17 23:23:39 +0300 |
commit | 80ab23e37bd0633b212d1dcb3484fb941d0942c2 (patch) | |
tree | 71a2f516454b74c61adc40465949a92d7586d7e7 | |
parent | c862a330e6f527cc6ad34c6878c6f80a92dfcbb7 (diff) |
Trying a "smart" meta description
-rw-r--r-- | layouts/partials/header.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2ab7766..2d206fc 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta name="description" content="A layout example that shows off a blog page with a list of posts."> + <meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{.}}{{ end }}{{ else }}{{ with .Description }}{{.}}{{ end }}{{ end }}"> <title>{{ .Title }} · {{ .Site.Title }}</title> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Oxygen:400,700' rel='stylesheet' type='text/css'> @@ -18,5 +18,7 @@ <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/blog.css"> <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/syntax-highlighter.css"> <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> + + </head> <body>
\ No newline at end of file |