Skip to content

Commit

Permalink
Merge pull request #9 from VincentTam/smapich
Browse files Browse the repository at this point in the history
"dev.statican.net" → "api.staticman.net"
  • Loading branch information
one committed Jul 5, 2019
2 parents eb38d88 + e2cbc7c commit f3b1052
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ By default, [Staticman](https://staticman.net) comments are disabled. If you wou

```toml
[Params.staticman]
endpoint = "https://https://dev.staticman.net"
endpoint = "https://https://api.staticman.net"
gitProvider = "github"
username = "your-username"
repository = "hugo-swift-theme"
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pygmentsCodefencesGuessSyntax = true
pygmentsStyle = "friendly"

# [Params.staticman]
# endpoint = "https://dev.staticman.net" # URL of your own API deployment (without trailing slash), default: "https://dev.staticman.net"
# endpoint = "https://api.staticman.net" # URL of your own API deployment (without trailing slash), default: "https://api.staticman.net"
# gitProvider = "github" # Either "github" or "gitlab"
# username = "username" # GitHub/GitLab user name
# repository = "repo" # GitHub/GitLab user name
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/data/staticman.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
username: "username"
repository: "repo"
endpoint: "https://dev.staticman.net/v3/entry/github"
endpoint: "https://api.staticman.net/v3/entry/github"
branch: "master"
2 changes: 1 addition & 1 deletion layouts/partials/comments-form.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $vs := .Site.Params.staticman }}
<span class = 'form_toggle'>Comment</span>
<form method = 'POST' action = '{{ $vs.endpoint | default "https://dev.staticman.net" }}/v3/entry/{{ $vs.gitProvider }}/{{ $vs.username }}/{{ $vs.repository }}/{{ $vs.branch }}/comments' class = 'form form-comments' id = 'comments-form'>
<form method = 'POST' action = '{{ $vs.endpoint | default "https://api.staticman.net" }}/v3/entry/{{ $vs.gitProvider }}/{{ $vs.username }}/{{ $vs.repository }}/{{ $vs.branch }}/comments' class = 'form form-comments' id = 'comments-form'>
<input name = 'options[slug]' type = 'hidden' value = '{{ .File.UniqueID }}'>
<label class = 'form_label'>Name</label>
<input name = 'fields[name]' type = 'text' placeholder = 'Name' class = 'form_input' required>
Expand Down

0 comments on commit f3b1052

Please sign in to comment.