Add support for Custom HTML

This commit is contained in:
Yash Mehrotra
2021-07-07 07:27:30 +05:30
parent 21286caa7c
commit 42476980b4
4 changed files with 13 additions and 4 deletions

View File

@@ -1,15 +1,24 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Ubuntu|Quicksand-Medium" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link disabled id="dark-theme" rel="stylesheet" href="/css/dark.css">
<script src="https://unpkg.com/feather-icons"></script>
<script src="/js/main.js"></script>
<!-- Option for user to inject custom html -->
{{ if .Site.Params.CustomHTML }}
{{ .Site.Params.CustomHTML | safeHTML }}
{{ end }}
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>

File diff suppressed because one or more lines are too long