chore: basic rendering from data

This commit is contained in:
Xin
2024-04-14 11:12:17 +01:00
parent c62b1fd401
commit 63f153999e
4 changed files with 37 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<ul class="hx-flex hx-flex-col hx-gap-1 max-md:hx-hidden">
{{ with $data }}
{{ warnf "The data file for the sidebar is still unstable. Please use caution when upgrading." }}
<pre>{{ . | jsonify (dict "indent" " ") }}</pre>
{{ partial "components/sidebar/render-data" (dict "data" . "page" $context) }}
{{ end }}
{{ partialCached "components/sidebar/footer" $context site.Home }}
</ul>