mirror of https://github.com/jlelse/GoBlog
Improvements
This commit is contained in:
parent
175c78624b
commit
561d656f81
|
@ -9,9 +9,9 @@
|
|||
{{ 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 }}:
|
||||
</div>
|
||||
<div class="e-content p">
|
||||
<p class="e-content">
|
||||
{{ html .Data.Comment }}
|
||||
</div>
|
||||
</p>
|
||||
</main>
|
||||
{{ if commentsenabled .Blog }}
|
||||
{{ include "interactions" . }}
|
||||
|
|
|
@ -9,10 +9,12 @@
|
|||
{{ range $i, $comment := .Data.Comments }}
|
||||
<div class="p">
|
||||
<p>
|
||||
ID: {{ $comment.ID }}<br/>
|
||||
Target: <a href="{{ $comment.Target }}" target="_blank">{{ $comment.Target }}</a><br/>
|
||||
Name: {{ $comment.Name }}<br/>
|
||||
Website: {{ $comment.Website }}<br/>
|
||||
Comment: {{ html $comment.Comment }}
|
||||
Name: {{ if $comment.Website }}<a href="{{ $comment.Website }}" target="_blank" rel="nofollow noopener noreferrer ugc">{{ $comment.Name }}</a>{{ else }}{{ $comment.Name }}{{ end }}
|
||||
</p>
|
||||
<p class="e-content">
|
||||
{{ html $comment.Comment }}
|
||||
</p>
|
||||
<form method="post">
|
||||
<input type="hidden" name="commentid" value="{{ $comment.ID }}">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ define "postactions" }}
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Reference in New Issue