Skip to content

Commit

Permalink
Fix CSS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Oct 30, 2023
1 parent 2ea3a3c commit 00915b4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@fastify/swagger-ui": "^1.3.0",
"@mozilla/readability": "^0.4.2",
"@nearform/sql": "^1.5.0",
"@siteup/cli": "^4.0.0-beta.0",
"@siteup/cli": "^4.0.0",
"abstract-cache-redis": "^2.0.0",
"classnames": "^2.3.1",
"clean-deep": "^3.4.0",
Expand Down Expand Up @@ -119,7 +119,7 @@
"version:git": "git add CHANGELOG.md",
"watch": "run-s clean && run-p watch:*",
"watch:server": "fastify start -w --ignore-watch='node_modules .git web' -l info -P -p 3000 --options --address 0.0.0.0 app.js",
"watch:siteup": "run-s build:siteup -- --watch",
"watch:siteup": "npm run build:siteup -- --watch",
"print-routes": "fastify print-routes app.js",
"print-plugins": "fastify print-plugins app.js",
"generate-dbml": "npx pg-to-dbml --c postgres://postgres@localhost/breadcrum"
Expand Down
2 changes: 1 addition & 1 deletion web/bookmarks/add/style.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '../../components/bookmark/bookmark-edit.css'
@import '../../components/bookmark/bookmark-edit.css';
15 changes: 12 additions & 3 deletions web/feeds.template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import pMap from 'p-map'
import jsonfeedToAtom from 'jsonfeed-to-atom'

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

/**
* @type {TemplateFunction}
*/
export default async function * feedsTemplate (args) {
const {
vars: {
Expand All @@ -15,7 +22,9 @@ export default async function * feedsTemplate (args) {
pages
} = args
const blogPosts = pages
.filter(page => page.vars.layout === 'article')
// eslint-disable-next-line dot-notation
.filter(page => page.vars['layout'] === 'article')
// @ts-ignore
.sort((a, b) => new Date(b.vars.publishDate) - new Date(a.vars.publishDate))
.slice(0, 10)

Expand All @@ -36,8 +45,8 @@ export default async function * feedsTemplate (args) {
return {
date_published: page.vars.publishDate,
title: page.vars.title,
url: `${baseUrl}/${page.page.path}/`,
id: `${baseUrl}/${page.page.path}/#${page.vars.publishDate}`,
url: `${baseUrl}/${page.pageInfo.path}/`,
id: `${baseUrl}/${page.pageInfo.path}/#${page.vars.publishDate}`,
content_html: await page.renderInnerPage({ pages })
}
}, { concurrency: 4 })
Expand Down

0 comments on commit 00915b4

Please sign in to comment.