Japanese flashcards!

This commit is contained in:
Eryn Wells 2023-03-13 21:06:45 -07:00
parent 533bc1138c
commit 78bd1e4a4e
13 changed files with 315 additions and 38 deletions

View file

@ -0,0 +1,25 @@
{{ define "main" }}
{{ partial "content_header.html" . }}
<nav class="languages">
{{ range .AllTranslations }}
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ end }}
</nav>
<section class="flashcards">
<div class="shadow left"></div>
<div class="shadow right"></div>
<ul></ul>
</section>
{{ end }}
{{ define "styles" }}
{{ partial "single_styles.html" . }}
{{ end }}
{{ define "scripts" }}
{{- $flashcards := index $.Site.Data.nihongo.flashcards "all" -}}
<script>
const flashcards = {{ $flashcards | jsonify | safeJS }};
</script>
{{ partial "single_scripts.html" . }}
{{ end }}