UI updates

This commit is contained in:
Nathan Upchurch 2025-01-23 14:24:51 -06:00
parent ef37d7622d
commit 153b178c40
10 changed files with 73 additions and 40 deletions

View File

@ -2,7 +2,7 @@
layout: layouts/base.njk layout: layouts/base.njk
showPostListHeader: yep showPostListHeader: yep
--- ---
<h1>Hi there, friend.</h1> <h1>I'm Nathan; welcome&nbsp;friend.</h1>
<p class="nodropcap page-block">My name is Nathan Upchurch. Welcome to my personal website and blog, where I write about all sorts of <a href="/tags">things</a> that I find interesting. On this website, you can learn more <a href="about">about me</a>, see <a href="now">what Ive been up to lately</a>, <a href="blog">read my blog</a>, look at some <a href="galleries">pictures</a>, or explore the <a href="sitemap">sitemap</a> to see what else you can do here.</p> <p class="nodropcap page-block">My name is Nathan Upchurch, and this is my personal website and blog, where I write about all sorts of <a href="/tags">things</a> that I find interesting. On this website, you can learn more <a href="about">about me</a>, see <a href="now">what Ive been up to lately</a>, <a href="blog">read my blog</a>, look at some <a href="galleries">pictures</a>, or explore the <a href="sitemap">sitemap</a> to see what else you can do here.</p>
{{ content | safe }} {{ content | safe }}

View File

