hubl/src/index.pug

90 lines
4.3 KiB
Plaintext
Raw Normal View History

2018-12-17 14:20:36 +00:00
include get_config.pug
doctype html
2018-09-28 19:20:15 +00:00
html(lang="en")
head
meta(charset="UTF-8")
2020-05-08 13:27:44 +00:00
title #{clientName || "My Personal Hubl"}
2018-09-28 19:20:15 +00:00
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(http-equiv="X-UA-Compatible", content="ie=edge")
2020-05-08 13:27:44 +00:00
if clientFavicon
link(rel="icon" type="image/png" href=`${clientFavicon}`)
else
link(rel="icon" type="image/png" href="/images/favicon.png")
2018-09-28 19:20:15 +00:00
include dependencies.pug
2020-02-03 13:47:58 +00:00
if clientCSS
link(rel='stylesheet', href=`${clientCSS}`)
2018-11-17 11:08:47 +00:00
body
.wrapper
2020-06-03 12:16:29 +00:00
header#header.header.is-spaced(role='banner')
include header.pug
nav#main__menu.left-menu.jsLeftMenu
include menu-left.pug
main#viewport.content.notLoggedIn
2019-05-13 16:50:34 +00:00
2020-04-15 13:21:02 +00:00
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
2020-05-27 06:44:54 +00:00
#dashboard(hidden).no-sidebar.with-padding
include page-dashboard.pug
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
2020-06-11 13:20:20 +00:00
#members(hidden).no-sidebar.with-padding
include page-directory.pug
2019-05-13 16:50:34 +00:00
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
2020-05-27 06:44:54 +00:00
#job-offers(hidden).no-sidebar.with-padding
2020-06-18 18:02:54 +00:00
hubl-reactivity(data-src=`${endpoints.joboffers || endpoints.get.joboffers}current/` target-src=`${endpoints.joboffers || endpoints.get.joboffers}`)
hubl-reactivity(data-src=`${endpoints.joboffers || endpoints.get.joboffers}current/` target-src=`${endpoints.joboffers || endpoints.get.joboffers}expired/`)
hubl-reactivity(data-src=`${endpoints.joboffers || endpoints.get.joboffers}expired/` target-src=`${endpoints.joboffers || endpoints.get.joboffers}`)
hubl-reactivity(bind-user nested-field="joboffers" target-src=`${endpoints.joboffers || endpoints.get.joboffers}expired/`)
hubl-reactivity(bind-user nested-field="joboffers" target-src=`${endpoints.joboffers || endpoints.get.joboffers}`)
hubl-reactivity(bind-user nested-field="joboffers" target-src=`${endpoints.joboffers || endpoints.get.joboffers}current/`)
include page-job-offers.pug
if endpoints.projects || (endpoints.get && endpoints.get.projects)
#project(hidden).with-sidebar
2020-06-18 18:02:54 +00:00
hubl-reactivity(data-src=`${endpoints.projects || endpoints.get.projects}joinable/` target-src=`${endpoints.projects || endpoints.get.projects}`)
hubl-reactivity(bind-user nested-field="projects" target-src=`${endpoints.projects || endpoints.get.projects}`)
hubl-reactivity(bind-user nested-field="projects" target-src=`${endpoints.projects || endpoints.get.projects}joinable/`)
include page-project.pug
2019-05-13 16:50:34 +00:00
if endpoints.circles || (endpoints.get && endpoints.get.circles)
#circle(hidden).with-sidebar
2020-06-18 18:02:54 +00:00
hubl-reactivity(data-src=`${endpoints.circles || endpoints.get.circles}joinable/` target-src=`${endpoints.circles || endpoints.get.circles}`)
hubl-reactivity(bind-user nested-field="circles" target-src=`${endpoints.circles || endpoints.get.circles}`)
hubl-reactivity(bind-user nested-field="circles" target-src=`${endpoints.circles || endpoints.get.circles}joinable/`)
include page-circle.pug
2019-05-14 15:32:42 +00:00
if endpoints.users || (endpoints.get && endpoints.get.users)
#messages(hidden).with-sidebar
include page-messages.pug
2020-02-03 14:43:16 +00:00
if endpoints.events || (endpoints.get && endpoints.get.events)
#events(hidden)
include page-events.pug
if endpoints.resources || (endpoints.get && endpoints.get.resources)
#resources(hidden)
include page-resources.pug
#admin(hidden).with-sidebar
include page-admin.pug
2020-06-01 10:42:35 +00:00
#about.no-sidebar.with-padding
include page-about.pug
2020-05-27 06:44:54 +00:00
if (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.uploads || (endpoints.post && endpoints.post.uploads)) && (endpoints.users || (endpoints.post && endpoints.post.users))
#profile(hidden).no-sidebar
include page-profile.pug
if analytics
each provider in analytics
if provider.type && provider.url && provider.url
2020-06-18 18:02:54 +00:00
solid-analytics(
type=`${provider.type}`
url=`${provider.url}`
id=`${provider.id}`
)