✨feature: Wire up contact and thank you pages, add showInNav meta functionality
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" href="/assets/style.css">
|
||||
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -22,12 +23,18 @@
|
||||
{{ template "category_content" . }}
|
||||
{{- else if eq .PageTemplate "contact_page" -}}
|
||||
{{ template "contact_content" . }}
|
||||
{{- else if eq .PageTemplate "thanks_page" -}}
|
||||
{{ template "thanks_content" . }}
|
||||
{{- else -}}
|
||||
<p>Unknown PageTemplate: {{ .PageTemplate }}</p>
|
||||
{{- end -}}
|
||||
</main>
|
||||
|
||||
{{ template "footer" . }}
|
||||
|
||||
{{- if eq .PageTemplate "contact_page" -}}
|
||||
<script src="/assets/contact.js" defer></script>
|
||||
{{- end -}}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user