-
Notifications
You must be signed in to change notification settings - Fork 6
/
styles_edit.tmpl
34 lines (34 loc) · 1.65 KB
/
styles_edit.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{define "content"}}
<form method="POST" class="post-form">
<input type="hidden" name="token" value="{{.token}}">
<p>
<label for="id_favicon">Site favicon:</label>
<input type="text" name="favicon" value="{{.favicon}}" maxlength="4" id="id_favicon">
<span class="helptext"><a href='https://www.iemoji.com/emoji-cheat-sheet/all' target='_blank'>Emoji cheatsheet</a>
</span>
</p>
<p>
<label for="id_stackedit">Enable <a href="https://stackedit.io/" target='_blank'>StackEdit</a> for editing markdown:</label>
<input type="checkbox" name="stackedit" id="id_stackedit" {{if .stackedit}}checked{{end}}>
</p>
<p>
<label for="id_prism">Enable <a href="https://prismjs.com/" target='_blank'>Prism</a> for codeblock highlighting:</label>
<input type="checkbox" name="prism" id="id_prism" {{if .prism}}checked{{end}}>
</p>
<p>
<label for="id_stylesappend">Append instead of replace styles:</label>
<input type="checkbox" name="stylesappend" id="id_stylesappend" {{if .stylesappend}}checked{{end}}>
</p>
<p>
<label for="id_styles">Site styles (css):</label>
<textarea name="styles" cols="40" rows="20" id="id_styles">{{.styles}}</textarea>
<span class="helptext">
<a href='https://www.cssbed.com/' target='_blank'>No-class css themes.</a>
</span>
<span class="helptext">
You can also paste a link like this: <br /><span>@import 'https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark.css'</span>;
</span>
</p>
<button type="submit" class="save btn btn-default">Save</button>
</form>
{{end}}