summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/posts/templates/posts/jrnl_list.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/posts/templates/posts/jrnl_list.html b/app/posts/templates/posts/jrnl_list.html
index 1164e9c..1a51106 100644
--- a/app/posts/templates/posts/jrnl_list.html
+++ b/app/posts/templates/posts/jrnl_list.html
@@ -8,7 +8,7 @@
{% block primary %}<main role="main" class="archive-wrapper">
<div class="archive-intro">
<h2>Join us. Subscribe to <em>Friends of a Long Year</em></h2>
- <iframe target='_parent' style="border:none; background:white; width:100%;" title="embedded form for subscribing the the Friends of a Long Year newsletter" src="{% url 'lttr:subscribe' slug='friends' %}"></iframe>
+ <iframe target='_parent' style="border:none; background:white; width:100%;" title="embedded form for subscribing the the Friends of a Long Year newsletter" onload="resizeIframe(this)" src="{% url 'lttr:subscribe' slug='friends' %}"></iframe>
<p><em>Friends of a Long Year</em> is a weekly, private mailing list bringing stories to your inbox like <a href="/jrnl/2023/08/everyday-1984" title="Everyday it's 1984">the olden days</a>. It's written in the spirit of Mary Austin. It was once called <em>Place Without a Postcard</em>, which neatly summarizes what I like to write about.</p>
<!--<p>If you really want to go nuts and experience the world of like, <a href="https://luxagraf.net/jrnl/2023/08/everyday-1984">1984</a>, you can <a href="/cards">sign up here to get a postcard</a> from us on the road. Yes. Seriously.</p> -->
</div>
@@ -43,3 +43,11 @@
{% paginate %}
</nav>
{% endblock %}
+{% block js %}
+
+<script>
+ function resizeIframe(obj) {
+ obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
+ }
+</script>
+{% endblock %}