@ -4,7 +4,7 @@ layout: layouts/base.njk
{# Only include the syntax highlighter CSS on blog posts #} {# Only include the syntax highlighter CSS on blog posts #}
{%- css %}{% include "public/css/code.css" %}{% endcss %} {%- css %}{% include "public/css/code.css" %}{% endcss %}
<article class="post"> <article class="post">
<h1>{{ title }}</h1> <h1>{{ title | safe }}</h1>
{% if not hideMetadata %} {% if not hideMetadata %}
<div class="post-metadata"> <div class="post-metadata">
{% if author %} {% if author %}
@ -13,7 +13,7 @@ layout: layouts/base.njk
{% endif %} {% endif %}
<div class="post-metadata-copy"> <div class="post-metadata-copy">
<p>{% if author.url %}<a href="{{ author.url }}">{% endif %} <p>{% if author.url %}<a href="{{ author.url }}">{% endif %}
{% if author.name %}{{ author.name }}{% endif %}{% if author.url %}</a>,&nbsp;{% endif %}<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></p> {% if author.name %}By {{ author.name }}{% endif %}{% if author.url %}</a>&nbsp;•&nbsp;{% endif %}<time datetime="{{ page.date | htmlDateString }}">{{ page.date | niceDate }}</time></p>
{% else %} {% else %}
{% if metadata.author.profilePic %} {% if metadata.author.profilePic %}
@ -21,7 +21,7 @@ layout: layouts/base.njk
{% endif %} {% endif %}
<div class="post-metadata-copy"> <div class="post-metadata-copy">
<p>{% if metadata.author.url %}<a href="{{ metadata.author.url }}">{% endif %} <p>{% if metadata.author.url %}<a href="{{ metadata.author.url }}">{% endif %}
{% if metadata.author.name %}{{ metadata.author.name }}{% endif %}{% if metadata.author.url %}</a>,&nbsp;{% endif %}<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></p> {% if metadata.author.name %}By {{ metadata.author.name }}{% endif %}{% if metadata.author.url %}</a>&nbsp;•&nbsp;{% endif %}<time datetime="{{ page.date | htmlDateString }}">{{ page.date | niceDate }}</time></p>
{% endif %} {% endif %}
@ -44,4 +44,3 @@ layout: layouts/base.njk
{{ content | safe }} {{ content | safe }}
</article> </article>
{% include "mastodonComments.njk" %} {% include "mastodonComments.njk" %}
{% include "nextLast.njk" %}

View File

@ -1,23 +1,44 @@
<section class="postlist"> <section class="postlist">
{% if showPostListHeader %}<h2>{{ metadata.postlistHeaderText }}</h2>{% endif %} {% if showPostListHeader %}<h2>{{ metadata.postlistHeaderText }}</h2>{% endif %}
<div class="postlist-item-container"> <div class="postlist-item-container">
{% for post in postslist | reverse %} {% for post in postslist | reverse %}
<article class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}"> <article class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
<a href="{{ post.url }}" class="postlist-link">
<div class="post-image-container">
<img class="post-image" {% if post.data.imageURL %} src="{{ post.data.imageURL }}" alt="{{ post.data.imageAlt }}" {% else %} src="{{ metadata.defaultPostImageURL }}" alt="{{ metadata.defaultPostImageAlt }}"{% endif %}>
</div>
</a>
<div class="post-copy">
<a href="{{ post.url }}" class="postlist-link"> <a href="{{ post.url }}" class="postlist-link">
<h3> <div class="post-image-container">
{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %} <img class="post-image" {% if post.data.imageURL %} src="{{ post.data.imageURL }}" alt="{{ post.data.imageAlt }}" {% else %} src="{{ metadata.defaultPostImageURL }}" alt="{{ metadata.defaultPostImageAlt }}"{% endif %}>
</h3> </div>
</a> </a>
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("LLLL yyyy") }}</time>
{% if post.data.synopsis %}<p>{{ post.data.synopsis | truncate(105) | safe }}</p>{% else %}{{ post.data.description | truncate(105) | safe }}{% endif %} <div class="post-copy">
</div> <a href="{{ post.url }}" class="postlist-link">
</article> <h3>
{% endfor %} {% if post.data.title %}{{ post.data.title | safe }}{% else %}<code>{{ post.url }}</code>{% endif %}
</div> </h3>
</a>
<div class="post-metadata">
<div class="post-metadata-copy">
<p>
{% if post.data.author %}
{% if post.data.author.url %}<a href="{{ post.data.author.url }}">{% endif %}{% if post.data.author.name %}By {{ post.data.author.name }}{% endif %}{% if post.data.author.url %}</a>&nbsp;•&nbsp;{% endif %}{% else %}<a href="{{ metadata.author.url }}">By {{ metadata.author.name }}</a>&nbsp;•&nbsp;{% endif %}<time datetime="{{ post.date | htmlDateString }}">{{ post.date | niceDate }}</time>
</p>
<ul>
{%- for tag in post.data.tags | filterTagList %}
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li>
<a
href="{{ tagUrl }}"
class="post-tag">
{{ tag }}&nbsp;
</a>
</li>
{%- endfor %}
</ul>
</div>
</div>
</div>
</article>
<hr>
{% endfor %}
</div>
</section> </section>

View File

@ -5,7 +5,7 @@ eleventyNavigation:
order: 2 order: 2
--- ---
<article> <article>
<h1>About me and my website.</h1> <h1>About me and my&nbsp;website.</h1>
<p class="page-block nodropcap">Im a prolific vegan home cook, classical trombonist, incense maker, a <abbr title="Free/Libre Open Source Software">FLOSS</abbr> enthusiast, daily GNU/Linux user and unabashed <a href="https://kde.org/">KDE</a> stan, designer, programmer, music producer, print lover, and human with too many interests and too little time. This is my little corner of the internet where I talk about whatever I like without worrying about maintaining a personal brand, or constraining subject matter to topics which might help advance my career or establish me as a thought leader. Im here to express myself and have fun writing about topics I enjoy. If youd like to learn more about my professional accomplishments and work, Ill link my professional website here when I get around to it.</p> <p class="page-block nodropcap">Im a prolific vegan home cook, classical trombonist, incense maker, a <abbr title="Free/Libre Open Source Software">FLOSS</abbr> enthusiast, daily GNU/Linux user and unabashed <a href="https://kde.org/">KDE</a> stan, designer, programmer, music producer, print lover, and human with too many interests and too little time. This is my little corner of the internet where I talk about whatever I like without worrying about maintaining a personal brand, or constraining subject matter to topics which might help advance my career or establish me as a thought leader. Im here to express myself and have fun writing about topics I enjoy. If youd like to learn more about my professional accomplishments and work, Ill link my professional website here when I get around to it.</p>
<a href="./colophon/"> <a href="./colophon/">

