This commit is contained in:
James Mills 2023-03-30 22:52:12 +10:00
parent 303eebf94b
commit dab807f3e2
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
59 changed files with 42 additions and 16 deletions

27
.zs/list Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
if [ ! $# = 1 ]; then
printf >&2 "Usage: %s <path> [ext]\n" "$(basename "$0")"
exit 0
fi
p="$1"
t="${2:-md}"
if [ ! -d "$p" ]; then
printf >&2 "error: path %s not found\n" "$p"
exit 1
fi
find "$p" -type f -name "*.$t" | while read -r file; do
name="${file#"$p"}"
name="${name#"/"}"
name="${name%.*}"
title="$(zs vars "$file" title)"
if [ -z "$title" ]; then
title="$name"
fi
echo "- [$title](${p}/${name}.html)"
done

View File

@ -15,5 +15,5 @@ if [ -n "$ZS_PRODUCTION" ]; then
fi
for js in $JS; do
printf "<script type=\"application/javascript\" src=\"/js/%s.%s\"></script>\n" "$js" "$ext"
printf "<script type=\"application/javascript\" src=\"/assets/js/%s.%s\"></script>\n" "$js" "$ext"
done

View File

@ -6,16 +6,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>{{ title }}</title>
<meta name="title" content="{{ title }}" />
<meta name="description" content="{{ description }}" />
<meta name="keywords" content="{{ keywords }}" />
<meta name="title" content="{{ title }}" />
<meta name="description" content="{{ description }}" />
<meta name="keywords" content="{{ keywords }}" />
<link rel="stylesheet" href="/reveal.js/css/reset.css">
<link rel="stylesheet" href="/reveal.js/css/reveal.css">
<link rel="stylesheet" href="/reveal.js/css/theme/black.css">
<link rel="stylesheet" href="/assets/reveal.js/css/reset.css">
<link rel="stylesheet" href="/assets/reveal.js/css/reveal.css">
<link rel="stylesheet" href="/assets/reveal.js/css/theme/black.css">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="/reveal.js/plugin/highlight/monokai.css">
<link rel="stylesheet" href="/assets/reveal.js/plugin/highlight/monokai.css">
</head>
<body>
@ -28,10 +28,10 @@
</div>
</div>
<script src="/reveal.js/js/reveal.js"></script>
<script src="/reveal.js/plugin/notes/notes.js"></script>
<script src="/reveal.js/plugin/markdown/markdown.js"></script>
<script src="/reveal.js/plugin/highlight/highlight.js"></script>
<script src="/assets/reveal.js/js/reveal.js"></script>
<script src="/assets/reveal.js/plugin/notes/notes.js"></script>
<script src="/assets/reveal.js/plugin/markdown/markdown.js"></script>
<script src="/assets/reveal.js/plugin/highlight/highlight.js"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
@ -46,4 +46,4 @@
</script>
</body>
</html>
</html>

View File

@ -10,5 +10,5 @@ if [ -n "$ZS_PRODUCTION" ]; then
fi
for css in $CSS; do
printf "<link rel=\"stylesheet\" href=\"/css/%s.%s\">\n" "$css" "$ext"
printf "<link rel=\"stylesheet\" href=\"/assets/css/%s.%s\">\n" "$css" "$ext"
done

View File

@ -76,8 +76,7 @@ With the [wikilink][wikilink] extension you can link to other pages more easily
### We can even do slides!
- [[SlideExample]]
- [[TestSlides]]
{{ list slides }}
## License