Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-07-26 21:13:31 +0300
committerVincent Tam <sere@live.hk>2019-07-26 21:15:31 +0300
commit7f91aaf7add8a8c2528b513a9ef9315cd2ae9db3 (patch)
tree0986e16ed16be5815788d4a46b0321f7c340465e /layouts
parent500a780b0dfc733a307bf7cd0da8d9c026ddd86f (diff)
Dynamically set form action URL
https://www.willmaster.com/library/manage-forms/bot-block-for-forms.php
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/staticman-comments.html3
2 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7235d83..5bdd6f6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -68,7 +68,7 @@
{{ end }}
{{ if .Site.Params.staticman }}
<script src="{{ "js/jquery.min.js" | relURL }}"></script>
- {{ $smjs := resources.Get "js/staticman.js" }}
+ {{ $smjs := resources.Get "js/staticman.js" | resources.ExecuteAsTemplate "js/staticman.js" .Site.Params.staticman }}
<script src="{{ $smjs.RelPermalink }}"></script>
{{ partial "staticman-comments.html" . }}
{{ end }}
diff --git a/layouts/partials/staticman-comments.html b/layouts/partials/staticman-comments.html
index 1a7d584..ac49778 100644
--- a/layouts/partials/staticman-comments.html
+++ b/layouts/partials/staticman-comments.html
@@ -55,8 +55,7 @@
{{ end }}
{{ end }}
-<form id="comment-form" class="js-form form" method="post"
- action="{{ .Site.Params.staticman.endpoint | default "https://staticman-frama.herokuapp.com" }}/v3/entry/{{ .Site.Params.staticman.gitProvider }}/{{ .Site.Params.staticman.repo }}/{{ .Site.Params.staticman.branch }}/comments">
+<form id="comment-form" class="js-form form" method="post" action="https://example.com/">
<!-- Start comment form display reply target -->
<p class="reply-notice hidden">