Initial commit
This commit is contained in:
67
layouts/_default/baseof.html
Normal file
67
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,67 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{{ if .Site.Author.name }}
|
||||
<meta content="{{ .Site.Author.name }}" name="author">
|
||||
{{ end }}
|
||||
{{ if .Description }}
|
||||
<meta content="{{ .Description }}" name="description">
|
||||
{{ end }}
|
||||
{{ if or .Keywords .Params.tags .Params.categories }}
|
||||
<meta content="{{ delimit (sort (union (union .Keywords .Params.tags) .Params.categories)) `, ` }}" name="keywords">
|
||||
{{ end }}
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{ if and (and .Title .Site.Title) (or (not (eq .Title .Site.Title)) (not .IsHome)) }}
|
||||
<title>{{ .Title | markdownify | plainify }} · {{ .Site.Title | markdownify | plainify }}</title>
|
||||
{{ else if .Title }}
|
||||
<title>{{ .Title | markdownify | plainify }}</title>
|
||||
{{ else if .Site.Title }}
|
||||
<title>{{ .Site.Title | markdownify | plainify }}</title>
|
||||
{{ end }}
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" rel="stylesheet">
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" rel="stylesheet">
|
||||
{{ range .AlternativeOutputFormats }}
|
||||
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $.Site.Title }}" type="{{ .MediaType.Type }}">
|
||||
{{ end }}
|
||||
{{ if templates.Exists "partials/head.html" }}
|
||||
{{ partial "head" . }}
|
||||
{{ end }}
|
||||
</head>
|
||||
<body class="d-flex flex-column">
|
||||
<div class="container flex-fill">
|
||||
<header>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<nav class="d-flex justify-content-center my-3">
|
||||
<ul class="nav nav-pills">
|
||||
{{ $p := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ $active := or (and (eq .URL `/`) (eq $p.RelPermalink `/`)) (and (ne .URL `/`) (hasPrefix $p.RelPermalink .URL)) }}
|
||||
<li class="nav-item"><a href="{{ .URL }}" class="nav-link{{if $active }} active{{ end }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
<footer>
|
||||
<div class="pb-3 row">
|
||||
<div class="col text-center text-muted">{{ .Site.Copyright | markdownify }}</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<script crossorigin="anonymous" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{{ if .Site.GoogleAnalytics }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ end }}
|
||||
{{ if templates.Exists "partials/body.html" }}
|
||||
{{ partial "body" . }}
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user