diff options
author | Justin Berthault <justin.berthault@zaclys.net> | 2018-04-05 11:27:56 +0300 |
---|---|---|
committer | Justin Berthault <justin.berthault@zaclys.net> | 2018-04-05 11:27:56 +0300 |
commit | 5ffd6281f59e02cb6f2f73c72dcba1dab91299bc (patch) | |
tree | 55f79285427ee0881a01eba9f19aae10589d975c /layouts/partials | |
parent | 998a6edc0077587bfb15d81193a478c7f7f729bc (diff) |
Remove Static Comments
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/comments.html | 27 | ||||
-rw-r--r-- | layouts/partials/form.html | 15 |
2 files changed, 0 insertions, 42 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html deleted file mode 100644 index c804ec6..0000000 --- a/layouts/partials/comments.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ with (index .Site.Data.comments (substr $.Page.Dir 6 -1)) }} -<h3>Commentaires </h3> -<div class="comments"> -{{ range .comments }} -{{ if .id }} - <div class="comment" id="comment-{{ .id }}"> - <span><strong>#{{ .id }}</strong></span></br> - <div class="comment-name">{{ if .name }}{{ .name }}{{else}}Commentaire Anonymus{{ end }}{{if .website}} - <a href="{{ .website | safeURL }}">{{ .website }}{{ end }}</a></div> - <div class="comment-date"><a href="#comment-{{ .id }}">{{ .date }}</a></div> - <div class="comment-body">{{ .body | markdownify }}</div> - {{if .reply}} - {{range .reply}} - <div class="reply" id="comment-{{ .replyid }}"> - <span><strong>#{{ .replyid }}</strong></span></br> - <div class="reply-name">{{ if .replyname }}{{ .replyname }}{{else}}Commentaire Anonymus{{ end }}{{if .replywebsite}} - <a href="{{ .replywebsite | safeURL }}">{{ .replywebsite }}{{ end }}</a></div> - <div class="reply-date"><a href="#comment-{{ .replyid }}">{{ .replydate }}</a></div> - <div class="reply-body">{{ .replybody | markdownify }}</div> - </div> - {{ end }} - {{ end }} - </div> -{{ end }} -{{ end }} -</div> -{{ else }} -<h3>Pas de commentaires pour le moment</h3> -{{ end }} diff --git a/layouts/partials/form.html b/layouts/partials/form.html deleted file mode 100644 index b46ef7e..0000000 --- a/layouts/partials/form.html +++ /dev/null @@ -1,15 +0,0 @@ -<details> -<summary><strong>Poster un commentaire</strong></summary> -<form method="POST" action="/comments/submit.php"> - <input type="hidden" name="post_id" value="{{ .URL }}" /> - <input type="hidden" name="return_url" value="{{ .URL }}" /> - <label>Nom :</label><input name="name" placeholder="Batman"/> - <label>Email (optionel):</label><input name="email" placeholder="Batsy@waynesindustries.com"/> - <label>Site Web (optionel):</label><input name="home" placeholder="www.thesecretcave.goth"/> - <label>Quelle est la 3e lettre du mot <code>blog</code> ?</label><input type="text" name="antispam" size="1" maxlength="1" required/> - <label>Votre message :</label> - <textarea name="comment" placeholder="Syntaxe Markdown supportée" required></textarea> - <input type="submit" value="Envoyer" /> -</form> -</details> - |