head.html 6.3 KB

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