Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Update Staticman to v3 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacollins authored May 11, 2019
1 parent cce7d0b commit 341952d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ disableLanguages = [""]
# prefer to use. See Staticman.yml for additional settings.
[params.staticman]
# Sets Statiman to be active
# https://github.com/apps/staticman-net
staticman = false
# Sets the location for Staticman to connect to
username = ""
Expand Down
2 changes: 1 addition & 1 deletion layouts/post/staticman.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h2>Say something</h2>
{{ with .Site.Params.staticman }}
<form class="post-new-comment" method="POST" action="https://api.staticman.net/v2/entry/{{ .username }}/{{ .repo }}/{{ .branch }}/comments">
<form class="post-new-comment" method="POST" action="https://dev.staticman.net/v3/entry/github/{{ .username }}/{{ .repo }}/{{ .branch }}/data/comments">
{{ end }}
<input type="hidden" name="options[redirect]" value="{{ .Site.BaseURL }}{{ .RelPermalink }}">
<input type="hidden" name="options[entryId]" value="{{ .UniqueID }}">
Expand Down

0 comments on commit 341952d

Please sign in to comment.