Adding a php contact form feature.
This commit is contained in:
parent
e56f50a91b
commit
a673c28cf2
1 changed files with 187 additions and 0 deletions
17
README.md
17
README.md
|
|
@ -96,6 +96,15 @@ params:
|
|||
```
|
||||
|
||||
|
||||
## Contact form
|
||||
|
||||
If your server support php with the mail() command (very common) you can use the included contact form feature to get a contact form for your site.
|
||||
|
||||
1. Copy the file `themes/zen/static/php/contact.php.example` to `static/php/contact.php`.
|
||||
2. Edit the contact.php file so it has your own e-mail address. You may also change the mail subject prefix.
|
||||
3. Add the shortcode `{{< contact >}}` to a page. Also set `contactform: true` in the front matter for that page so the contact.js file gets loaded.
|
||||
|
||||
|
||||
## Dates
|
||||
|
||||
If "lastmod" is set in the frontmatter on a post that value will be used in the "submitted" section. If not "date" is used.
|
||||
|
|
@ -105,6 +114,14 @@ With "lastmod" set a date section will also appear at the bottom of post telling
|
|||
|
||||
## Shortcodes
|
||||
|
||||
### Contact
|
||||
|
||||
Insert a html5 contact form, see more above.
|
||||
|
||||
```
|
||||
{{< contact >}}
|
||||
```
|
||||
|
||||
### Figure
|
||||
|
||||
Zen comes with a improved version of the built in "figure" shortcut.
|
||||
|
|
|
|||
Loading…
Reference in a new issue