mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
66 lines
2 KiB
HTML
66 lines
2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<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 }}
|
|
|
|
<base href="{{ .Site.BaseURL }}">
|
|
<title>
|
|
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
|
{{ if eq $url "/" }}
|
|
{{ .Site.Title }}
|
|
{{ else }}
|
|
{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}
|
|
{{ end }}
|
|
</title>
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
|
<!-- HTTPS -->
|
|
|
|
{{ if .Site.Params.enforce_ssl }}
|
|
<script type="text/javascript">
|
|
var baseURL = '{{ .Site.BaseURL }}';
|
|
var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
|
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
|
window.location.protocol = 'https:';
|
|
}
|
|
</script>
|
|
{{ end }}
|
|
|
|
<!-- jQuery -->
|
|
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
|
|
|
|
<!-- Fonts and icon CSS -->
|
|
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="/css/nunito_sans.css">
|
|
|
|
{{ if .Site.Params.cacheBuster }}
|
|
{{ $t := now.Unix }}
|
|
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css?t={{$t}}">
|
|
{{ else }}
|
|
<link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css">
|
|
{{ end }}
|
|
|
|
<!-- Custom css -->
|
|
{{ range .Site.Params.customCSS -}}
|
|
<link rel="stylesheet" href="{{ . | absURL }}">
|
|
{{- end }}
|
|
|
|
<!-- Icon -->
|
|
<link rel="shortcut icon" href="{{ .Site.Params.faviconFile | default "img/favicon.ico" }}">
|
|
|
|
<!-- Google Analytics -->
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
|
|
<!-- RSS -->
|
|
{{ if .RSSLink }}
|
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
|
{{ end }}
|
|
|
|
</head>
|