diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-28 00:46:17 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-28 00:46:17 +0300 |
commit | 54375572e11d23dacb20c5742d171af3072d7b9c (patch) | |
tree | a190e43087c520846658f7d68cc3bb263427a254 /layouts/pico8 | |
parent | 8b78390987476352a6459460e00d5c4cdc0717c2 (diff) |
Серьезная реновация
Diffstat (limited to 'layouts/pico8')
-rw-r--r-- | layouts/pico8/list.html | 50 | ||||
-rw-r--r-- | layouts/pico8/single.html | 106 |
2 files changed, 156 insertions, 0 deletions
diff --git a/layouts/pico8/list.html b/layouts/pico8/list.html new file mode 100644 index 0000000..7158b4a --- /dev/null +++ b/layouts/pico8/list.html @@ -0,0 +1,50 @@ +{{ define "main" }} +<div class="row"> + <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 last-xs last-sm first-md first-lg sidebar"> + <article> + <header>Навигатор</header> + {{ partial "menu.html" (dict "menuID" "sections" "page" .) }} + </article> + </div> + <div class="h-entry col-xs-12 col-sm-12 col-md-8 col-lg-8"> + {{ if .Title }} + <article> + <header> + <div class="row between-xs"> + <span class="p-name"> {{ .Title }} </span> + </div> + </header> + {{ .Content }} + </article> + {{ end }} + {{ $paginator := .Paginate .Pages 7 }} + {{ range $paginator.Pages }} + <article> + <header> + <div class="row between-sm"> + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + {{ if .Date }} + <span> + {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} + </span> + {{ end }} + </div> + </header> + {{ if .Description }} + {{ .Description }} + {{ else }} + {{ .Summary }} + {{ end }} + <a href="{{ .RelPermalink }}"> + <img src="{{ .Params.Game }}" /> + </a> + <footer> + <a href="{{ .Params.Game }}">Скачать</a> + </footer> + </article> + {{ end }} + <nav>{{ partial "pagination.html" . }}</nav> + </div> +</div> + +{{ end }} diff --git a/layouts/pico8/single.html b/layouts/pico8/single.html new file mode 100644 index 0000000..8d63215 --- /dev/null +++ b/layouts/pico8/single.html @@ -0,0 +1,106 @@ +{{ define "main" }} +<div class="row"> + <div + class="col-xs-12 col-sm-12 col-md-4 col-lg-4 last-xs last-sm first-md first-lg sidebar" + > + {{ if .Params.toc }} + <article> + <header>Содержание</header> + <aside>{{ .TableOfContents }}</aside> + </article> + {{ end }} + <article> + <header>Навигатор</header> + {{ partial "menu.html" (dict "menuID" "sections" "page" .) }} + </article> + </div> + <div class="h-entry col-xs-12 col-sm-12 col-md-8 col-lg-8"> + <article> + <header> + <div class="row between-xs"> + <span class="p-name"> {{ .Title }} </span> + </div> + </header> + <div id="pico-container"> + <!-- <div class="buttons"> + <button + id="pico-up" + style="grid-area: up" + onclick="PicoPress(3, 0)" + > + ⇑ + </button> + <button + id="pico-down" + style="grid-area: down" + onclick="PicoPress(3, 0)" + > + ⇓ + </button> + <button + id="pico-left" + style="grid-area: left" + onclick="PicoPress(3, 0)" + > + ⇐ + </button> + <button + id="pico-right" + style="grid-area: right" + onclick="PicoPress(3, 0)" + > + ⇒ + </button> + <button + id="pico-a" + style="grid-area: a" + onclick="PicoPress(3, 0)" + > + A + </button> + <button + id="pico-b" + style="grid-area: b" + onclick="PicoPress(3, 0)" + > + B + </button> + <div class="square_hack"></div> + </div> --> + </div> + <h2>Управление</h2> + <h3>Игрок 1</h3> + <img src="/img/p8_lf.png" />← + <img src="/img/p8_rt.png" />→ + <img src="/img/p8_up.png" />↑ + <img src="/img/p8_dw.png" />↓ + <img src="/img/p8_x.png" />Z C + <img src="/img/p8_o.png" />X V + <h3>Игрок 2</h3> + <img src="/img/p8_lf.png" /> S + <img src="/img/p8_rt.png" /> F + <img src="/img/p8_up.png" /> E + <img src="/img/p8_dw.png" /> D + <img src="/img/p8_x.png" />Q W + <img src="/img/p8_o.png" />TAB + <h3>Пауза</h3> + P/Enter + <footer> + <div class="row between-xs"> + <a href="{{ .Params.Game }}">Скачать</a> + </div> + </footer> + </article> + {{ if .Params.comments }} {{ partial "comments.html" . }} {{ end }} + </div> +</div> + +<script src="/js/picoplayer.js"></script> +<script src="/js/pico8.js"></script> + +<script> + document.addEventListener("DOMContentLoaded", function (event) { + PicoPlayer("pico-container", "{{.Params.Game}}"); + }); +</script> +{{ end }}
\ No newline at end of file |