Files
kfitz.info/content/index.njk
Kathleen Fitzpatrick 85ca8c94fc fix index line break
2025-06-26 08:40:24 -04:00

43 lines
1.8 KiB
Plaintext

---js
const eleventyNavigation = {
key: "Home",
order: 1
};
const numberOfLatestPostsToShow = 5;
---
<h1>Kathleen Fitzpatrick</h1>
<p style="padding-left:20px">Associate Dean for Research and Graduate Studies<br />
University Distinguished Professor of English and Digital Humanities<br />
<a href="https://cal.msu.edu">College of Arts and Letters, Michigan State University</a><br />
Director, <a href="https://hcommons.org">Knowledge Commons</a>.</p>
<p style="padding-left:20px">Author, <a href="https://www.press.jhu.edu/books/title/12787/leading-generously"><em>Leading Generously: Tools for Transformation</em></a> (Hopkins Press, 2024) and <a href="https://www.press.jhu.edu/books/title/12108/generous-thinking"><em>Generous Thinking: A Radical Approach to Saving the University</em></a> (Hopkins Press, 2019).</p>
<p>You can find me on <a rel="me" href="https://hcommons.social/@kfitz">hcommons.social</a> and on <a href="https://github.com/kfitz" rel="me">Github</a>.</p>
<hr style="border-top: dashed 1px var(--color-gray-50); border-bottom: none" />
{% set postsCount = collections.posts | length %}
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
<h2>Latest Post{% if latestPostsCount != 1 %}s{% endif %}</h2>
{% set postslist = collections.posts | head(-1 * numberOfLatestPostsToShow) %}
{% set postslistCounter = postsCount %}
{% include "postslist.njk" %}
{% set morePosts = postsCount - numberOfLatestPostsToShow %}
{% if morePosts > 0 %}
<p>{{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} can be found in <a href="blog.njk">the archive</a>.</p>
{% endif %}
{# List every content page in the project #}
{#
<ul>
{%- for entry in collections.all %}
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
{%- endfor %}
</ul>
#}