init - lots of changes from lugo

This commit is contained in:
Oliver Atkinson
2024-02-07 16:08:16 -07:00
parent 62ac46a295
commit 7b3c3f0dfb
13 changed files with 228 additions and 86 deletions

View File

@@ -7,7 +7,7 @@
-->
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
<img src="{{ .Get "src" }}"
<img src='{{ .Get "src" }}'
{{- with .Get "mouse" }} title="{{.}}"{{ end -}}
{{- with .Get "alt" }} alt="{{.}}"{{ end -}}
>

View File

@@ -0,0 +1,14 @@
<div>
{% if user %}
Welcome {{/* user */}}!
{% else %}
<link rel='stylesheet' type='text/css' media='screen' href='/form.css'>
<form class="spaced" method="post" action="login" enctype="application/x-www-form-urlencoded">
<label>Login</label>
<br>
<input type="text" id="username" name="username" aria-autocomplete="both" placeholder="Username" autofocus autocomplete="username" required><br>
<input type="password" id="password" name="password" placeholder="Password" autocomplete="new-password" required><br>
<input type="submit" value="Submit">
</form>
{% endif %}
</div>

View File

@@ -0,0 +1,14 @@
<link rel='stylesheet' type='text/css' media='screen' href='/form.css'>
<form method="post" action="post-article" enctype="application/x-www-form-urlencoded">
<label style="display: none">Create new post:</label>
<p>Markdown is supported!</p>
<textarea
accesskey="/"
id="article"
name="article"
required
maxlength="1000"
rows="11"
placeholder="Your super sick idea..."></textarea>
<input type="submit" value="Post">
</form>

View File

@@ -1,3 +0,0 @@
{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <ul id="tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<li><a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a></li>
{{ end }}</ul>{{ end }}{{ end }}