initial commit
This commit is contained in:
commit
6c1c2fc043
11 changed files with 3112 additions and 0 deletions
20
templates/index.html.hbs
Normal file
20
templates/index.html.hbs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="https://unpkg.com/htmx.org@2.0.3" integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="/style/monospace.css">
|
||||
<link rel="stylesheet" href="/style/style.css">
|
||||
</head>
|
||||
<body style="max-width: 120ch; margin: auto;">
|
||||
<header style="display: flex; justify-content: space-between; width: 100%;">
|
||||
<h1>sepiatones.xyz</h1>
|
||||
<nav>
|
||||
<a href="/">about</a>
|
||||
<a hx-get="/recent_posts" hx-target="#sidebar">posts</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main id="primary" style="display: flex; justify-content: space-between;">
|
||||
{{{content}}}
|
||||
<aside id="sidebar" style="width: 60ch; padding: var(--line-height) 1ch;"></aside>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
9
templates/posts_list.html.hbs
Normal file
9
templates/posts_list.html.hbs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<h2 style="display: flex; justify-content: space-between; align-items: center;">
|
||||
Posts
|
||||
<span style="cursor: pointer;" hx-on:click="document.getElementById('sidebar').innerHTML = ''">X</span>
|
||||
</h2>
|
||||
<ul>
|
||||
{{#each posts}}
|
||||
<li><a href="{{path}}">{{title}} - {{date}}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue