2018-03-01 01:38:59 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
|
|
|
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
|
|
|
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
|
|
|
|
|
|
|
|
<base href="{{ .Site.BaseURL }}">
|
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
|
|
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
|
|
|
2018-09-14 12:02:58 +00:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Lato:400,700|Merriweather:300,700|Source+Code+Pro:400,700" rel="stylesheet">
|
2018-08-22 11:36:14 +00:00
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" integrity="sha256-oSrCnRYXvHG31SBifqP2PM1uje7SJUyX0nTwO2RJV54=" crossorigin="anonymous" />
|
2018-03-01 01:38:59 +00:00
|
|
|
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ if .Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }}
|
2018-09-15 12:05:38 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
2018-08-21 19:26:15 +00:00
|
|
|
{{ else }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts | minify | fingerprint }}
|
2018-09-15 12:05:38 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
|
2018-06-18 17:55:42 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2018-09-01 12:18:10 +00:00
|
|
|
{{ if .Site.Params.rtl }}
|
|
|
|
{{ if .Site.IsServer }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }}
|
2018-09-15 12:05:38 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
2018-09-01 12:18:10 +00:00
|
|
|
{{ else }}
|
|
|
|
{{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" ) }}
|
|
|
|
{{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts | minify | fingerprint }}
|
2018-09-15 12:05:38 +00:00
|
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
|
2018-09-01 12:18:10 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2018-05-14 12:51:23 +00:00
|
|
|
{{ range .Site.Params.custom_css }}
|
|
|
|
<link rel="stylesheet" href="{{ . | absURL }}">
|
|
|
|
{{ end }}
|
|
|
|
|
2018-09-13 19:22:53 +00:00
|
|
|
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
|
2018-03-01 01:38:59 +00:00
|
|
|
|
|
|
|
{{ if .RSSLink }}
|
|
|
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
|
|
|
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ .Hugo.Generator }}
|
|
|
|
</head>
|
|
|
|
|
2018-09-01 12:18:10 +00:00
|
|
|
<body class="{{ if .Site.Params.rtl }}rtl{{ end }}">
|
2018-03-01 01:38:59 +00:00
|
|
|
<main class="wrapper">
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
{{ block "content" . }}{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</main>
|
2018-03-02 20:10:45 +00:00
|
|
|
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
|
2018-03-01 01:38:59 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|