Browse Source

Fixed seo page description

Signed-off-by: Blagovest Petrov <blagovest@petrovs.info>
pull/1/head
Blagovest Petrov 4 years ago
parent
commit
bd96e939ad
  1. 9
      layouts/partials/head.html

9
layouts/partials/head.html

@ -11,8 +11,13 @@
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico"> <link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico">
<link rel="canonical" href="{{ .Site.BaseURL }}"> <link rel="canonical" href="{{ .Site.BaseURL }}">
<link rel="alternate" type="application/atom+xml" title="Atom 2.0" href="https://petrovs.info/index.xml"> <link rel="alternate" type="application/atom+xml" title="Atom 2.0" href="https://petrovs.info/index.xml">
<meta name="description" content="{{ .Site.Params.Description }}"> <meta name="description" content="{{ with .Description }}
{{ . }}
{{ else }}
{{if .IsPage}}{{ .Summary }}
{{ else }}{{ with .Site.Params.description }}
{{ . }}
{{ end }}{{ end }}{{ end }}">
{{/* Don't ask why it's like this. This original theme is a mess... */}} {{/* Don't ask why it's like this. This original theme is a mess... */}}
<!-- <noscript><style>body { visibility: visible }</style></noscript> --> <!-- <noscript><style>body { visibility: visible }</style></noscript> -->
</head> </head>

Loading…
Cancel
Save