What Tweets Come To
Poetry Twitter blew up this month, and I’ve got cold takes. But first, some updates.
The booksite
I finally made a bit of progress on the book (website? webbook? booksite?). After lamenting my lack of motivation in the previous post, I forced myself to open Atom and boldly continue to fail to understand a watered down scripting language.
Nested iteration
On my “Acknowledgements” page, I wanted to call out previously published poems & the journals they appeared in. The frontmatter of each individual poem includes the following variables (among many others):
title: "Apologia of a God Who Abandoned Its Creation"
publishedFlag: "true"
journal: "Stirring"
But even though I basically have a bachelor’s & a master’s in abstraction, I guess I don’t grasp the kind of abstraction that programmers need, because it took me an embarrassing amount of time to figure out how to dynamically generate a list of published poems per journal.
Here’s the code that worked:
{% assign pub = site.poems | where: "publishedFlag", "true" | sort: "journal" %}
{% assign pubList = pub | map: "journal" | uniq %}
{% assign sortedPoems = site.poems | where: "publishedFlag", "true" | sort: "title" %}
<table>
{% for item in pubList %}
<tr>
<th>{{item}}</th>
<td><ul>{% for p in sortedPoems %}
{% if p.journal == item %}
<li><a href="{{p.url}}">{{p.title}}</a></li>
{% endif %}
{% endfor %}
</ul></td>
</tr>
{% endfor %}
</table>
I can’t generate the output here because it’s in a different repository (I haven’t attempted to understand Git submodules yet), but here’s a screenshot:
Here’s what’s going on:
assign |
Creates a new variable, and allows you to filter & sort results, which other tags (like for & if ) don't allow. |
---|---|
site.poems |
"Poems" is the name of a Collection I created. Jekyll allows you to access any collection with that site.[collection] notation. |
map |
Takes the attribute you specify ("journal", a frontmatter variable) and creates an array. I don't know a precise definition for "array", but I think of them as lists that programming languages can read.uniq is an array filter, so I had to create an array before I could use it to eliminate duplicates (because some journals took more than one poem). |
for loop |
Repeatedly executes whatever is between {% for %} & {% endfor %} . The string immediately after "for" is a variable you create to access a directory, file, or another variable (in this case, the variables "pubList" & "sortedPoems" I specified above).There are two for loops: the first one creates a table row for each journal and a ul to contain the poem titles; the second is within the ul and creates (with the {% if %} statement) a list item for each poem published in that journal. |
if statement |
Executes whatever is between {% if %} & {% endif %} when the specified condition is true .In this case, I'm using the if statement to ensure the only poems that get output are those whose journal frontmatter variable matches the array item from "pubList". If I removed the if statement, I'd get a list of every poem for which publishedFlag: true in every table row. |
I’m not sure I like the alternating highlighted table rows, though. I’ll have to dig into the CSS files to figure out what’s creating that so I can turn it off.
Previous/Next buttons
I’ve figured out what my problem is, but I’m no closer to solving it. As I’ve mentioned before, I want each page to have buttons that point to the previous page & the next page so readers don’t have to use the sidebar navigation to get to every page. (I may also try to add Javascript keyboard shortcuts to allow navigation with the & keys.) Without the styles in my book, they look something like this:
Previous | Tweet | Next |
But I can’t figure out how to generate the buttons with the correct URLs. The URLs that get output are always the URL of the current page. I expected this logic (not to mention dozens of variations of it) to work:
{% for item in site.data.sidebars.mydoc_sidebar.entries %}
{% for folder in item.folders %}
{% for folderitem in folder.folderitems %}
{% if folderitem.url == page.url %}
{% assign folderitem.url = thisPage %}
{% assign thisPage[forloop.index] = "0" %}
{% assign prevPage = thisPage | minus: "1" %}
{% assign nextPage = thisPage | plus: "1" %}
<strong>This page index: {{ forloop.index }}, {{ page.url | remove: "/" }}</strong>
<br>
<strong>Prev page index: {{ prevPage }}, {{ prevPage.title }}, {{ prevPage.url | relative_url }}</strong>
<br>
<strong>Next page index: {{ nextPage }}, {{ nextPage.title }}, {{ nextPage.url | relative_url }}</strong>
{% break %}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
<div class="container">
<div class="row">
<div class="col-sm-4">
<i class="fa fa-arrow-left fa-lg"></i> <a href="{{ prevPage.url }}"><span class="label label-primary">Previous</span></a>
</div>
<div class="col-sm-4">
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-via="DillonAndrewP" data-show-count="true">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div class="col-sm-4">
<a href="{{ nextPage.url }}"><span class="label label-primary">Next</span></a> <i class="fa fa-arrow-right fa-lg"></i>
</div>
</div>
</div>
The <strong>
tags contain some logic I found to help identify my problem; here’s some example output:
This page index: 6, viscosity.html
Prev page index: -1, ,
Next page index: 1, ,
The blanks after “-1” & “1” should be a title & URL. Meaning my logic isn’t even accessing the YAML mapping in mydoc_sidebar
.
So. If you happen to know a solution, reply to the issue I opened on Jekyll Talk.
Going forward
I don’t want to let some of these non-critical issues to keep me from releasing the book. The site builds, and you can navigate using the sidebar. I’m gonna try to update the site after the 1.0 release to add new features like:
- previous/next buttons
- dark theme
- a prettier picture gallery
- professionally recorded audio for each poem (my dad has a studio!)
Since I’m almost certainly self-publishing, I need a plan for how to promote the book. How will I make people aware that my book exists? Targeted ads? Contact friends, editors, & important people in my literary spaces? Book launch event(s)? I have no idea right now. This is probably the biggest gap I face by not pursuing more traditional first book publication.
Finally, I need an editor! I have a few people in mind who I think would be excellent critical eyes for the poems & the collection as a whole. When I have some kind of marketing plan in place, I’ll reach out to see if I can afford to hire them.
World on fire
The tweet that divided us:
I wish poets understood that the general population has no interest in what we do, so when we speak we are speaking only to each other. The delusion that poetry is something powerful is a straight line to all kinds of toxic positivities that are really just us lying to ourselves.
— Danielle Rose (@danirosepoet) September 3, 2021
If you read the replies, there are a handful of thoughtful people engaging sincerely. But mostly I saw frustrated poets leaving incredulous replies about how much poetry has affected their lives & the lives of people they know. In other words, they willfully misread her tweet.
See for yourself
The general population absolutely has no interest in poetry, and you can demonstrate that for yourself with a micro qualitative study. If you’re a poet, ask your non-poet friends to name a single living poet who isn’t you. (If you’re one of my friends reading this, name a living poet who isn’t me.)
After they all say “Amanda Gorman”, ask if they could have named one on January 19.
I don’t mean to diminish Gorman’s moment or her impact—occasional poems are so hard, and she nailed it, and connected emotionally & intellectually with a ton of people—but as I mentioned in a recent post, Presidential inaugurations & weddings are two of the only places non-poets might encounter poetry organically (versus the inescapability of, say, a new Taylor Swift single).
How many non-poets do you know who search out poetry, who read it more often than when a poem/poet goes viral? Amanda Gorman was incidental for most people; few to zero people tuned in to see her. I—a reasonably active participant in literary spaces—didn’t even know Biden was going to have a poet.
“Unidentified mystery man”
In June 2021, Page Six (a New York Post holding) published this article about Padma Lakshmi on a date with an “unidentified mystery man”.
Reader, that man was Terrance Hayes. Here’s a partial list of Hayes’s accomplishments:
- Guggenheim fellow
- MacArthur fellow
- National Book Award winner (Lighthead)
- New York Times poetry editor (2017–2018)
Also he’s tall, extremely handsome, & an engaging reader at his events. In other words, he’s one of the most talented, accomplished, visible, & marketable poets to ever live.
To be fair, other publications picked up the story and performed the basic journalistic work of discovering the name of the only other person in the story. But it speaks volumes about poetry’s role in America that one of the most decorated poets was a non-entity to this pop culture pub.
Don’t read the comments
One thing I noticed about the fallout was how much some poets need to believe that poetry is this force in the world. I love poetry. It means more to me than I can articulate. And I think it’s uniquely suited to approach & comment on certain things in certain ways; as Edward Hirsch says, poetry is really hard, but there must be something vital about it, some reason we keep doing it—some reason every culture ever has had poetry.
But that doesn’t mean most (or even many) people care about poetry. It doesn’t mean poetry is capable of saving the world from anything. I think this is the “toxic positivity” Rose was referring to. So many people jumped into the comments to say something like “I’ve taught poetry to my students for 20 years and seen it effect hundreds of powerful reactions”. That’s truly wonderful. Not a response to what she tweeted, but wonderful that you’ve made that impact. How many of the students who had those powerful experiences do you honestly believe read another poem after your class?
If you’re a poet who’s still on the fence, ask yourself this—how many of your non-poet friends have:
- attended any of your readings?
- bought any your books?
- asked to read one of your poems?
- ever asked you how your writing is going?
If non-poets cared about poetry, surely the ones who love poets would, at the very least, occasionally ask about their practice—this practice they love that’s a fundamental part of their lives and, I’m supposed to believe, a universal balm.
Poetry may have saved your life (like in some ways it did mine), but I don’t need to believe this art has a mythical power for it to be a force in my life. I’m grateful for the personal, private ways poetry has devastated me and then put me back together. That I occasionally share those experiences with a small community of other writers, or even more rarely the world at large, deepens my love for poetry, but is not essential.
- The title of this post comes from ruth stone's collection what love comes to