init
This commit is contained in:
17
themes/godocs-1/layouts/_default/baseof.html
Normal file
17
themes/godocs-1/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
<head>
|
||||
{{ partial "page-transition.html" . }}
|
||||
{{- partial "head.html" . -}}
|
||||
{{- partialCached "style.html" . -}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{- partialCached "preloader.html" . -}}
|
||||
{{- partial "header.html" . -}}
|
||||
{{- block "main" . }}{{- end }}
|
||||
{{- partialCached "footer.html" . -}}
|
||||
{{- partialCached "script.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
17
themes/godocs-1/layouts/_default/changelog.html
Normal file
17
themes/godocs-1/layouts/_default/changelog.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-10 mx-auto">
|
||||
<div class="py-5 px-4 px-lg-5 shadow rounded content">
|
||||
<h1 class="mb-4 fw-bold">{{ .Title }}</h1>
|
||||
<p>{{.Params.Description | markdownify}}</p>
|
||||
<div class="mt-5">{{ .Content | markdownify }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
47
themes/godocs-1/layouts/_default/contact.html
Normal file
47
themes/godocs-1/layouts/_default/contact.html
Normal file
@@ -0,0 +1,47 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<div class="p-4 p-sm-5 shadow rounded content">
|
||||
<h2 class="section-title">{{ .Title }}</h2>
|
||||
<form method="POST" action="{{ site.Params.contact_form_action }}">
|
||||
<div class="row gy-4">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="fname">{{ i18n "first_name" }}</label>
|
||||
<input type="text" class="form-control text-dark" id="fname" name="fname" placeholder="Your First Name" required>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="lname">{{ i18n "last_name" }}</label>
|
||||
<input type="text" class="form-control text-dark" id="lname" name="lname" placeholder="Your Last Name">
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="email">{{ i18n "email" }}</label>
|
||||
<input type="email" class="form-control text-dark" id="email" name="email" placeholder="Your Email Address" required>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="reason">{{ i18n "contact_reason" }}</label>
|
||||
<select class="form-select rounded-0 px-0" id="inputGroupSelect01">
|
||||
<option selected disabled>Choose Your Reason</option>
|
||||
<option value="business">Business</option>
|
||||
<option value="ticket">Ticket</option>
|
||||
<option value="project">Project</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label for="message">{{ i18n "write_message" }}</label>
|
||||
<textarea name="message" id="message" class="form-control text-dark" placeholder="Your Text here ..."></textarea>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<button type="submit" class="btn btn-primary">{{ i18n "send" }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
26
themes/godocs-1/layouts/_default/index.json
Normal file
26
themes/godocs-1/layouts/_default/index.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- /* Verzamel alle pagina's die je wilt doorzoeken */ -}}
|
||||
{{- $pages := where .Site.Pages "Type" "!=" "json" -}}
|
||||
{{- $pages = where $pages "Params.ignoreSearch" "!=" true -}}
|
||||
|
||||
{{- /* Bouw een slice met objecten voor de search-JSON */ -}}
|
||||
{{- $items := slice -}}
|
||||
|
||||
{{- range $e := $pages -}}
|
||||
{{- $section := "" -}}
|
||||
{{- with $e.Section }}{{ $section = . | humanize }}{{ end -}}
|
||||
|
||||
{{- $title := cond (isset $e.Params "bannertext") $e.Params.bannertext $e.Title -}}
|
||||
|
||||
{{- $obj := dict
|
||||
"section" $section
|
||||
"url" $e.Permalink
|
||||
"title" $title
|
||||
"description" $e.Description
|
||||
"searchKeyword" $e.Params.searchKeyword
|
||||
"content" $e.Plain
|
||||
-}}
|
||||
{{- $items = $items | append $obj -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Laat Hugo alles in één keer omzetten naar geldige JSON */ -}}
|
||||
{{- $items | jsonify -}}
|
||||
5
themes/godocs-1/layouts/_default/list.html
Normal file
5
themes/godocs-1/layouts/_default/list.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "default.html" . }}
|
||||
|
||||
{{ end }}
|
||||
29
themes/godocs-1/layouts/_default/search.html
Normal file
29
themes/godocs-1/layouts/_default/search.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<h2 class="mb-5 fw-medium">Search result for
|
||||
<span class="text-primary">
|
||||
<script>
|
||||
var str = (window.location.search).substr(3);
|
||||
var result = str.replaceAll("+", " ");
|
||||
document.write(decodeURI(result));
|
||||
</script>
|
||||
</span>
|
||||
</h2>
|
||||
<div class="p-5 shadow rounded">
|
||||
<div id="search-results"></div>
|
||||
<script id="search-result-template" type="text/x-js-template">
|
||||
<div class="py-4 search-item" id="summary-${key}">
|
||||
<a class="h4 mb-0" href="${link}">${title}</a>
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
5
themes/godocs-1/layouts/_default/single.html
Normal file
5
themes/godocs-1/layouts/_default/single.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "default.html" . }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user