init - lots of changes from lugo
This commit is contained in:
@@ -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 -}}
|
||||
>
|
||||
|
14
layouts/shortcodes/login.html
Normal file
14
layouts/shortcodes/login.html
Normal 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>
|
14
layouts/shortcodes/post.html
Normal file
14
layouts/shortcodes/post.html
Normal 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>
|
@@ -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 }}
|
Reference in New Issue
Block a user