Cleanup and additional template examples.

This commit is contained in:
mikestefanello 2021-12-24 23:31:43 -05:00
parent b4c4fae66b
commit cc2f25431b
4 changed files with 51 additions and 14 deletions

View file

@ -11,9 +11,6 @@
{{end}}
{{define "top-content"}}
Hello homepage
<p><img src="{{file "gopher.png"}}" alt="Gopher"/></p>
<section class="section">
<h1 class="title">Recent posts</h1>
<h2 class="subtitle">
@ -62,7 +59,7 @@
<article class="message is-small is-info mt-4" x-data="{show: true}" x-show="show">
<div class="message-header">
<p>Serving files</p>
<button class="delete is-small" aria-label="delete" x-on:click="show = false"></button>
<button class="delete is-small" aria-label="delete" @click="show = false"></button>
</div>
<div class="message-body">
In the example posts above, check how the file URL contains a cache-buster query parameter which changes only when the app is restarted.