diff options
author | Pravin Paratey <pravin@paratey.com> | 2020-05-13 12:58:29 +0300 |
---|---|---|
committer | Pravin Paratey <pravin@paratey.com> | 2020-05-13 12:58:29 +0300 |
commit | 77fb6836b1a4b7346b7e33e26e4d47e04a3f735a (patch) | |
tree | 0b668c7dd20b9570954fef228fa50bf2a56bc060 | |
parent | eac97e0be65bec0eedb0cad512822f4197f09340 (diff) |
Now uses site description in the meta tag if no description present
-rw-r--r-- | layouts/partials/header.html | 8 | ||||
-rw-r--r-- | static/css/style.css | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 765c52a..97baa8f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -24,8 +24,7 @@ <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css"> <!--<![endif]--> <link rel="stylesheet" href="/css/style.css"> - <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather:300,300italic,700&display=swap" type="text/css"> - <link href="https://fonts.googleapis.com/css?family=Fira+Sans+Condensed:300&display=swap" rel="stylesheet"> + <link href="https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@300&family=Merriweather:ital,wght@0,300;0,700;1,300&display=swap" rel="stylesheet"> <link rel="icon" href="/img/favicon.ico" type="image/x-icon"> <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/atom.xml" /> @@ -33,7 +32,12 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="{{ hugo.Generator }}"> + {{ if .Description }} <meta name="description" content="{{ .Description }}"> + {{ else }} + <meta name="description" content="{{ .Site.Params.Tagline }}"> + {{ end }} + {{ if .Params.tags }} <meta name="keywords" content="{{ delimit .Params.tags "," }}"> {{ end }} diff --git a/static/css/style.css b/static/css/style.css index b201504..d773198 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,5 +1,5 @@ html, body, button, input, select, textarea, .pure-g [class *="pure-u"] { - font-family: Merriweather, Palatino, serif; + font-family: "Merriweather", Palatino, serif; } body { |