head.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <head>
  2. <meta charset="utf-8">
  3. <meta name="robots" content="all,follow">
  4. <meta name="googlebot" content="index,follow,snippet,archive">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. {{ $title_plain := .Title | markdownify | plainify }}
  7. <title>{{ $title_plain }}</title>
  8. <meta name="author" content="{{ .Param " author" }}" />
  9. {{ $keywords := .Site.Params.defaultKeywords | default (slice "" | first 0) }}
  10. {{ if isset .Params "tags" }}{{ range .Params.tags }}{{ $keywords = $keywords | append . }}{{ end }}{{ end }}
  11. {{ if isset .Params "keywords" }}{{ range .Params.keywords }}{{ $keywords = $keywords | append . }}{{ end }}{{ end }}
  12. {{ if gt (len $keywords) 0 }}
  13. <meta name="keywords" content="{{ delimit (uniq $keywords) " , " }}">
  14. {{ end }}
  15. {{ $description_plain := default .Site.Params.defaultDescription .Description | markdownify | plainify }}
  16. <meta name="description" content="{{ $description_plain }}">
  17. {{ hugo.Generator }}
  18. <!-- Font -->
  19. <link href='//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800' rel='stylesheet'
  20. type='text/css'>
  21. <!-- Bootstrap and Font Awesome CSS -->
  22. <link rel="stylesheet" href="//use.fontawesome.com/releases/v5.11.2/css/all.css">
  23. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
  24. integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  25. <!-- CSS animations -->
  26. <link href="{{ " css/animate.css" | relURL}}" rel="stylesheet">
  27. <!-- Theme stylesheet, if possible do not edit this stylesheet -->
  28. {{ with .Site.Params.style }}
  29. <link href="{{ " css/style" | relURL}}.{{ . }}.css" rel="stylesheet" id="theme-stylesheet">
  30. {{ else }}
  31. <link href="{{ " css/style.default.css" | relURL}}" rel="stylesheet" id="theme-stylesheet">
  32. {{ end }}
  33. <!-- Custom stylesheet - for your changes -->
  34. <link href="{{ " css/custom.css" | relURL}}" rel="stylesheet">
  35. <link href="{{ " css/customnft.css" | relURL}}" rel="stylesheet">
  36. <!-- Responsivity for older IE -->
  37. {{ `
  38. <!--[if lt IE 9]>
  39. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  40. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  41. <![endif]-->
  42. ` | safeHTML }}
  43. <!-- Favicon and Apple touch icons-->
  44. <link rel="shortcut icon" href="{{ " img/favicon.ico" | relURL }}" type="image/x-icon" />
  45. <link rel="apple-touch-icon" href="{{ " img/apple-touch-icon.png" | relURL }}" />
  46. <!-- owl carousel CSS -->
  47. <link href="{{ " css/owl.carousel.css" | relURL}}" rel="stylesheet">
  48. <link href="{{ " css/owl.theme.css" | relURL}}" rel="stylesheet">
  49. <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" />
  50. <!-- RSS feed -->
  51. <link rel="alternate" href="{{ " /index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
  52. <!-- Facebook OpenGraph tags -->
  53. {{ $is_blog := and (eq .Type "blog") (eq .Kind "page") }}
  54. {{ $has_image := isset .Params "banner" }}
  55. {{ $image := cond $has_image .Params.banner (.Site.Params.default_sharing_image | default "img/sharing-default.png")
  56. }}
  57. {{ $is_valid_image := print "static/" $image | fileExists }}
  58. {{ if $is_valid_image }}
  59. {{ $image_ext := path.Ext $image }}
  60. <meta property="og:locale" content="{{ replace .Site.LanguageCode " -" "_" }}">
  61. <meta property="og:site_name" content="{{ .Site.Title }}">
  62. <meta property="og:title" content="{{ $title_plain }}">
  63. <meta property="og:type" content="{{ cond $is_blog " article" "website" }}">
  64. <meta property="og:url" content="{{ .Permalink }}" />
  65. <meta property="og:description" content="{{ $description_plain }}">
  66. <meta property="og:image" content="{{ $image | absURL }}">
  67. <meta property="og:image:type" content="image/{{ if eq $image_ext " .svg" }}svg+xml{{ else }}{{ trim $image_ext "."
  68. }}{{ end }}">
  69. {{ with .Params.banner_alt }}
  70. <meta property="og:image:alt" content="{{ . | markdownify | plainify }}">{{ end }}
  71. {{ $image_local := printf "/static/%s" $image}}
  72. {{ with (imageConfig $image_local) }}
  73. <meta property="og:image:width" content="{{ .Width }}">
  74. <meta property="og:image:height" content="{{ .Height }}">
  75. {{ end }}
  76. {{ end }}
  77. {{ with .Lastmod }}
  78. <meta property="og:updated_time" content="{{ .Format " 2006-01-02T15:04:05Z0700" }}">{{ end }}
  79. {{ if $is_blog }}
  80. {{ with .Param "facebook_site" }}
  81. <meta property="article:publisher" content="https://www.facebook.com/{{ . }}/">{{ end }}
  82. {{ with .Param "facebook_author" }}
  83. <meta property="article:author" content="https://www.facebook.com/{{ . }}/">{{ end }}
  84. {{ with .Params.categories }}
  85. <meta property="article:section" content="{{ index . 0 }}">{{ end }}
  86. {{ range .Params.tags }}
  87. <meta property="article:tag" content="{{ . }}">
  88. {{ end }}
  89. {{ if gt .ExpiryDate .PublishDate }}
  90. <meta property="article:expiration_time" content="{{ .ExpiryDate.Format " 2006-01-02T15:04:05Z0700" }}">{{ end }}
  91. {{ with .PublishDate }}
  92. <meta property="article:published_time" content="{{ .Format " 2006-01-02T15:04:05Z0700" }}">{{ end }}
  93. {{ with .Lastmod }}
  94. <meta property="article:modified_time" content="{{ .Format " 2006-01-02T15:04:05Z0700" }}">{{ end }}
  95. {{ end }}
  96. <!-- Twitter Card meta tags -->
  97. <meta name="twitter:card"
  98. content="summary{{ if (and $is_blog (and $has_image $is_valid_image)) }}_large_image{{ end }}">
  99. {{ with .Param "twitter_site" }}
  100. <meta name="twitter:site" content="@{{ . }}">{{ end }}
  101. <meta name="twitter:title" content="{{ $title_plain | truncate 70 }}">
  102. {{ if $is_valid_image }}
  103. <meta name="twitter:image" content="{{ $image | absURL }}">
  104. {{ end }}
  105. <meta name="twitter:description" content="{{ $description_plain | truncate 200 }}">
  106. {{ with .Param "twitter_author" }}
  107. <meta name="twitter:creator" content="@{{ . }}">{{ end }}
  108. <meta name="facebook-domain-verification" content="3xipgs46lfxeohb6sq2xw3ulmq94ew" />
  109. <!-- Global site tag (gtag.js) - Google Ads: 474336061 -->
  110. <script async src="https://www.googletagmanager.com/gtag/js?id=AW-474336061"></script>
  111. <script>
  112. window.dataLayer = window.dataLayer || [];
  113. function gtag() { dataLayer.push(arguments); }
  114. gtag('js', new Date());
  115. gtag('config', 'AW-474336061');
  116. </script>
  117. <!-- Event snippet for ChoozMo video marking conversion page -->
  118. <script>
  119. gtag('event', 'conversion', { 'send_to': 'AW-474336061/nOm7CPHvtZ0DEL2Wl-IB' });
  120. </script>
  121. </head>