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 from DEV #2

Merged
merged 4 commits into from
Apr 17, 2017
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
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ Features
- Contact form
- Custom Robots.txt (changes values based on environment)
- Internal templates for meta data and google analytics
- RSS Discovery

Also includes examples of Hugo Features or Functions:

- Pagination (internal template)
- Taxonomies
- Archetypes
- Custom shortcode
- Hugo built-in menu
Expand Down Expand Up @@ -53,7 +55,7 @@ For more information read the official [setup guide](//gohugo.io/overview/instal

## Getting started

After installing the Agency Theme successfully it requires a just a few more steps to get your site running.
After installing the theme successfully it requires a just a few more steps to get your site running.


### The config file
Expand All @@ -77,28 +79,25 @@ This theme includes a shortcode for a contact form that you can add to any page

```
{{< form-contact action="http://formspree.io/your@email.com" >}}

```


### Nearly finished

In order to see your site in action, run Hugo's built-in local server.

$ hugo server
`$ hugo server`

Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser.


## Contributing

Did you found a bug or got an idea for a new feature? Feel free to use the [issue tracker](https://github.com/budparr/gohugo-theme-ananke/issues) to let me know.
If you find a bug or have an idea for a feature, feel free to use the [issue tracker](https://github.com/budparr/gohugo-theme-ananke/issues) to let me know.




TODO:

- ADD INSTRUCTIONS
- fix hard-coded link to section https://github.com/budparr/gohugo-default-theme/blob/master/layouts/index.html#L32
- move SRC files to separate branch
- fix hard-coded link to [section](https://github.com/budparr/gohugo-theme-ananke/blob/master/layouts/index.html#L32)
5 changes: 5 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

<link href='{{ "dist/main.css" | absURL }}' rel='stylesheet' type="text/css" />

{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}

{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
Expand Down
10 changes: 5 additions & 5 deletions layouts/shortcodes/form-contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

<form class="black-80 sans-serif" accept-charset="UTF-8" action="{{ .Get "action" }}" method="POST">

<label class="{{ $.Scratch.Get "labelClasses" }}" for="first_name">Your Name</label>
<input type="text" id="first_name" name="first_name" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " />
<label class="{{ $.Scratch.Get "labelClasses" }}" for="name">Your Name</label>
<input type="text" id="name" name="name" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="name"/>

<label class="{{ $.Scratch.Get "labelClasses" }}" for="email">Email Address</label>
<input type="email" id="email" name="email" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " />
<div class="requirements f6 gray glow i ph3 overflow-hidden TK">
<input type="email" id="email" name="email" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="email"/>
<div class="requirements f6 gray glow i ph3 overflow-hidden">
Must be a valid email address.
</div>

<label class="{{ $.Scratch.Get "labelClasses" }}" for="message">Message</label>
<textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-describedby="comment-desc"></textarea>
<textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-labelledby="message"></textarea>

<input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-blck bg-animate bg-black" type="submit" value="Send" />

Expand Down