diff options
-rw-r--r-- | exampleSite/data/contactinfo.yaml | 2 | ||||
-rw-r--r-- | layouts/partials/footer/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/nav.html | 7 |
3 files changed, 9 insertions, 4 deletions
diff --git a/exampleSite/data/contactinfo.yaml b/exampleSite/data/contactinfo.yaml index 09994cd..9a492d9 100644 --- a/exampleSite/data/contactinfo.yaml +++ b/exampleSite/data/contactinfo.yaml @@ -1,3 +1,5 @@ +contactformaction: 'post-action' + address: - line: '1234 Somewhere Road #87257' - line: 'Nashville, TN 00000-0000' diff --git a/layouts/partials/footer/index.html b/layouts/partials/footer/index.html index 6ee90aa..c10ed45 100644 --- a/layouts/partials/footer/index.html +++ b/layouts/partials/footer/index.html @@ -1,7 +1,8 @@ <!-- Footer --> <footer id="footer"> + {{ with .Site.Data.contactinfo.contactformaction }} <section> - <form method="post" action="#"> + <form method="post" action="{{ . }}"> <div class="field"> <label for="name">Name</label> <input type="text" name="name" id="name" /> @@ -19,6 +20,7 @@ </ul> </form> </section> + {{ end }} <section class="split contact"> {{ with .Site.Data.contactinfo.address }} <section class="alt"> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 1439129..994dd9e 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,9 +1,10 @@ <!-- Nav --> <nav id="nav"> <ul class="links"> - <li class="active"><a href="index.html">This is Massively</a></li> - <li><a href="generic.html">Generic Page</a></li> - <li><a href="elements.html">Elements Reference</a></li> + <li class="active"><a href="{{ .Site.BaseURL }}">{{ .Title }}</a></li> + {{ with .Site.Data.contactinfo }} + <li><a href="{{ .Site.BaseURL }}#footer">Contact</a></li> + {{ end }} </ul> {{ with .Site.Data.social }} <ul class="icons"> |