View File

@ -6,10 +6,10 @@ eleventyNavigation:
key: Blog key: Blog
order: 3 order: 3
--- ---
<h1>Nathans blog.</h1> <h1>My personal blog.</h1>
<p class="page-block nodropcap"> <p class="page-block nodropcap">
Thank you for visiting my blog; I write about lots of things here, from <a href="/tags/storytime">personal stories</a>, to <a href="/tags/gnu-linux">tech</a>, <a href="/tags/vegan-cooking">food</a>, and <a href="/tags/incense">incense</a>. Explore all posts below or <a href="/tags/">choose a topic</a>. Want to know what I've been reading? <a href="../blogroll/">Exlore the blogroll</a>.<br /> I write about whatever I like here, from <a href="/tags/storytime">personal stories</a>, to <a href="/tags/gnu-linux">tech</a>, <a href="/tags/vegan-cooking">food</a>, and <a href="/tags/incense">incense</a>.<br />
<a href="/tags/"> <a href="/tags/">
<button type="button">Topics »</button> <button type="button">Topics »</button>

View File

@ -33,7 +33,7 @@ permalink: "/feeds/{{ tag | slugify }}.xml"
{% if post.data.imageURL %}{% set imageURL %}{{ post.data.imageURL | htmlBaseUrl(metadata.url) }}{% endset %}{% endif %} {% if post.data.imageURL %}{% set imageURL %}{{ post.data.imageURL | htmlBaseUrl(metadata.url) }}{% endset %}{% endif %}
{% set defaultImageURL %}{{ metadata.defaultPostImageURL | htmlBaseUrl(metadata.url) }}{% endset %} {% set defaultImageURL %}{{ metadata.defaultPostImageURL | htmlBaseUrl(metadata.url) }}{% endset %}
<entry> <entry>
<title>{{ post.data.title }}</title> <title>{{ post.data.title | safe }}</title>
<description>{{ post.data.description | truncate(150) }}</description> <description>{{ post.data.description | truncate(150) }}</description>
<link href="{{ absolutePostUrl }}"/> <link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated> <updated>{{ post.date | dateToRfc3339 }}</updated>
@ -44,6 +44,7 @@ permalink: "/feeds/{{ tag | slugify }}.xml"
<link href="{{ absolutePostUrl }}"/> <link href="{{ absolutePostUrl }}"/>
</image> </image>
<content type="html">{{ post.templateContent | transformWithHtmlBase(absolutePostUrl, post.url) }}</content> <content type="html">{{ post.templateContent | transformWithHtmlBase(absolutePostUrl, post.url) }}</content>
<hr>
</entry> </entry>
{%- endfor %} {%- endfor %}
</feed> </feed>

View File

