-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultTemplates.go
64 lines (56 loc) · 1.3 KB
/
defaultTemplates.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
package main
const DefaultTemplate_none = `<!-- default.tmpl -->
<article>
<div>{{ .Content }}</div>
</article>
`
const ListTemplate_none = `<!-- list.tmpl -->
<article>
<ul>
{{ range .Files }}
<li><a href="{{ .OutputPath }}">{{ .MetaData.title }}</a></li>
{{ end }}
</ul>
</article>
`
const PageTemplate_none = `<!-- fullpage.tmpl -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/asset/css/styles.css">
</head>
<body>
{{ template "header.tmpl" . }}
{{ template "navigation.tmpl" . }}
<div class="main container">
{{ .Content }}
</div>
{{ template "footer.tmpl" . }}
</body>
</html>
`
const HeaderTemplate_none = `<!-- header.tmpl -->
<header>
<h1>Site Logo Here</h1>
<h2>{{ .SiteName }}</h2>
</header>
`
const NavigationTemplate_none = `<!-- navigation.tmpl -->
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About Us</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
</nav>
`
const FooterTemplate_none = `<!-- footer.tmpl -->
<footer>
<p>© 2024 Site Name. All rights reserved.</p>
</footer>
`
const css_none = `/* styles.css */
`