-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultTemplates_bootstrap.go
68 lines (60 loc) · 2.12 KB
/
defaultTemplates_bootstrap.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package main
const DefaultTemplate_bootstrap = `<!-- default.tmpl -->
<article>
<div>{{ .Content }}</div>
</article>
`
const ListTemplate_bootstrap = `<!-- list.tmpl -->
<article>
<ul>
{{ range .Files }}
<li><a href="{{ .OutputPath }}">{{ .MetaData.title }}</a></li>
{{ end }}
</ul>
</article>
`
const PageTemplate_bootstrap = `<!-- fullpage.tmpl -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/asset/css/styles.css">
</head>
<body>
{{ template "header.tmpl" . }}
<main class="main container">
{{ .Content }}
</main>
{{ template "footer.tmpl" . }}
</body>
</html>
`
const HeaderTemplate_bootstrap = `<!-- header.tmpl -->
<div class="px-4">
<header class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
{{ .Logo }}
<span class="fs-4 mx-3">{{ .Title }}</span>
</a>
{{ template "navigation.tmpl" . }}
</header>
</div>
`
const NavigationTemplate_bootstrap = `<!-- navigation.tmpl -->
<ul class="nav nav-pills">
<li class="nav-item"><a href="/" class="nav-link">Home</a></li>
<li class="nav-item"><a href="/test.html" class="nav-link">Test page</a></li>
<li class="nav-item"><a href="#" class="nav-link">About</a></li>
</ul>
`
const FooterTemplate_bootstrap = `<!-- footer.tmpl -->
<footer class="pt-5 my-5 text-muted border-top container">
<p>© 2024 Site Name. All rights reserved.</p>
</footer>
`
const css_bootstrap = `/* styles.css */
`