1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00
gochan/templates/page_header.html

36 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{with .board -}}
{{with $.op -}}
<title>{{.TitleText}}</title>
{{- else}}
<title>/{{$.board.Dir}}/ - {{$.board.Title}}</title>
{{end}}
{{- else -}}
<title>{{with $.pageTitle}}{{$.pageTitle}} - {{end}}{{.siteConfig.SiteName}}</title>
{{- end}}
<link rel="stylesheet" href="{{webPath "/css/global.css"}}" />
{{with .board -}}
<link id="theme" rel="stylesheet" href="{{webPath "/css/" (getBoardDefaultStyle $.board.Dir)}}" />
{{- else -}}
<link id="theme" rel="stylesheet" href="{{webPath "/css/" .boardConfig.DefaultStyle}}" />
{{- end}}
<link rel="shortcut icon" href="{{webPath "/favicon.png"}}">
{{- if .boardConfig.EnableGeoIP -}}
<link id="flags" rel="stylesheet" href="{{webPath `/css/flags.css`}}"/>
{{- end -}}
<script type="text/javascript" src="{{webPath "/js/consts.js"}}"></script>
<script type="text/javascript" src="{{webPath "/js/gochan.js"}}"></script>
</head>
<body>
{{template "topbar" .}}
{{with $.pageTitle -}}<header>
<h1 id="board-title">{{$.pageTitle}}</h1>
{{with $.includeDashboardLink -}}
<a href="{{webPath "/manage"}}" class="board-subtitle">Return to dashboard</a><br/>
{{- end}}
</header>{{end}}
<div id="content">