mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00

* Make the theme compliant with W3C standards (#55) * Dropped the line because chrome tab is deprecated. * On header, "li" elements are meant to surround the "a" elements and not the other way around. * Dropped all section tags I could find at first glance, as they had no semantic meaning and were firing warnings at the W3C validator. * Change "middot" from a helper div to a helper class since putting div's inside ul's is not compliant * Fixed a problem of the previous commit. A middot would not hide if on mobile. * Fix archetypes bug with Go templates * Fix additional validation error in 404
26 lines
1.7 KiB
HTML
26 lines
1.7 KiB
HTML
<meta charset="utf-8">
|
|
<meta name="HandheldFriendly" content="True">
|
|
<meta name="MobileOptimized" content="320">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="referrer" content="no-referrer">
|
|
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
|
|
|
|
{{ if .Site.Params.twitter }}
|
|
<meta property="twitter:site" content="@{{.Site.Params.twitter}}">
|
|
{{ end }}
|
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
|
<meta property="og:locale" content="nn_NO" />
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
<meta property="og:title" content="{{ .Title }}" />
|
|
<meta property="twitter:title" content="{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}">
|
|
{{ if .Site.Params.social_banner }}
|
|
<meta property="og:image" content="{{ if .Params.meta_img }}{{ .Site.BaseURL }}{{ .Params.meta_img }}{{ else }}{{ .Site.BaseURL }}{{.Site.Params.social_banner}}{{ end }}">
|
|
<meta property="twitter:card" content="{{ if .Site.Params.usesmallsummarycard }}summary{{ else }}summary_large_image{{ end }}">
|
|
<meta property="twitter:image" content="{{ if .Params.meta_img }}{{ .Site.BaseURL }}{{ .Params.meta_img }}{{ else }}{{ .Site.BaseURL }}{{.Site.Params.social_banner}}{{ end }}">
|
|
{{ else }}
|
|
<meta property="twitter:card" content="summary">
|
|
{{ end }}
|
|
<meta property="og:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else if .IsPage }}{{ .Description }}{{ end }}">
|
|
<meta property="twitter:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else if .IsPage }}{{ .Description }}{{ end }}">
|