Skip to content

Commit

Permalink
Adjusted end-post buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Rozek committed Dec 28, 2023
1 parent a657c1a commit 0277672
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 5 additions & 3 deletions layouts/blog/single.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ <h1 class='title p-name'>{{ .Title }}</h1>
{{ .Content }}
</div>
</article>
{{ partial "sharepost.html" . }}
<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>
<div style="margin-bottom: 2rem;">
<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>
</div>

{{ partial "sharepost.html" . }}
</main>
<!-- Metadata -->
<script type="application/ld+json">
Expand Down
9 changes: 6 additions & 3 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ <h1 class='title p-name'>{{ .Title }}</h1>
{{ .Content }}
</div>
</article>
{{ partial "sharepost.html" . }}
<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>

<div style="margin-bottom: 2rem;">
<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>
</div>

{{ partial "sharepost.html" . }}
{{ partial "webmentions.html" . }}
</main>
<!-- Metadata -->
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/webmentions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<div id="webmentions"></div>
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
<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="hidden" name="target" value="{{ .Permalink }}">
<button type="submit">Ping!</button>
<button type="submit">Submit</button>
</form>
</main>
{{ $webmentionjs := resources.Get "js/webmention.min.js" }}
Expand Down

0 comments on commit 0277672

Please sign in to comment.