feat: bootstrap foundation application
This commit is contained in:
23
apps/server/internal/httpserver/templates/index.gohtml
Normal file
23
apps/server/internal/httpserver/templates/index.gohtml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ define "index.gohtml" }}{{ template "base" . }}{{ end }}
|
||||
|
||||
{{ define "index_content" }}
|
||||
<section class="hero-panel">
|
||||
<p class="eyebrow">Foundation</p>
|
||||
<h1>Server-rendered Markdown, secure attachments, and a clean base for sync.</h1>
|
||||
<p class="lede">This milestone focuses on a fast read path. Documents are synchronized from the content directory into content-addressed storage and rendered to HTML on demand.</p>
|
||||
</section>
|
||||
|
||||
<section class="doc-list">
|
||||
<h2>Documents</h2>
|
||||
<ul>
|
||||
{{ range .Documents }}
|
||||
<li>
|
||||
<a href="/docs/{{ trimMd .Path }}">{{ .Title }}</a>
|
||||
<code>{{ .Path }}</code>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>No documents found.</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user