Skip to content

Commit

Permalink
Fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Dec 2, 2023
1 parent 199f5cb commit e6d0c9e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"pg": "^8.6.0",
"postgrator": "^7.0.0",
"postgrator-cli": "^7.0.0",
"resolve-email": "2.0.5",
"resolve-email": "2.0.6",
"sodium-native": "^4.0.0",
"uland-isomorphic": "^2.0.0",
"undici": "^5.12.0",
Expand Down
2 changes: 1 addition & 1 deletion web/blog/2023/page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @template T
* @typedef {import('@siteup/cli').PageFunction<T>} PageFunction
* @typedef {import('top-bun').PageFunction<T>} PageFunction
*/

export const vars = {
Expand Down
2 changes: 1 addition & 1 deletion web/blog/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dirname, basename } from 'node:path'

/**
* @template T
* @typedef {import('@siteup/cli').PageFunction<T>} PageFunction
* @typedef {import('top-bun').PageFunction<T>} PageFunction
*/

export const vars = {
Expand Down
2 changes: 1 addition & 1 deletion web/feeds.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import pMap from 'p-map'
import jsonfeedToAtom from 'jsonfeed-to-atom'

/**
* @typedef {import('@siteup/cli').TemplateFunction} TemplateFunction
* @typedef {import('top-bun').TemplateFunction} TemplateFunction
*/

/**
Expand Down
6 changes: 3 additions & 3 deletions web/layouts/article.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export default function articleLayout (args) {
<header class="article-header">
<h1 class="p-name article-title" itemprop="headline">${vars.title}</h1>
<div class="metadata">
<address class="author-info" itemprop="author" itemscope itemtype="http://schema.org/Person">
<address class="author-info p-author h-card" itemprop="author" itemscope itemtype="http://schema.org/Person">
${vars.authorImgUrl
? html`<img height="40" width="40" src="${vars.authorImgUrl}" alt="${vars.authorImgAlt}" class="u-photo" itemprop="image">`
: null
}
${vars.authorName && vars.authorUrl
? html`
<a href="${vars.authorUrl}" class="p-author h-card" itemprop="url">
<span itemprop="name">${vars.authorName}</span>
<a href="${vars.authorUrl}" class="u-url" itemprop="url">
<span itemprop="p-name name">${vars.authorName}</span>
</a>`
: null
}
Expand Down
2 changes: 1 addition & 1 deletion web/layouts/blog-auto-index.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dirname } from 'node:path'

/**
* @template T
* @typedef {import('@siteup/cli').LayoutFunction<T>} LayoutFunction
* @typedef {import('top-bun').LayoutFunction<T>} LayoutFunction
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion web/layouts/blog-index.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { breadcrumb } from '../components/breadcrumb/index.js'

/**
* @template T
* @typedef {import('@siteup/cli').LayoutFunction<T>} LayoutFunction
* @typedef {import('top-bun').LayoutFunction<T>} LayoutFunction
*/

/**
Expand Down
10 changes: 5 additions & 5 deletions web/layouts/root.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ If you need to render components inside, you need attatch them in the global cli

/**
* @template T
* @typedef {import('@siteup/cli').LayoutFunction<T>} LayoutFunction
* @typedef {import('top-bun').LayoutFunction<T>} LayoutFunction
*/

/**
Expand Down Expand Up @@ -42,13 +42,13 @@ export default function defaultRootLayout ({
<title>${title ? `${title}` : ''}${title && siteName ? ' | ' : ''}${siteName}</title>
<meta name='viewport' content='width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=1'>
<meta name='referrer' content='no-referrer'>
<meta name='description' content='${siteName} internet newspaper clippings and bookmarks. Podcast anything.'>
<meta name='description' content='${`${siteName} internet newspaper clippings and bookmarks. Podcast anything.`}'>
<meta itemprop="publisher" content="${siteName}">
<meta property="og:site_name" content="${siteName}">
<link rel="alternate" title="${siteName} Blog (JSON Feed)" type="application/json" href="/feed.json" />
<link rel="alternate" title="${siteName} Blog (JSON Feed)" type="application/feed+json" href="/feed.json" />
<link rel="alternate" title="${siteName} Blog (RSS Feed)" type="application/rss+xml" href="/feed.xml" />
<link rel="alternate" title="${`${siteName} Blog (JSON Feed)`}" type="application/json" href="/feed.json" />
<link rel="alternate" title="${`${siteName} Blog (JSON Feed)`}" type="application/feed+json" href="/feed.json" />
<link rel="alternate" title="${`${siteName} Blog (RSS Feed)`}" type="application/rss+xml" href="/feed.xml" />
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="${siteName}">
Expand Down

0 comments on commit e6d0c9e

Please sign in to comment.