Add title to pages, update OPML feeds

This commit is contained in:
Garrett Mills 2023-01-16 03:38:36 -06:00
parent b9a406e553
commit 64eb2987fb
4 changed files with 21 additions and 12 deletions

View File

@ -19,6 +19,7 @@ export class Blog extends Controller {
return view('blog:index', { return view('blog:index', {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
title: 'Garrett\'s Blog',
posts: posts.take(10).toArray(), posts: posts.take(10).toArray(),
}) })
} }
@ -31,6 +32,7 @@ export class Blog extends Controller {
return view('blog:404', { return view('blog:404', {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
title: 'Post Not Found',
slug, slug,
}) })
} }
@ -39,6 +41,7 @@ export class Blog extends Controller {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
post, post,
title: post.title,
renderedPost: await this.blog.renderPost(post.slug), renderedPost: await this.blog.renderPost(post.slug),
}) })
} }
@ -51,6 +54,7 @@ export class Blog extends Controller {
return view('blog:archive', { return view('blog:archive', {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
title: 'Archive',
postsByYear, postsByYear,
postYears: collect(Object.keys(postsByYear)).sortDesc().toArray(), postYears: collect(Object.keys(postsByYear)).sortDesc().toArray(),
}) })
@ -70,6 +74,7 @@ export class Blog extends Controller {
return view('blog:tags', { return view('blog:tags', {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
title: 'Tags',
counts, counts,
tags: collect(Object.keys(counts)).sort().toArray(), tags: collect(Object.keys(counts)).sort().toArray(),
}) })
@ -86,6 +91,7 @@ export class Blog extends Controller {
return view('blog:tag', { return view('blog:tag', {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
title: `#${tag}`,
posts: posts.toArray(), posts: posts.toArray(),
tag, tag,
}) })
@ -100,6 +106,7 @@ export class Blog extends Controller {
return view('blog:feeds', { return view('blog:feeds', {
...home.getThemeCSS(), ...home.getThemeCSS(),
...this.getBlogData(), ...this.getBlogData(),
title: 'An RSS Manifesto',
subsByCategory, subsByCategory,
categories, categories,
}) })

View File

@ -60,6 +60,7 @@ export class Home extends Controller {
const isOptOut = this.request.cookies.has(this.config.get('app.analytics.optOutCookie')) const isOptOut = this.request.cookies.has(this.config.get('app.analytics.optOutCookie'))
return view('technical', { return view('technical', {
title: 'Technical Info',
isOptOut, isOptOut,
...this.getThemeCSS(), ...this.getThemeCSS(),
}) })

View File

@ -42,16 +42,23 @@
<outline text="Nasa News Blog" type="rss" title="Nasa News Blog" xmlUrl="https://nasa-newsblog.blogspot.com/feeds/posts/default?alt=rss" htmlUrl="https://nasa-newsblog.blogspot.com/" /> <outline text="Nasa News Blog" type="rss" title="Nasa News Blog" xmlUrl="https://nasa-newsblog.blogspot.com/feeds/posts/default?alt=rss" htmlUrl="https://nasa-newsblog.blogspot.com/" />
<outline text="NASA Blogs" type="rss" title="NASA Blogs" xmlUrl="https://blogs.nasa.gov/feed/" htmlUrl="https://blogs.nasa.gov" /> <outline text="NASA Blogs" type="rss" title="NASA Blogs" xmlUrl="https://blogs.nasa.gov/feed/" htmlUrl="https://blogs.nasa.gov" />
</outline> </outline>
<outline text="News" title="News">
<outline text="NYT &gt; Morning, Evening and Weekend" type="rss" title="NYT &gt; Morning, Evening and Weekend" xmlUrl="https://www.nytimes.com/svc/collections/v1/publish/https:/www.nytimes.com/spotlight/us-briefing/rss.xml" htmlUrl="https://www.nytimes.com/spotlight/us-briefing" />
<outline text="The Lawrence Times" type="rss" title="The Lawrence Times" xmlUrl="https://lawrencekstimes.com/feed/" htmlUrl="https://lawrencekstimes.com" />
<outline text="Ars Technica - All content" type="rss" title="Ars Technica - All content" xmlUrl="https://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com" />
<outline text="TechCrunch" type="rss" title="TechCrunch" xmlUrl="https://techcrunch.com/feed/" htmlUrl="https://techcrunch.com/" />
<outline text="Quanta Magazine" type="rss" title="Quanta Magazine" xmlUrl="https://api.quantamagazine.org/feed/" htmlUrl="https://www.quantamagazine.org" />
</outline>
<outline text="Dev Blogs" title="Dev Blogs"> <outline text="Dev Blogs" title="Dev Blogs">
<outline text="Dan Luu" type="rss" title="Dan Luu" xmlUrl="https://danluu.com/atom.xml" htmlUrl="https://danluu.com/atom/index.xml" /> <outline text="Dan Luu" type="rss" title="Dan Luu" xmlUrl="https://danluu.com/atom.xml" htmlUrl="https://danluu.com/atom/index.xml" />
<outline text="Daniel Jakots" type="rss" title="Daniel Jakots" xmlUrl="https://chown.me/blog/feeds/atom.xml" htmlUrl="https://chown.me/" /> <outline text="Daniel Jakots" type="rss" title="Daniel Jakots" xmlUrl="https://chown.me/blog/feeds/atom.xml" htmlUrl="https://chown.me/" />
<outline text="Matt Might's blog" type="rss" title="Matt Might's blog" xmlUrl="https://matt.might.net/articles/feed.rss" htmlUrl="http://matt.might.net/" /> <outline text="Matt Might's blog" type="rss" title="Matt Might's blog" xmlUrl="https://matt.might.net/articles/feed.rss" htmlUrl="http://matt.might.net/" />
<outline text="I am Sang" type="rss" title="I am Sang" xmlUrl="https://iamsang.com/rss.xml" htmlUrl="https://iamsang.com" /> <outline text="I am Sang" type="rss" title="I am Sang" xmlUrl="https://iamsang.com/rss.xml" htmlUrl="https://iamsang.com" />
<outline text="Raph Leviens blog" type="rss" title="Raph Leviens blog" xmlUrl="https://raphlinus.github.io/feed.xml" htmlUrl="https://raphlinus.github.io/" />
<outline text="Grant Jurgensen" type="rss" title="Grant Jurgensen" xmlUrl="https://grant.jurgensen.dev/feed.xml" htmlUrl="https://grant.jurgensen.dev/" /> <outline text="Grant Jurgensen" type="rss" title="Grant Jurgensen" xmlUrl="https://grant.jurgensen.dev/feed.xml" htmlUrl="https://grant.jurgensen.dev/" />
<outline text="Raph Leviens blog" type="rss" title="Raph Leviens blog" xmlUrl="https://raphlinus.github.io/feed.xml" htmlUrl="https://raphlinus.github.io/" />
<outline text="Julia Evans" type="rss" title="Julia Evans" xmlUrl="https://jvns.ca/atom.xml" htmlUrl="http://jvns.ca" /> <outline text="Julia Evans" type="rss" title="Julia Evans" xmlUrl="https://jvns.ca/atom.xml" htmlUrl="http://jvns.ca" />
<outline text="Raymond Chen, Author at The Old New Thing" type="rss" title="Raymond Chen, Author at The Old New Thing" xmlUrl="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing/feed" htmlUrl="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing" />
<outline text="Tania Rascia | RSS Feed" type="rss" title="Tania Rascia | RSS Feed" xmlUrl="https://www.taniarascia.com/rss.xml" htmlUrl="https://www.taniarascia.com" /> <outline text="Tania Rascia | RSS Feed" type="rss" title="Tania Rascia | RSS Feed" xmlUrl="https://www.taniarascia.com/rss.xml" htmlUrl="https://www.taniarascia.com" />
<outline text="Raymond Chen, Author at The Old New Thing" type="rss" title="Raymond Chen, Author at The Old New Thing" xmlUrl="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing/feed" htmlUrl="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing" />
<outline text="Faultlore" type="rss" title="Faultlore" xmlUrl="https://faultlore.com/blah/rss.xml" htmlUrl="https://gankra.github.io/blah/" /> <outline text="Faultlore" type="rss" title="Faultlore" xmlUrl="https://faultlore.com/blah/rss.xml" htmlUrl="https://gankra.github.io/blah/" />
<outline text="Random ASCII tech blog of Bruce Dawson" type="rss" title="Random ASCII tech blog of Bruce Dawson" xmlUrl="https://randomascii.wordpress.com/feed/" htmlUrl="https://randomascii.wordpress.com" /> <outline text="Random ASCII tech blog of Bruce Dawson" type="rss" title="Random ASCII tech blog of Bruce Dawson" xmlUrl="https://randomascii.wordpress.com/feed/" htmlUrl="https://randomascii.wordpress.com" />
<outline text="ʞ.cc - lexi hale" type="rss" title="ʞ.cc - lexi hale" xmlUrl="https://xn--rpa.cc/feed.atom" htmlUrl="http://ʞ.cc/" /> <outline text="ʞ.cc - lexi hale" type="rss" title="ʞ.cc - lexi hale" xmlUrl="https://xn--rpa.cc/feed.atom" htmlUrl="http://ʞ.cc/" />
@ -71,14 +78,5 @@
<outline text="Learning TypeScript Blog" type="rss" title="Learning TypeScript Blog" xmlUrl="https://www.learningtypescript.com/articles/rss.xml" htmlUrl="https://www.learningtypescript.com/articles" /> <outline text="Learning TypeScript Blog" type="rss" title="Learning TypeScript Blog" xmlUrl="https://www.learningtypescript.com/articles/rss.xml" htmlUrl="https://www.learningtypescript.com/articles" />
<outline text="Holovaty.com" type="rss" title="Holovaty.com" xmlUrl="https://www.holovaty.com/rss/" htmlUrl="https://www.holovaty.com/" /> <outline text="Holovaty.com" type="rss" title="Holovaty.com" xmlUrl="https://www.holovaty.com/rss/" htmlUrl="https://www.holovaty.com/" />
</outline> </outline>
<outline text="News" title="News">
<outline text="Ars Technica - All content" type="rss" title="Ars Technica - All content" xmlUrl="https://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com" />
<outline text="NYT &gt; U.S. News" type="rss" title="NYT &gt; U.S. News" xmlUrl="https://rss.nytimes.com/services/xml/rss/nyt/US.xml" htmlUrl="https://www.nytimes.com/ca/section/us" />
<outline text="NYT &gt; Science" type="rss" title="NYT &gt; Science" xmlUrl="https://rss.nytimes.com/services/xml/rss/nyt/Science.xml" htmlUrl="https://www.nytimes.com/section/science" />
<outline text="News : NPR" type="rss" title="News : NPR" xmlUrl="https://feeds.npr.org/1001/rss.xml" htmlUrl="https://www.npr.org/templates/story/story.php?storyId=1001" />
<outline text="Quanta Magazine" type="rss" title="Quanta Magazine" xmlUrl="https://api.quantamagazine.org/feed/" htmlUrl="https://www.quantamagazine.org" />
</outline>
<outline text="The Lawrence Times" type="rss" title="The Lawrence Times" xmlUrl="https://lawrencekstimes.com/feed/" htmlUrl="https://lawrencekstimes.com" />
<outline text="NYT &gt; World News" type="rss" title="NYT &gt; World News" xmlUrl="https://rss.nytimes.com/services/xml/rss/nyt/World.xml" htmlUrl="https://www.nytimes.com/section/world" />
</body> </body>
</opml> </opml>

View File

@ -10,7 +10,10 @@ head
meta(name='robots' content='index, follow') meta(name='robots' content='index, follow')
block title block title
title #{config('app.name', 'Garrett Mills')} | Developer, Speaker, Designer if title
title #{title} | #{config('app.name', 'Garrett Mills')}
else
title #{config('app.name', 'Garrett Mills')}
block style block style
style !{themeCSS} style !{themeCSS}