-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
104 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
--- | ||
title: Kontakt | ||
type: page | ||
--- | ||
<form method="post" action="https://forms.un-static.com/forms/edabbc7e6afca6f165ce36fc7b6fa6997859c092"> | ||
<div> | ||
<span data-feather='user'></span> Name: | ||
<div class="col-8"> | ||
<input id="name" name="name" type="text" required="required"> | ||
</div> | ||
</div> | ||
<div> | ||
<span data-feather='mail'></span> E-Mail Adresse: | ||
<div> | ||
<input id="email" name="email" type="text" required="required"> | ||
</div> | ||
</div> | ||
<div> | ||
<span data-feather='message-square'></span> Nachricht: | ||
<div> | ||
<textarea id="message" name="message" cols="40" rows="10" required="required"></textarea> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<button name="submit" type="submit"><span data-feather='send'></span> Abschicken</button> | ||
</div> | ||
</form> | ||
type: contact | ||
|
||
<div> | ||
<p><small>(Powered by <a rel="nofollow" href="Un-static Forms">Un-static Forms</a>)</small></p> | ||
</div> | ||
form: | ||
action: https://forms.un-static.com/forms/edabbc7e6afca6f165ce36fc7b6fa6997859c092 | ||
input: | ||
- label: Name | ||
id: name | ||
icon: user | ||
type: text | ||
required: true | ||
- label: Email Adresse | ||
id: email | ||
icon: mail | ||
type: email | ||
required: true | ||
message: Nachricht | ||
method: post | ||
submit: Abschicken | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
--- | ||
title: Contact | ||
type: page | ||
--- | ||
<form method="post" action="https://forms.un-static.com/forms/edabbc7e6afca6f165ce36fc7b6fa6997859c092"> | ||
<div> | ||
<span data-feather='user'></span> Name: | ||
<div class="col-8"> | ||
<input id="name" name="name" type="text" required="required"> | ||
</div> | ||
</div> | ||
<div> | ||
<span data-feather='mail'></span> Email address: | ||
<div> | ||
<input id="email" name="email" type="text" required="required"> | ||
</div> | ||
</div> | ||
<div> | ||
<span data-feather='message-square'></span> Message: | ||
<div> | ||
<textarea id="message" name="message" cols="40" rows="10" required="required"></textarea> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<button name="submit" type="submit"><span data-feather='send'></span> Send</button> | ||
</div> | ||
</form> | ||
type: contact | ||
|
||
<div> | ||
<p><small>(Powered by <a rel="nofollow" href="Un-static Forms">Un-static Forms</a>)</small></p> | ||
</div> | ||
form: | ||
action: https://forms.un-static.com/forms/edabbc7e6afca6f165ce36fc7b6fa6997859c092 | ||
input: | ||
- label: Name | ||
id: name | ||
icon: user | ||
type: text | ||
required: true | ||
- label: Email address | ||
id: email | ||
icon: mail | ||
type: email | ||
required: true | ||
message: Message | ||
method: post | ||
submit: Send | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ define "main" }} | ||
{{ if eq .Type "post" }} | ||
{{- partial "post.html" . -}} | ||
{{- partial "toc.html" . -}} | ||
{{ end }} | ||
|
||
{{ if eq .Type "page" }} | ||
{{- partial "page.html" . -}} | ||
{{- partial "toc.html" . -}} | ||
{{ end }} | ||
|
||
{{ if eq .Type "contact" }} | ||
{{- partial "contact.html" . -}} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div class="post container"> | ||
<div class="post-header-section"> | ||
<h1>{{ .Title | markdownify }}</h1> | ||
</div> | ||
|
||
{{ $action := .Params.form.action }} | ||
{{ $formInput := .Params.form.input }} | ||
{{ $message := .Params.form.message }} | ||
{{ $method := .Params.form.method }} | ||
{{ $submit := .Params.form.submit }} | ||
|
||
<div class="contact-form"> | ||
<form method="{{ $method }}" action="{{ $action }}"> | ||
{{ range $input := $formInput }} | ||
<label for="{{ .id }}"><span data-feather='{{ .icon }}'></span> {{ .label }}:</label><br /> | ||
<input type="{{ .type }}" id="{{ .id }}" name="{{ .id }}" {{ if .required }}required{{ end }}><br /> | ||
{{ end }} | ||
|
||
<label for="message"><span data-feather='message-square'></span> {{ $message }}:</label><br /> | ||
<textarea id="message" name="message" cols="40" rows="10" required></textarea><br /> | ||
|
||
<button name="submit" type="submit"><span data-feather='send'></span> {{ $submit }}</button> | ||
</form> | ||
|
||
<div> | ||
<p><small>(Powered by <a rel="nofollow" href="Un-static Forms">Un-static Forms</a>)</small></p> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters