Massive overhaul, fixing menus and changing template engine. Added /month/ and /author/ filters
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
doctype 5
|
||||
|
||||
import mixins
|
||||
|
||||
html
|
||||
head
|
||||
block meta
|
||||
meta[name="description"][content="This is a great website"]
|
||||
meta[charset="UTF-8"]
|
||||
meta[name="viewport"][content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=no"]
|
||||
meta[name="theme-color"][content="#112233"]
|
||||
meta[http-equiv="Content-Type"][content="text/html; charset=utf-8"]
|
||||
|
||||
block css
|
||||
link[rel="stylesheet"][href="/ui/css/base.css"]
|
||||
link[rel="stylesheet"][href="/ui/css/magic.css"]
|
||||
link[rel="stylesheet"][href="/ui/css/theme.css"]
|
||||
link[rel="stylesheet"][media="screen"][href="/ui/fonts/source-sans-pro/source-sans-pro.css"][type="text/css"]
|
||||
|
||||
block js
|
||||
script[type="text/javascript"][src="/ui/js/background.js"]
|
||||
|
||||
title #{ViewTitle}
|
||||
body
|
||||
if ViewBackground != ""
|
||||
img[id="main-background"][src="/ui/img/bg.png"]
|
||||
else
|
||||
img[id="main-background"][src="/ui/img/bg.png"]
|
||||
|
||||
div.content-wrapper
|
||||
nav
|
||||
block menu
|
||||
if User.LoggedIn
|
||||
ul
|
||||
+menuitem("/user/logout", "U", "Logout")
|
||||
else
|
||||
ul
|
||||
+menuitem("/user/login", "U", "Login")
|
||||
|
||||
if ViewPath != "/"
|
||||
+menuitem("/", "<", "Back")
|
||||
|
||||
main
|
||||
block main
|
||||
@@ -0,0 +1,30 @@
|
||||
$root = $
|
||||
|
||||
mixin menuitem($path, $icon, $text)
|
||||
li
|
||||
.selected ? $root.ViewPath == $path
|
||||
a[href=$path]
|
||||
div.mg-icon #{$icon}
|
||||
div.mg-label #{$text}
|
||||
|
||||
mixin tagmenuitem($tag)
|
||||
li
|
||||
[class=$tag.CSSClass]
|
||||
a[href=$tag.Path]
|
||||
div.mg-icon #{$tag.Icon}
|
||||
div.mg-label #{$tag.Name}
|
||||
|
||||
|
||||
|
||||
mixin formoption($name, $selected, $label, $info)
|
||||
div.radio-wrapper
|
||||
$id = printf("checkbox-%s", $name)
|
||||
|
||||
if $selected
|
||||
input[id=$id][type="checkbox"][name=$name][value="true"][checked]
|
||||
else
|
||||
input[id=$id][type="checkbox"][name=$name][value="true"]
|
||||
|
||||
label[for="checkbox-unlisted"]
|
||||
b #{$label}:
|
||||
spamn #{$info}
|
||||
Reference in New Issue
Block a user