Improvements

This commit is contained in:
Jan-Lukas Else 2021-02-17 19:22:59 +01:00
parent 175c78624b
commit 561d656f81
3 changed files with 8 additions and 6 deletions

View File

@ -9,9 +9,9 @@
{{ string .Blog.Lang "acommentby" }} {{ string .Blog.Lang "acommentby" }}
{{ if .Data.Website }}<a href="{{ .Data.Website }}" class="p-name u-url" target="_blank" rel="nofollow noopener noreferrer ugc">{{ .Data.Name }}</a>{{ else }}<span class="p-name">{{ .Data.Name }}</span>{{ end }}: {{ if .Data.Website }}<a href="{{ .Data.Website }}" class="p-name u-url" target="_blank" rel="nofollow noopener noreferrer ugc">{{ .Data.Name }}</a>{{ else }}<span class="p-name">{{ .Data.Name }}</span>{{ end }}:
</div> </div>
<div class="e-content p"> <p class="e-content">
{{ html .Data.Comment }} {{ html .Data.Comment }}
</div> </p>
</main> </main>
{{ if commentsenabled .Blog }} {{ if commentsenabled .Blog }}
{{ include "interactions" . }} {{ include "interactions" . }}

View File

@ -9,10 +9,12 @@
{{ range $i, $comment := .Data.Comments }} {{ range $i, $comment := .Data.Comments }}
<div class="p"> <div class="p">
<p> <p>
ID: {{ $comment.ID }}<br/>
Target: <a href="{{ $comment.Target }}" target="_blank">{{ $comment.Target }}</a><br/> Target: <a href="{{ $comment.Target }}" target="_blank">{{ $comment.Target }}</a><br/>
Name: {{ $comment.Name }}<br/> Name: {{ if $comment.Website }}<a href="{{ $comment.Website }}" target="_blank" rel="nofollow noopener noreferrer ugc">{{ $comment.Name }}</a>{{ else }}{{ $comment.Name }}{{ end }}
Website: {{ $comment.Website }}<br/> </p>
Comment: {{ html $comment.Comment }} <p class="e-content">
{{ html $comment.Comment }}
</p> </p>
<form method="post"> <form method="post">
<input type="hidden" name="commentid" value="{{ $comment.ID }}"> <input type="hidden" name="commentid" value="{{ $comment.ID }}">

View File

@ -1,7 +1,7 @@
{{ define "postactions" }} {{ define "postactions" }}
<div class="p flex" id="post-actions"> <div class="p flex" id="post-actions">
<a href="https://www.addtoany.com/share#url={{ absolute .Data.Path }}{{ with title .Data }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer" class="button invert">{{ string .Blog.Lang "share" }}</a>&nbsp; <a href="https://www.addtoany.com/share#url={{ absolute .Data.Path }}{{ with title .Data }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer" class="button invert">{{ string .Blog.Lang "share" }}</a>&nbsp;
<button id="speakBtn" class="button invert hide" data-speak="{{ string .Blog.Lang "speak" }}" data-stopspeak="{{ string .Blog.Lang "stopspeak" }}"></button> <button id="speakBtn" class="invert hide" data-speak="{{ string .Blog.Lang "speak" }}" data-stopspeak="{{ string .Blog.Lang "stopspeak" }}"></button>
<script defer src="{{ asset "js/speak.js" }}"></script> <script defer src="{{ asset "js/speak.js" }}"></script>
</div> </div>
{{ end }} {{ end }}