@ -4,9 +4,9 @@ eleventyNavigation:
key: Pics key: Pics
order: 4 order: 4
--- ---
<h1>Image Galleries</h1> <h1>My image galleries.</h1>
<p class="page-block nodropcap"> <p class="page-block nodropcap">
Some pictures I thought would be worth posting. Photography trips, memes, and other pictures I thought would be worth sharing.
</p> </p>
<section class="postlist"> <section class="postlist">
<div class="postlist-item-container"> <div class="postlist-item-container">
@ -23,10 +23,15 @@ Some pictures I thought would be worth posting.
{{ gallery.title }} {{ gallery.title }}
</h3> </h3>
</a> </a>
<time class="postlist-date" datetime="{{ gallery.date | htmlDateString}}">{{ gallery.date | readableDate("LLLL yyyy") }}</time>
<p>{{ gallery.synopsis | truncate(105) | safe }}</p> <p>{{ gallery.synopsis | truncate(105) | safe }}</p>
<div class="post-metadata">
<div class="post-metadata-copy">
<p>Posted on the&nbsp;<time class="postlist-date" datetime="{{ gallery.date | htmlDateString}}">{{ gallery.date | niceDate("LLLL yyyy") }}</time></p>
</div>
</div>
</div> </div>
</article> </article>
<hr>
{% endfor %} {% endfor %}
</div> </div>
</section> </section>

View File

@ -3,7 +3,7 @@ layout: layouts/home.njk
eleventyNavigation: eleventyNavigation:
key: Home key: Home
order: 1 order: 1
numberOfLatestPostsToShow: 5 numberOfLatestPostsToShow: 3
numberOfNowPostsToShow: 1 numberOfNowPostsToShow: 1
--- ---
<div class="now"> <div class="now">
@ -14,11 +14,15 @@ numberOfNowPostsToShow: 1
{% set postslistCounter = postsCount %} {% set postslistCounter = postsCount %}
{% set showPostListHeader = false %} {% set showPostListHeader = false %}
{% include "postslist.njk" %} {% include "postslist.njk" %}
{% set morePosts = postsCount - numberOfNowPostsToShow %}
{% if morePosts > 0 %}
<a href="/now/"> <a href="/now/">
<button type="button"> <button type="button">
See more on the “now” page » See {{ morePosts }} more »
</button> </button>
</a> </a>
{% endif %}
</div> </div>
{% set postsCount = collections.posts | length %} {% set postsCount = collections.posts | length %}
@ -32,7 +36,10 @@ numberOfNowPostsToShow: 1
{% if morePosts > 0 %} {% if morePosts > 0 %}
<a href="/blog/"> <a href="/blog/">
<button type="button"> <button type="button">
See {{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} in the blog » See {{ morePosts }} more »
</button> </button>
</a> </a>&nbsp;
{% endif %} {% endif %}
<a href="/tags/">
<button type="button">Topics »</button>
</a>

View File

@ -4,12 +4,12 @@ title: Nathan Upchurch | Now
structuredData: none structuredData: none
--- ---
<article class="post"> <article class="post">
<h1>Now: Whats Been Going on Lately?</h1> <h1>Now: Life updates.</h1>
{% set now = collections.now | last %} {% set now = collections.now | last %}
<h2>{{ now.data.title }}</h2> <h2>{{ now.data.title }}</h2>
{{ now.content | safe }} {{ now.content | safe }}
</article> </article>
<p class="metadata">Updated: {{ now.date | readableDate }} |&nbsp;<a href="https://nownownow.com/about">What is a now page?</a></p> <p class="metadata">Updated on the {{ now.date | niceDate }} by {{ metadata.author.name }} |&nbsp;<a href="https://nownownow.com/about">What is a now page?</a></p>
{% set postsCount = collections.now | removeMostRecent | length %} {% set postsCount = collections.now | removeMostRecent | length %}
{% if postsCount > 1 %} {% if postsCount > 1 %}

View File

@ -4,10 +4,10 @@ layout: layouts/base.njk
title: Nathan Upchurch | Tags title: Nathan Upchurch | Tags
structuredData: none structuredData: none
--- ---
<h1>Here are some things I like to talk about.</h1> <h1>Some things I like to&nbsp;talk about:</h1>
<p class="page-block nodropcap"> <p class="page-block nodropcap">
Click on a tag to see all posts on the topic. Click on a tag to see all posts on the topic; you can also subscribe to an RSS feed of any individual topic on the topic page.
</p> </p>
<ul class="taglist"> <ul class="taglist">