Skip to content
Snippets Groups Projects
index.pug 2.51 KiB
Newer Older
Clément's avatar
Clément committed
include get_config.pug
Clément's avatar
Clément committed
html(lang="en")
  head
    meta(charset="UTF-8")
    title #{clientName || "My Personal Hubl"}
Clément's avatar
Clément committed
    meta(name="viewport", content="width=device-width, initial-scale=1.0")
    meta(http-equiv="X-UA-Compatible", content="ie=edge")
    //link for google fonts
    <script src="https://code.iconify.design/1/1.0.6/iconify.min.js"></script>
    if clientFavicon
      link(rel="icon" type="image/png" href=`${clientFavicon}`)
    else
      link(rel="icon" type="image/png" href="/images/favicon.png")
Clément's avatar
Clément committed
    include dependencies.pug
    if clientCSS
      link(rel='stylesheet', href=`${clientCSS}`)
    header#header(role='banner')
      include header.pug
      include menu-left.pug
        if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
          #dashboard(hidden).no-sidebar.with-padding
            include page-dashboard.pug

        if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
          #members(hidden).no-sidebar.with-padding
        if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
          #job-offers(hidden).no-sidebar.with-padding
        if endpoints.projects || (endpoints.get && endpoints.get.projects)
          #project(hidden).with-sidebar
            include page-project.pug
        if endpoints.circles || (endpoints.get && endpoints.get.circles)
          #circle(hidden).with-sidebar
            include page-circle.pug
        if endpoints.users || (endpoints.get && endpoints.get.users)
          #messages(hidden).with-sidebar
            include page-messages.pug
        if endpoints.events || (endpoints.get && endpoints.get.events)
          #events(hidden)
            include page-events.pug

        #admin(hidden).with-sidebar

        #about.no-sidebar.with-padding
          include page-about.pug
          
        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
            sib-analytics(
              type=`${provider.type}`
              url=`${provider.url}`
              id=`${provider.id}`