62 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-11-17 14:51:55 +01:00
component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openGraph *arn.OpenGraph, meta, tags []string, organization string, content string)
2017-06-01 15:38:08 +02:00
html(lang="en")
2016-10-29 01:11:25 +09:00
head
2017-11-28 21:48:12 +01:00
link(rel="stylesheet", href="/styles")
2017-07-06 21:38:19 +02:00
if openGraph != nil
title= openGraph.Tags["og:title"]
else
title= app.Config.Title
2017-07-06 20:56:37 +02:00
2016-11-03 13:11:00 +09:00
meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes")
2017-06-17 14:15:33 +02:00
meta(name="theme-color", content=app.Config.Manifest.ThemeColor)
2017-11-17 14:29:20 +01:00
meta(name="google-site-verification", content="1U-E2pDaYbFHyOSWl6AX3DvixQuDc4kfem9Kde_jZ8A")
2017-11-09 08:45:51 +01:00
2017-07-06 20:56:37 +02:00
if openGraph != nil
2018-04-16 17:59:34 +02:00
if openGraph.Tags["og:video"] != ""
2018-04-16 17:58:53 +02:00
meta(name="twitter:card", content="player")
else
meta(name="twitter:card", content="summary")
2018-04-06 08:17:11 +02:00
//- Color of the embed sidebar in Discord..
//- This is equal to link-color in the styles.
2018-04-16 16:28:42 +02:00
meta(name="theme-color", content="#a7ff47")
2018-04-16 16:11:32 +02:00
//- Facebook App ID
meta(property="fb:app_id", content="915407915202908")
2017-11-21 15:30:30 +01:00
2017-11-09 08:45:51 +01:00
for _, name := range meta
meta(name=name, content=openGraph.Meta[name])
for _, name := range tags
meta(property=name, content=openGraph.Tags[name])
2017-06-25 18:06:03 +02:00
link(rel="chrome-webstore-item", href="https://chrome.google.com/webstore/detail/hajchfikckiofgilinkpifobdbiajfch")
2017-06-04 01:17:00 +02:00
link(rel="manifest", href="/manifest.json")
2017-11-29 13:56:34 +01:00
//- Icons
link(rel="icon", type="image/webp", sizes="64x64", href="//media.notify.moe/images/brand/64.webp")
link(rel="icon", type="image/webp", sizes="128x128", href="//media.notify.moe/images/brand/128.webp")
link(rel="icon", type="image/webp", sizes="512x512", href="//media.notify.moe/images/brand/512.webp")
link(rel="icon", type="image/png", sizes="64x64", href="//media.notify.moe/images/brand/64.png")
link(rel="icon", type="image/png", sizes="128x128", href="//media.notify.moe/images/brand/128.png")
link(rel="icon", type="image/png", sizes="512x512", href="//media.notify.moe/images/brand/512.png")
link(rel="apple-touch-icon", sizes="180x180", type="image/png", href="//media.notify.moe/images/brand/180.png")
2016-10-29 01:11:25 +09:00
body
2017-06-24 21:07:45 +02:00
#container(class=utils.GetContainerClass(ctx))
2017-07-22 15:04:54 +02:00
//- #header
//- Navigation(user)
#columns
2017-11-03 09:34:21 +01:00
Sidebar(user)
Content(content)
2017-07-22 15:04:54 +02:00
LoadingAnimation
StatusMessage
2018-03-09 12:50:01 +01:00
ExtensionNavigation(user)
2017-06-30 17:51:17 +02:00
if user != nil
2018-03-07 14:52:56 +01:00
#user(data-id=user.ID, data-pro=user.IsPro(), data-theme=user.Settings().Theme)
2017-11-03 09:34:21 +01:00
script(src="/scripts")
2017-11-17 14:51:55 +01:00
script(type="application/ld+json")!= organization
2017-11-03 09:34:21 +01:00
component Content(content string)
#content-container
main#content.fade!= content