Skip to content

Commit 29def5f

Browse files
committed
add some missing social media meta tags to the website
1 parent 6613409 commit 29def5f

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

  • DOCUMENTATION/themes/hugo-material-docs/layouts/partials

DOCUMENTATION/themes/hugo-material-docs/layouts/partials/head.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@
1212
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
1313
{{ .Hugo.Generator }}
1414

15-
{{ with .Site.Params.description }}
16-
<meta name="description" content="{{ . }}">
17-
{{ end }}
15+
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
1816
<link rel="canonical" href="{{ .Permalink }}">
19-
{{ with .Site.Params.author }}
20-
<meta name="author" content="{{ . }}">
21-
{{ end }}
17+
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
2218

2319
<meta property="og:url" content="{{ .Permalink }}">
20+
<meta property="og:type" content="website">
21+
{{ with .Site.Title }}<meta property="og:site_name" content="{{ . }}">{{ end }}
22+
{{ with .Site.Params.description }}<meta property="og:description" content="{{ . }}">{{ end }}
2423
{{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
2524
{{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
25+
26+
<meta name="twitter:card" content="summary">
27+
<meta name="twitter:site" content="@Mahmoud_Zalt">
28+
{{ with .Site.Title }}<meta name="twitter:title" content="{{ . }}">{{ end }}
29+
{{ with .Site.Params.description }}<meta name="twitter:description" content="{{ . }}">{{ end }}
30+
{{ with .Site.Params.logo }}<meta name="twitter:image" content="{{ . | absURL }}">{{ end }}
31+
2632
{{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
2733
<meta name="apple-mobile-web-app-capable" content="yes">
2834
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

0 commit comments

Comments
 (0)