The backend for the AiteStory website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. doctype 5
  2. import mixins
  3. html
  4. head
  5. block meta
  6. meta[name="description"][content="This is a great website"]
  7. meta[charset="UTF-8"]
  8. meta[name="viewport"][content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=no"]
  9. meta[name="theme-color"][content="#112233"]
  10. meta[http-equiv="Content-Type"][content="text/html; charset=utf-8"]
  11. block css
  12. link[rel="stylesheet"][href="/ui/css/base.css"]
  13. link[rel="stylesheet"][href="/ui/css/magic.css"]
  14. link[rel="stylesheet"][href="/ui/css/theme.css"]
  15. link[rel="stylesheet"][media="screen"][href="/ui/fonts/source-sans-pro/source-sans-pro.css"][type="text/css"]
  16. block js
  17. script[type="text/javascript"][src="/ui/js/background.js"]
  18. title #{ViewTitle}
  19. body
  20. if ViewBackground != ""
  21. img[id="main-background"][src="/ui/img/bg.png"]
  22. else
  23. img[id="main-background"][src="/ui/img/bg.png"]
  24. div.content-wrapper
  25. nav
  26. block menu
  27. if User.LoggedIn
  28. ul
  29. +menuitem("/user/logout", "U", "Logout")
  30. else
  31. ul
  32. +menuitem("/user/login", "U", "Login")
  33. if ViewPath != "/"
  34. +menuitem("/", "<", "Back")
  35. main
  36. block main