Print CSS Style

This commit is contained in:
Brandon Rozek 2024-10-29 12:02:03 -04:00
parent 31dfeaaa0b
commit 13ecf4a4a3
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
6 changed files with 39 additions and 8 deletions

View file

@ -1,7 +1,7 @@
<!-- Reading Time -->
{{ $readTime := mul (div (countwords .Content) 220.0) 60 }}
{{ if gt $readTime 60 }}
<p>
<p class="noprint">
<i class="fas fa-stopwatch"></i>
{{ math.Ceil (div $readTime 60) }} minute
reading time

View file

@ -1,4 +1,4 @@
<div style="margin-bottom: 1rem;">Was this useful? Feel free to share:
<div class="noprint" style="margin-bottom: 1rem;">Was this useful? Feel free to share:
<a href="https://news.ycombinator.com/submitlink?u={{ .Permalink }}&t={{ .Title }}">Hacker News</a>
<a href="https://www.reddit.com/%73%75%62%6d%69%74?url={{ .Permalink }}&title={{ .Title }}">Reddit</a>
<a href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}">Twitter</a>

View file

@ -1,7 +1,7 @@
<!-- Webmentions -->
<div id="webmentions"></div>
<div class="noprint" id="webmentions"></div>
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
<form method="post" action="https://webmention.io/{{ $siteHost }}/webmention">
<form class="noprint" method="post" action="https://webmention.io/{{ $siteHost }}/webmention">
<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 }}">