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:
Diffstat (limited to 'layouts/partials/staticman-comments.html')
-rw-r--r--layouts/partials/staticman-comments.html98
1 files changed, 49 insertions, 49 deletions
diff --git a/layouts/partials/staticman-comments.html b/layouts/partials/staticman-comments.html
index ac49778..1100431 100644
--- a/layouts/partials/staticman-comments.html
+++ b/layouts/partials/staticman-comments.html
@@ -1,4 +1,4 @@
-<section class="js-comments staticman-comments">
+<section class='js-comments staticman-comments'>
{{ $slug := replace .RelPermalink "/" "" }}
@@ -17,37 +17,36 @@
{{ $.Scratch.Set "hasComments" 0 }}
{{ range $comments }}
{{ if not .replyThread }}
- {{ $.Scratch.Add "hasComments" 1 }}
{{ $.Scratch.Set "threadID" ._id }}
- <article id="{{ ._id }}" class="static-comment">
- <img class="comment-avatar" src="https://www.gravatar.com/avatar/{{ .email }}?s=48">
+ <article id='{{ ._id }}' class='static-comment'>
+ <img class='comment-avatar' src='https://www.gravatar.com/avatar/{{ .email }}?s=48'>
<h4>
- {{- if .website -}}
- <span class="comment-author"><a rel="external nofollow" href="{{ .website }}">{{ .name }}</a></span>
- {{- else -}}
- <span class="comment-author">{{ .name }}</span>
- {{- end -}}
- <a href="#{{ ._id }}" title="Permalink to this comment"><time datetime="{{ dateFormat "02 Jan 06 15:04 +01:00" .date }}">{{ dateFormat "02/01/2006 15:04" .date }}</time></a>
+ {{ if .website -}}
+ <span class='comment-author'><a rel='external nofollow' href='{{ .website }}'>{{ .name }}</a></span>
+ {{ else -}}
+ <span class='comment-author'>{{ .name }}</span>
+ {{- end }}
+ <a href='#{{ ._id }}' title='Permalink to this comment'><time datetime='{{ dateFormat "02 Jan 06 15:04 +01:00" .date }}'>{{ dateFormat "02/01/2006 15:04" .date }}</time></a>
</h4>
- <div class="comment-content"><p>{{ .comment | markdownify }}</p></div>
- <a class="reply-btn" href="#comment-form" title="{{ ._id }}">{{ i18n "replyToMsg" }}</a>
+ <div class='comment-content'><p>{{ .comment | markdownify }}</p></div>
+ <a class='reply-btn' href='#comment-form' title='{{ ._id }}'>{{ i18n "replyToMsg" }}</a>
</article>
{{ range $comments }}
{{ if eq .replyThread ($.Scratch.Get "threadID") }}
- <article id="{{ ._id }}" class="static-comment static-comment-reply">
- <img class="comment-avatar" src="https://www.gravatar.com/avatar/{{ .email }}?s=48">
+ <article id='{{ ._id }}' class='static-comment static-comment-reply'>
+ <img class='comment-avatar' src='https://www.gravatar.com/avatar/{{ .email }}?s=48'>
<h4>
- {{- if .website -}}
- <span class="comment-author"><a rel="external nofollow" href="{{ .website }}">{{ .name }}</a></span>
- {{- else -}}
- <span class="comment-author">{{ .name }}</span>
- {{- end -}}
- <a href="#{{ .replyID }}" class="reply-target">{{ .replyName }}</a>
- <a href="#{{ ._id }}" title="Permalink to this comment"><time datetime="{{ dateFormat "02 Jan 06 15:04 +01:00" .date }}">{{ dateFormat "02/01/2006 15:04" .date }}</time></a>
+ {{ if .website -}}
+ <span class='comment-author'><a rel='external nofollow' href='{{ .website }}'>{{ .name }}</a></span>
+ {{ else -}}
+ <span class='comment-author'>{{ .name }}</span>
+ {{- end }}
+ <a href='#{{ .replyID }}' class='reply-target'>{{ .replyName }}</a>
+ <a href='#{{ ._id }}' title='Permalink to this comment'><time datetime='{{ dateFormat "02 Jan 06 15:04 +01:00" .date }}'>{{ dateFormat "02/01/2006 15:04" .date }}</time></a>
</h4>
- <div class="comment-content"><p>{{ .comment | markdownify }}</p></div>
- <a class="reply-btn" href="#comment-form" title="{{ .replyThread }}">{{ i18n "replyToMsg" }}</a>
+ <div class='comment-content'><p>{{ .comment | markdownify }}</p></div>
+ <a class='reply-btn' href='#comment-form' title='{{ .replyThread }}'>{{ i18n "replyToMsg" }}</a>
</article>
{{ end }}
{{ end }}
@@ -55,44 +54,45 @@
{{ end }}
{{ end }}
-<form id="comment-form" class="js-form form" method="post" action="https://example.com/">
+<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">
- <strong class="reply-arrow">↷</strong>
- <strong class="reply-name"></strong>
+ <p class='reply-notice hidden'>
+ <strong class='reply-arrow'>↷</strong>
+ <strong class='reply-name'></strong>
</p>
<!-- End comment form display reply target -->
- <input type="hidden" name="options[slug]" value="{{ replace .RelPermalink "/" "" }}">
- <input type="hidden" name="options[parent]" value="">
- <input type="hidden" name="fields[replyThread]" value="">
- <input type="hidden" name="fields[replyID]" value="">
- <input type="hidden" name="fields[replyName]" value="">
+ <input type='hidden' name='options[slug]' value='{{ replace .RelPermalink "/" "" }}'>
+ <input type='hidden' name='options[parent]' value=''>
+ <input type='hidden' name='fields[replyThread]' value=''>
+ <input type='hidden' name='fields[replyID]' value=''>
+ <input type='hidden' name='fields[replyName]' value=''>
- {{ if .Site.Params.staticman.recaptcha }}
- <input type="hidden" name="options[reCaptcha][siteKey]" value="{{ .Site.Params.staticman.recaptcha.sitekey }}">
- <input type="hidden" name="options[reCaptcha][secret]" value="{{ .Site.Params.staticman.recaptcha.secret }}">
- {{ end }}
+ {{- with .Site.Params.staticman.recaptcha -}}
+ <input type='hidden' name='options[reCaptcha][siteKey]' value='{{ .sitekey }}'>
+ <input type='hidden' name='options[reCaptcha][secret]' value='{{ .secret }}'>
+ {{- end }}
- <textarea name="fields[comment]" placeholder="{{ i18n "useMarkdown" }}"></textarea>
- <input type="text" name="fields[name]" placeholder="{{ i18n "yourName" }}">
- <input type="email" name="fields[email]" placeholder="{{ i18n "yourEmail" }}">
- <input type="text" name="fields[website]" placeholder="{{ i18n "yourWebsite" }}">
+ <p class="small">{{ i18n "commentFormInfo" }} *.</p>
+ <textarea name='fields[comment]' placeholder='{{ i18n "useMarkdown" }}*' rows="6" cols="36"></textarea>
+ <input type='text' name='fields[name]' placeholder='{{ i18n "yourName" }}*'>
+ <input type='email' name='fields[email]' placeholder='{{ i18n "yourEmail" }}*'>
+ <input type='text' name='fields[website]' placeholder='{{ i18n "yourWebsite" }}'>
- {{ if .Site.Params.staticman.recaptcha }}
- <div class="g-recaptcha" data-sitekey="{{ .Site.Params.staticman.recaptcha.sitekey }}"></div>
- {{ end }}
+ {{ with .Site.Params.staticman.recaptcha -}}
+ <div class='g-recaptcha' data-sitekey='{{ .sitekey }}'></div>
+ {{- end }}
<!-- Start comment form alert messaging -->
- <p class="js-notice">
- <strong class="js-notice-text submit-success hidden">{{ i18n "successMsg" }}</strong>
- <strong class="js-notice-text submit-failed hidden">{{ i18n "errorMsg" }}</strong>
+ <p class='js-notice'>
+ <strong class='js-notice-text submit-success hidden'>{{ i18n "successMsg" }}</strong>
+ <strong class='js-notice-text submit-failed hidden'>{{ i18n "errorMsg" }}</strong>
</p>
<!-- End comment form alert messaging -->
- <input type="submit" value="{{ i18n "btnSubmit" }}" class="button">
- <input type="submit" value="{{ i18n "btnSubmitted" }}" class="button hidden" disabled>
- <input type="reset" value="{{ i18n "btnReset" }}" class="button">
+ <input type='submit' value='{{ i18n "btnSubmit" }}' class='button'>
+ <input type='submit' value='{{ i18n "btnSubmitted" }}' class='button hidden' disabled>
+ <input type='reset' value='{{ i18n "btnReset" }}' class='button'>
</form>
</section>