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

Remove hardcoded text on contact page #26

Merged
merged 1 commit into from
Jan 4, 2023
Merged
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
21 changes: 20 additions & 1 deletion exampleSite/content/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,23 @@ title: "Let's, Talk About You"
description: "this is meta-description"
layout: "contact"
draft: false
---

message: "Let's, Talk About You"
button_text: "Send Now"

instruction_a: "Send Us A"
instruction_b: " message"

full_name_title: "Full name"
full_name_placeholder: "Thomas Milano"

email_title: "Email Address"
email_placeholder: "[email protected]"

subject_title: "Subject"
subject_placeholder: "Blog advertisement"

content_title: "Your Message Here"
content_placeholder: "Hello I’m Mr ‘x’ from.............."

---
24 changes: 12 additions & 12 deletions layouts/_default/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@
<div class="row section-sm pt-0" style="background-image: url('{{ $bgImage.RelPermalink }}')">
<div class="col-lg-6">
<div class="content pt-lg-5 pb-3 pb-lg-0">
<h2>Let’s Talk About You</h2>
<h2>{{ .Params.message | markdownify }}</h2>
</div>
</div>
<div class="col-lg-6">
<div class="p-4 border rounded-4">
<h3 class="h4 mb-5 text-capitalize">Send Us A
<span class="text-primary"> message <i class="fas fa-arrow-right ms-2"></i></span>
<h3 class="h4 mb-5 text-capitalize">{{ .Params.instruction_a | markdownify }}
<span class="text-primary">{{ .Params.instruction_b | markdownify }}<i class="fas fa-arrow-right ms-2"></i></span>
</h3>
<form action="{{site.Params.contact_form_action | safeURL}}" method="POST">
<div class="form-group">
<label for="name" class="form-label">Full name <small>*</small></label>
<input type="text" class="form-control" name="name" id="name" placeholder="Thomas Milano" required>
<label for="name" class="form-label">{{ .Params.full_name_title | markdownify }}<small> *</small></label>
<input type="text" class="form-control" name="name" id="name" placeholder="{{ .Params.full_name_placeholder | markdownify }}" required>
</div>
<div class="form-group">
<label for="email" class="form-label">Email Address <small>*</small></label>
<input type="email" name="email" class="form-control" id="email" placeholder="[email protected]" required>
<label for="email" class="form-label">{{ .Params.email_title | markdownify }}<small> *</small></label>
<input type="email" name="email" class="form-control" id="email" placeholder="{{ .Params.email_placeholder | markdownify }}" required>
</div>
<div class="form-group">
<label for="name" class="form-label">Subject <small>*</small></label>
<input type="text" class="form-control" name="subject" id="subject" placeholder="Blog advertisement"
<label for="name" class="form-label">{{ .Params.subject_title | markdownify }}<small> *</small></label>
<input type="text" class="form-control" name="subject" id="subject" placeholder="{{ .Params.subject_placeholder | markdownify }}"
required>
</div>
<div class="form-group">
<label for="message" class="form-label">Your Message Here <small>*</small></label>
<textarea class="form-control" placeholder="Hello I’m Mr ‘x’ from.............." id="message"
<label for="message" class="form-label">{{ .Params.content_title | markdownify }}<small> *</small></label>
<textarea class="form-control" placeholder="{{ .Params.content_placeholder | markdownify }}" id="message"
name="message" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Send Now</button>
<button type="submit" class="btn btn-primary">{{ .Params.button_text | markdownify }}</button>
</form>
</div>
</div>
Expand Down