Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update archetypes #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
+++
+++
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
10 changes: 7 additions & 3 deletions archetypes/portfolio.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
---
title: "Name of the work 1"
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
image: ""
showonlyimage: false
categories: ["design"]
keywords: ["key", "words"]
topics: ["topic 1"]
tags: ["one", "two"]
weight: 1
---

<!--more-->



16 changes: 5 additions & 11 deletions layouts/contact/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,22 @@ <h1 class="entry-title">{{ .Title }}</h1>
{{ .Content }}

<div id="simple-contact-form" class="scf">
{{ with .Site.Params.email }}
<form method="post" action="https://formspree.io/{{ . }}">
{{ with .Site.Params.formspreeId }}
<form method="post" action="https://formspree.io/{{.}}" target="_blank">
<fieldset class="scf-name">
<label for="scf_name">Name (Required)</label>
<input name="scf_name" id="scf_name" type="text" size="33" maxlength="99" value="" placeholder="Your Name">
<input name="name" id="scf_name" type="text" size="33" maxlength="99" value="" placeholder="Your Name">
</fieldset>
<fieldset class="scf-email">
<label for="scf_email">Email (Required)</label>
<input name="scf_email" id="scf_email" type="text" size="33" maxlength="99" value="" placeholder="Your Email">
</fieldset>
<fieldset class="scf-response">
<label for="scf_response">1 + 1 =</label>
<input name="scf_response" id="scf_response" type="text" size="33" maxlength="99" value="" placeholder="Correct Response">
<input name="_replyto" id="scf_email" type="email" size="33" maxlength="99" value="" placeholder="Your Email">
</fieldset>
<fieldset class="scf-message">
<label for="scf_message">Message (Required)</label>
<textarea name="scf_message" id="scf_message" cols="33" rows="7" placeholder="Your Message"></textarea>
<textarea name="message" id="scf_message" cols="33" rows="7" placeholder="Your Message"></textarea>
</fieldset>
<div class="scf-submit">
<input type="submit" id="scf-button" value="Send email">
<input type="hidden" id="scf-key" name="scf-key" value="process">
<input type="hidden" id="scf-nonce" name="scf-nonce" value="52582b0798">
</div>
</form>
<style>#simple-contact-form fieldset { width: 100%; overflow: hidden; margin: 12px 0; border: 0; padding: 1px; } #simple-contact-form fieldset input { float: left; width: 60%; } #simple-contact-form textarea { float: left; clear: both; width: 95%; } #simple-contact-form label { float: none; clear: both; display: block; margin-bottom: 12px;}</style>
Expand Down