cloudtube/pug/includes/layout.pug

61 lines
2.6 KiB
Plaintext
Raw Normal View History

2020-08-22 13:17:31 +00:00
doctype html
html
head
meta(charset="utf-8")
2020-08-24 13:49:15 +00:00
meta(name="viewport" content="width=device-width, initial-scale=1")
- const theme = settings && ["dark", "light", "edgeless-light"][settings.theme] || "dark"
link(rel="stylesheet" type="text/css" href=getStaticURL("sass", `/${theme}.sass`))
2020-08-22 13:17:31 +00:00
script(type="module" src=getStaticURL("html", "/static/js/focus.js"))
2022-12-15 20:07:02 +00:00
link(rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-touch-icon.png")
link(rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png")
link(rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png")
link(rel="manifest" href="/site.webmanifest")
link(rel="mask-icon" href="/static/images/safari-pinned-tab.svg" color="#5bbad5")
link(rel="shortcut icon" href="/static/images/favicon.ico")
meta(name="apple-mobile-web-app-title" content="CloudTube")
meta(name="application-name" content="CloudTube")
meta(name="msapplication-TileColor" content="#2b5797")
meta(name="msapplication-config" content="/browserconfig.xml")
meta(name="theme-color" content="#36393f")
2020-08-22 13:17:31 +00:00
block head
body.show-focus
2021-01-12 12:13:46 +00:00
- let showNav = true
block pre-nav
if showNav
nav.main-nav
.links
if req && req.headers && "x-insecure" in req.headers
a(href="/").link.home CloudTube - Insecure
else
a(href="/").link.home CloudTube
2021-01-12 12:13:46 +00:00
a(href="/subscriptions" title="Subscriptions").link.icon-link
!= icons.get("subscriptions")
2021-01-12 12:13:46 +00:00
a(href="/settings" title="Settings").link.icon-link
!= icons.get("settings")
2021-01-12 12:13:46 +00:00
form(method="get" action="/search").search-form
input(type="text" placeholder="Search" aria-label="Search a video" name="q" autocomplete="off" value=query).search
2020-08-22 13:17:31 +00:00
2021-04-16 04:12:04 +00:00
div
block content
2021-04-16 03:24:48 +00:00
2021-04-16 04:12:04 +00:00
if showNav
footer.footer__container
div.footer__center
p Released as AGPL free software.
.footer__cols
div
2021-11-20 06:42:34 +00:00
h3.footer__colhead Source code
2021-04-16 04:12:04 +00:00
ul.footer__list
li: a(href="https://sr.ht/~cadence/tube") Project hub
li: a(href="https://lists.sr.ht/~cadence/tube-announce") Announcements
li: a(href="https://todo.sr.ht/~cadence/tube") Report a problem
div
h3.footer__colhead About
ul.footer__list
li: a(href="/privacy") Privacy policy
2021-10-06 07:55:14 +00:00
li: a(href="/licenses" data-jslicense=1) Licenses
2021-11-20 06:42:34 +00:00
if constants.takedown
li: a(href="/takedown") DMCA