Add title to pages, update OPML feeds
This commit is contained in:
parent
b9a406e553
commit
64eb2987fb
@ -19,6 +19,7 @@ export class Blog extends Controller {
|
||||
return view('blog:index', {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
title: 'Garrett\'s Blog',
|
||||
posts: posts.take(10).toArray(),
|
||||
})
|
||||
}
|
||||
@ -31,6 +32,7 @@ export class Blog extends Controller {
|
||||
return view('blog:404', {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
title: 'Post Not Found',
|
||||
slug,
|
||||
})
|
||||
}
|
||||
@ -39,6 +41,7 @@ export class Blog extends Controller {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
post,
|
||||
title: post.title,
|
||||
renderedPost: await this.blog.renderPost(post.slug),
|
||||
})
|
||||
}
|
||||
@ -51,6 +54,7 @@ export class Blog extends Controller {
|
||||
return view('blog:archive', {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
title: 'Archive',
|
||||
postsByYear,
|
||||
postYears: collect(Object.keys(postsByYear)).sortDesc().toArray(),
|
||||
})
|
||||
@ -70,6 +74,7 @@ export class Blog extends Controller {
|
||||
return view('blog:tags', {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
title: 'Tags',
|
||||
counts,
|
||||
tags: collect(Object.keys(counts)).sort().toArray(),
|
||||
})
|
||||
@ -86,6 +91,7 @@ export class Blog extends Controller {
|
||||
return view('blog:tag', {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
title: `#${tag}`,
|
||||
posts: posts.toArray(),
|
||||
tag,
|
||||
})
|
||||
@ -100,6 +106,7 @@ export class Blog extends Controller {
|
||||
return view('blog:feeds', {
|
||||
...home.getThemeCSS(),
|
||||
...this.getBlogData(),
|
||||
title: 'An RSS Manifesto',
|
||||
subsByCategory,
|
||||
categories,
|
||||
})
|
||||
|
@ -60,6 +60,7 @@ export class Home extends Controller {
|
||||
const isOptOut = this.request.cookies.has(this.config.get('app.analytics.optOutCookie'))
|
||||
|
||||
return view('technical', {
|
||||
title: 'Technical Info',
|
||||
isOptOut,
|
||||
...this.getThemeCSS(),
|
||||
})
|
||||
|
@ -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 Blogs" type="rss" title="NASA Blogs" xmlUrl="https://blogs.nasa.gov/feed/" htmlUrl="https://blogs.nasa.gov" />
|
||||
</outline>
|
||||
<outline text="News" title="News">
|
||||
<outline text="NYT > Morning, Evening and Weekend" type="rss" title="NYT > 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="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="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="Raph Levien’s blog" type="rss" title="Raph Levien’s 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="Raph Levien’s blog" type="rss" title="Raph Levien’s 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="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="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="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/" />
|
||||
@ -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="Holovaty.com" type="rss" title="Holovaty.com" xmlUrl="https://www.holovaty.com/rss/" htmlUrl="https://www.holovaty.com/" />
|
||||
</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 > U.S. News" type="rss" title="NYT > 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 > Science" type="rss" title="NYT > 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 > World News" type="rss" title="NYT > World News" xmlUrl="https://rss.nytimes.com/services/xml/rss/nyt/World.xml" htmlUrl="https://www.nytimes.com/section/world" />
|
||||
</body>
|
||||
</opml>
|
||||
|
@ -10,7 +10,10 @@ head
|
||||
meta(name='robots' content='index, follow')
|
||||
|
||||
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
|
||||
style !{themeCSS}
|
||||
|
Loading…
Reference in New Issue
Block a user