mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
5c667b3d07
Since a while, Hugo has its own mechanism for code highlightning. We remove the old highlightning code provided by the client-side javascript library highlight.js and all its related files. This also solves issues introduced by Hugos own highlightning because in our theme we are currently highlighting the code twice leading to unpredictiable results. This will also fix an issue were light code highlightning themes weren't displayed correctly because our styles are overwriting color information. Another advantage is the huge list of supported languages which by far exceeds our current list. On the downside, this is a breaking change because our current color theme isn't supported by Hugo.
55 lines
2.1 KiB
HTML
55 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
|
|
|
|
<head>
|
|
<meta charset="utf-8"> {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}}
|
|
<title>{{ .Scratch.Get "title" }}</title>
|
|
|
|
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
|
<link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
<link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
<link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
<link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
{{with .Site.Params.themeVariant}}
|
|
<link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
|
|
{{end}}
|
|
<style>
|
|
:root #header + #content > #left > #rlblock_left {
|
|
display: none !important;
|
|
}
|
|
|
|
p,
|
|
li,
|
|
ul {
|
|
text-align: center
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
</style>
|
|
{{ partial "custom-header.html" . }}
|
|
</head>
|
|
|
|
<body class="" data-url="/">
|
|
|
|
<section id="body" style="margin-left:0px;">
|
|
<div id="overlay"></div>
|
|
<div id="chapter">
|
|
<div id="body-inner">
|
|
<h1>{{T "title-404"}}</h1>
|
|
<p>
|
|
</p>
|
|
<p>{{T "message-404"}}</p>
|
|
<p></p>
|
|
<p><a href='{{ "" | relLangURL }}'>{{T "Go-to-homepage"}}</a></p>
|
|
<p><img src='{{ "/images/gopher-404.jpg" | relURL }}' style="width:50%" alt="Page not found!"></p>
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
</body>
|
|
|
|
</html>
|