Move page descriptions to page metadata

This commit is contained in:
NeilBrommer 2018-06-13 20:28:03 -07:00
parent 7ab51de6b2
commit d5481f9773
4 changed files with 19 additions and 27 deletions

View file

@ -7,22 +7,19 @@ draft = false
weight = -70 weight = -70
+++ +++
<div class="jumbotron">
<h1>Contact</h1>
<div id="successAlert" class="alert alert-success" role="alert" style="display: none;">Message sent successfully!</div> <div id="successAlert" class="alert alert-success" role="alert" style="display: none;">Message sent successfully!</div>
<div id="errorAlert" class="alert alert-danger" role="alert" style="display: none"></div> <div id="errorAlert" class="alert alert-danger" role="alert" style="display: none"></div>
<form id="contactForm"> <form id="contactForm" class="border rounded bg-light p-1 p-sm-4">
<div class="form-group"> <div class="form-group">
<label for="nameField">Name <label for="nameField">Name
<span class="required">\*</span> <span class="required">*</span>
</label> </label>
<input id="nameField" type="text" required="required" class="form-control"> <input id="nameField" type="text" required="required" class="form-control">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="emailField">Email Address <label for="emailField">Email Address
<span class="required">\*</span> <span class="required">*</span>
</label> </label>
<input id="emailField" type="email" required="required" class="form-control"> <input id="emailField" type="email" required="required" class="form-control">
</div> </div>
@ -32,7 +29,7 @@ draft = false
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="messageField">Message <label for="messageField">Message
<span class="required">\*</span> <span class="required">*</span>
</label> </label>
<textarea id="messageField" rows="5" required="required" class="form-control"></textarea> <textarea id="messageField" rows="5" required="required" class="form-control"></textarea>
</div> </div>
@ -41,7 +38,6 @@ draft = false
</div> </div>
<button id="contactSubmit" type="submit" class="btn btn-primary">Submit</button> <button id="contactSubmit" type="submit" class="btn btn-primary">Submit</button>
</form> </form>
</div>
<script src='https://www.google.com/recaptcha/api.js'></script> <script src='https://www.google.com/recaptcha/api.js'></script>

View file

@ -2,16 +2,10 @@
title = "Links" title = "Links"
date = 2018-05-12T14:28:21-07:00 date = 2018-05-12T14:28:21-07:00
draft = false draft = false
description = "A list of links (mostly to articles) that I find useful or interesting."
[menu] [menu]
[menu.main] [menu.main]
weight = -80 weight = -80
+++ +++
<div class="jumbotron">
<h1>Links</h1>
<p>
A list of links (mostly to articles) that I find useful or interesting.
</p>
</div>
{{< linkCardList >}} {{< linkCardList >}}

View file

@ -2,23 +2,15 @@
title = "Resume" title = "Resume"
date = 2018-05-12T11:48:46-07:00 date = 2018-05-12T11:48:46-07:00
draft = false draft = false
description = """
References and more contact information available on request via the [contact page](/contact).
PDF version available [here](/NeilBrommer-WebResume.pdf)"""
[menu] [menu]
[menu.main] [menu.main]
weight = -90 weight = -90
+++ +++
<div class="jumbotron">
<h1>Resume</h1>
<p>
Work history, references, and more contact information available on request via the
<a href="contact.html">contact page</a>.
</p>
<p>
PDF version available
<a href="NeilBrommer-WebResume.pdf">here</a>.
</p>
</div>
<h2>Education</h2> <h2>Education</h2>
<p> <p>
<div class="row"> <div class="row">

View file

@ -5,6 +5,16 @@
{{ partial "navbar" .}} {{ partial "navbar" .}}
<div class="container"> <div class="container">
{{ if isset .Params "description" }}
<div class="jumbotron">
<h1 class="display-4 mb-4">{{ .Title }}</h1>
{{ .Params.description | markdownify }}
</div>
{{ else }}
<h1 class="display-4 mb-4">{{ .Title }}</h1>
{{ end }}
{{.Content}} {{.Content}}
</div> </div>
</body> </body>