Updated Theme and adjusted config
This commit is contained in:
parent
b90a6ca037
commit
014b3c355e
14 changed files with 256 additions and 1371 deletions
71
layouts/_default/baseof.html
Normal file
71
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,71 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="no-js" lang="{{ .Site.Language.Lang }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
|
||||
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Params.Description }}{{ end }}">
|
||||
{{- if .Site.Params.opengraph }}
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{- end }}
|
||||
{{- if .Site.Params.schema }}
|
||||
{{ template "_internal/schema.html" . }}
|
||||
{{- end }}
|
||||
{{- if .Site.Params.twitter_cards }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{- end }}
|
||||
|
||||
{{- $googleFontsLink := .Site.Params.googleFontsLink | default "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" }}
|
||||
{{- if hasPrefix $googleFontsLink "https://fonts.googleapis.com/" }}
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="dns-prefetch" href="//fonts.googleapis.com">
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
<link rel="stylesheet" {{ printf `href="%s"` $googleFontsLink | safeHTMLAttr }}>
|
||||
{{- end }}
|
||||
|
||||
{{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
{{ range .Site.Params.customCSS -}}
|
||||
<link rel="stylesheet" href="{{ . | relURL }}">
|
||||
{{- end }}
|
||||
|
||||
{{- with .OutputFormats.Get "rss" }}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||
{{- end }}
|
||||
|
||||
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
|
||||
{{- if not .Site.IsServer }}
|
||||
{{- if hasPrefix .Site.GoogleAnalytics "G-" }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{- else }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</head>
|
||||
<body class="body">
|
||||
<div class="container container--outer">
|
||||
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
||||
<div class="wrapper flex">
|
||||
<div class="primary">
|
||||
{{ block "main" . }}
|
||||
{{ with .Content }}
|
||||
<div class="content main__content clearfix">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ block "sidebar" . }}{{ partial "sidebar.html" . }}{{ end }}
|
||||
</div>
|
||||
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
|
||||
</div>
|
||||
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
|
||||
{{ range .Site.Params.customJS -}}
|
||||
<script src="{{ . | relURL }}"></script>
|
||||
{{- end }}
|
||||
{{- partial "mathjax.html" . -}}
|
||||
{{- partial "isso.html" . -}}
|
||||
</body>
|
||||
</html>
|
|
@ -1,35 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ .Title }}</title>
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ .Hugo.Generator }}
|
||||
{{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }}
|
||||
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com" />
|
||||
{{ if .RSSLink }}<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }} Feed" href="{{ .RSSLink }}">{{ end }}
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700" type="text/css" media="all" />
|
||||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css" media="all" />
|
||||
{{ "<!-- isso -->" | safeHTML }}
|
||||
<script data-isso="{{ .Site.BaseURL }}isso/" data-isso-require-author="true" data-isso-require-email="true" src="{{ .Site.BaseURL }}isso/js/embed.min.js"></script>
|
||||
{{ "<!-- end isso -->" | safeHTML }}
|
||||
<script type="text/javascript" src="{{ "js/scripts.js" | relURL }}"></script>
|
||||
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
</head>
|
||||
<body class="body {{ if (.Site.Params.leftsidebar) or (.Params.leftsidebar) }}body-left-sidebar{{ else }}body-right-sidebar{{ end }} mobile" itemscope="itemscope" itemtype="http://schema.org/WebPage">
|
||||
<div class="container container-outer">
|
||||
<header class="header" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
|
||||
<div class="container container-inner clearfix">
|
||||
<div class="logo" role="banner" itemscope="itemscope" itemtype="http://schema.org/Brand">
|
||||
<a class="logo__link" href="{{ "" | relLangURL }}" title="{{ .Site.Title }}" rel="home">
|
||||
<h1 class="logo__title">{{ .Site.Title }}</h1>
|
||||
{{ with .Site.Params.subtitle }}<h2 class="logo__tagline">{{ . }}</h2>{{ end }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "menu.html" . }}
|
||||
</header>
|
||||
<div class="wrapper clearfix">
|
3
layouts/partials/isso.html
Normal file
3
layouts/partials/isso.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ "<!-- isso -->" | safeHTML }}
|
||||
<script data-isso="{{ .Site.BaseURL }}isso/" data-isso-require-author="true" data-isso-require-email="true" src="{{ .Site.BaseURL }}isso/js/embed.min.js"></script>
|
||||
{{ "<!-- end isso -->" | safeHTML }}
|
7
layouts/partials/mastodon.svg
Normal file
7
layouts/partials/mastodon.svg
Normal file
|
@ -0,0 +1,7 @@
|
|||
<svg
|
||||
class="widget-social__link-icon icon"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 216.4144 232.00976">
|
||||
<path d="M 115.05664 0 C 83.417974 0.25866667 52.984047 3.6847447 35.248047 11.830078 C 35.248047 11.830078 0.072265625 27.564666 0.072265625 81.25 C 0.072265625 93.543333 -0.16667709 108.24208 0.22265625 123.83008 C 1.4999896 176.33141 9.8473382 228.07387 58.388672 240.92188 C 80.770005 246.84588 99.986891 248.08699 115.46289 247.23633 C 143.52822 245.68033 159.2832 237.2207 159.2832 237.2207 L 158.35742 216.85742 C 158.35742 216.85742 138.30134 223.18082 115.77734 222.41016 C 93.461344 221.64482 69.902302 220.00414 66.292969 192.60547 C 65.959635 190.1988 65.792969 187.62454 65.792969 184.92188 C 65.792969 184.92187 87.700224 190.27683 115.46289 191.54883 C 132.43889 192.32749 148.35801 190.55433 164.52734 188.625 C 195.53534 184.92233 222.5344 165.81671 225.92773 148.35938 C 231.2744 120.85937 230.83398 81.25 230.83398 81.25 C 230.83398 27.564666 195.66016 11.830078 195.66016 11.830078 C 177.92549 3.6847447 147.47265 0.25866667 115.83398 0 L 115.05664 0 z M 79.25 41.947266 C 92.428667 41.947266 102.40719 47.012531 109.00586 57.144531 L 115.42188 67.898438 L 121.83789 57.144531 C 128.43522 47.012531 138.41375 41.947266 151.59375 41.947266 C 162.98308 41.947266 172.15997 45.951052 179.16797 53.761719 C 185.9613 61.572385 189.34375 72.130682 189.34375 85.416016 L 189.34375 150.41992 L 163.58984 150.41992 L 163.58984 87.326172 C 163.58984 74.026172 157.99411 67.275391 146.80078 67.275391 C 134.42478 67.275391 128.22266 75.282521 128.22266 91.117188 L 128.22266 125.65234 L 102.62109 125.65234 L 102.62109 91.117188 C 102.62109 75.282521 96.417016 67.275391 84.041016 67.275391 C 72.847682 67.275391 67.251953 74.026172 67.251953 87.326172 L 67.251953 150.41992 L 41.498047 150.41992 L 41.498047 85.416016 C 41.498047 72.130682 44.881115 61.572385 51.675781 53.761719 C 58.682448 45.951052 67.859333 41.947266 79.25 41.947266 z " />
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
Loading…
Add table
Add a link
Reference in a new issue