Work in progress nethack dungeon generator background for the nethack page
This commit is contained in:
parent
d524a7dd9e
commit
186929921b
5 changed files with 342 additions and 0 deletions
36
layouts/nethack/single.html
Normal file
36
layouts/nethack/single.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
{{ define "before" }}
|
||||
<div id="dungeon-background"></div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ partial "single_main.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "styles" }}
|
||||
{{- with partial "secure_asset.html" "styles/nethack.css" -}}
|
||||
{{ with .Secure }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{ else }}
|
||||
{{- errorf "Unable to find nethack.css" -}}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- range .Resources.Match "*.css" -}}
|
||||
{{- $stylesheet := . | fingerprint "md5" }}
|
||||
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}">
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
|
||||
<script defer src="{{ .Secure.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
|
||||
{{- with partial "secure_asset.html" "scripts/nethack/dungeon.js" -}}
|
||||
<script defer src="{{ .Secure.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
|
||||
{{- range $script := .Resources.Match "*.js" -}}
|
||||
{{- $isModule := default true $script.Params.is_module -}}
|
||||
<script defer {{ if $isModule }}type="module"{{ end }} src="{{ $script.Permalink | relURL }}"></script>
|
||||
{{- end -}}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue