Adjusted end-post buttons

This commit is contained in:
Brandon Rozek 2023-12-28 12:44:55 -05:00
parent a657c1ab4f
commit 0277672917
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
3 changed files with 13 additions and 8 deletions

View file

@ -23,10 +23,12 @@
{{ .Content }} {{ .Content }}
</div> </div>
</article> </article>
{{ partial "sharepost.html" . }} <div style="margin-bottom: 2rem;">
<a href='mailto:{{ .Site.Params.email }}?subject=Re: "{{ .Title }}"' class="reply-button">Reply via Email</a> <a href='mailto:{{ .Site.Params.email }}?subject=Re: "{{ .Title }}"' class="reply-button">Reply via Email</a>
<a href="/support" class="reply-button" style="margin-left:2rem;"><i class="fas fa-coffee" style="margin-right: 0.5rem;"></i>Buy me a Coffee</a> <a href="/support" class="reply-button" style="margin-left:2rem;"><i class="fas fa-coffee" style="margin-right: 0.5rem;"></i>Buy me a Coffee</a>
</div>
{{ partial "sharepost.html" . }}
</main> </main>
<!-- Metadata --> <!-- Metadata -->
<script type="application/ld+json"> <script type="application/ld+json">

View file

@ -23,10 +23,13 @@
{{ .Content }} {{ .Content }}
</div> </div>
</article> </article>
{{ partial "sharepost.html" . }}
<div style="margin-bottom: 2rem;">
<a href='mailto:{{ .Site.Params.email }}?subject=Re: "{{ .Title }}"' class="reply-button">Reply via Email</a> <a href='mailto:{{ .Site.Params.email }}?subject=Re: "{{ .Title }}"' class="reply-button">Reply via Email</a>
<a href="/support" class="reply-button" style="margin-left:2rem;"><i class="fas fa-coffee" style="margin-right: 0.5rem;"></i>Buy me a Coffee</a> <a href="/support" class="reply-button" style="margin-left:2rem;"><i class="fas fa-coffee" style="margin-right: 0.5rem;"></i>Buy me a Coffee</a>
</div>
{{ partial "sharepost.html" . }}
{{ partial "webmentions.html" . }} {{ partial "webmentions.html" . }}
</main> </main>
<!-- Metadata --> <!-- Metadata -->

View file

@ -2,10 +2,10 @@
<div id="webmentions"></div> <div id="webmentions"></div>
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}} {{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
<form method="post" action="https://webmention.io/{{ $siteHost }}/webmention"> <form method="post" action="https://webmention.io/{{ $siteHost }}/webmention">
<p>Have you published a response to this? <label for="webmention-source">Let me know the <abbr title="Uniform Resource Locator">URL</abbr></label>:</p> <p style="display: inline-block;">Published a response to this? <label for="webmention-source">Let me know the URL</label>:</p>
<input type="url" name="source" id="webmention-source"> <input type="url" name="source" id="webmention-source">
<input type="hidden" name="target" value="{{ .Permalink }}"> <input type="hidden" name="target" value="{{ .Permalink }}">
<button type="submit">Ping!</button> <button type="submit">Submit</button>
</form> </form>
</main> </main>
{{ $webmentionjs := resources.Get "js/webmention.min.js" }} {{ $webmentionjs := resources.Get "js/webmention.min.js" }}