mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 13:22:22 +00:00
23 lines
1010 B
HTML
23 lines
1010 B
HTML
{{ define "title" }}
|
|
{{ .Title }}
|
|
{{ end }}
|
|
|
|
{{ define "subtitle" }}
|
|
{{ .Params.subtitle }}
|
|
{{ end }}
|
|
|
|
{{ define "extra_css" }}
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.4.1/event-calendar.min.css">
|
|
{{ end }}
|
|
|
|
{{ define "extra_js" }}
|
|
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.4.1/event-calendar.min.js" type="application/javascript"></script>
|
|
{{ $js := resources.Get "js/calendar.js" | resources.Minify }}
|
|
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
|
|
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<div id="calendar"><p id="nojs">Your browser doesn't support (or has disabled) Javascript. If you wish to see the upcoming event calendar you can use our <a href="https://api.leighhack.org/events.ics">iCal Feed</a> with your calendar or mail software.</p></div>
|
|
{{ printf "<!--# include virtual='%s' -->" ("/cgi/events.cgi" | relURL) | safeHTML }}
|
|
{{ end }} |