Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Generate a minimal blog from Notion.so.
notablog-starter
repository and install packages.
git clone https://github.com/dragonman225/notablog-starter.git
cd notablog-starter && npm install
config.json
. Change url
field to the URL of the table you've duplicated.npm run generate
. Generated static assets are in public
folder. You can move that folder to your hosting location.Below folder paths are relative to the
notablog-starter
you have cloned.
To edit CSS styles, look for files in public/css
. (Notice : This folder may be moved in the future.)
To edit layouts, look for files in layout
. These are Squirrelly templates.
Variables a user can use in index.html
template :
GraphQL-style overview :
{
siteMetadata {
title
}
index {
posts {
pageID
title
tags {
value
color
}
icon
description
createdTime
lastEditedTime
}
}
}
Details :
Property | Type | Description |
---|---|---|
siteMetadata.title | string | Title of the blog. |
index.posts | Post[] | Post metadata array. |
A Post
object :
Property | Type | Description |
---|---|---|
pageID | string | Notion's page ID. Used as the file name of a post. |
title | string | Title of a post. |
tags | Tag[] | Tags of a post. |
icon | string | Icon of a post. |
description | string | Description of a post. This is a HTML string since Notion support styles here. |
createdTime | string | Created date of the post in YYYY.MM.DD format. |
A Tag
object :
Property | Type | Description |
---|---|---|
value | string | Name of the tag. |
color | string | Color of the tag with prefix tag- . e.g. tag-green , tag-red . |
Variables a user can use in post.html
template :
GraphQL-style overview :
{
siteMetadata {
title
}
post {
pageID
title
tags {
value
color
}
icon
description
createdTime
lastEditedTime
}
content
}
Details :
Property | Type | Description |
---|---|---|
siteMetadata.title | string | Title of the blog. |
post | Post | See above Post object. |
content | string | HTML string of the page, including title. |
FAQs
Generate a minimalistic blog from a Notion.so table.
The npm package notablog receives a total of 589 weekly downloads. As such, notablog popularity was classified as not popular.
We found that notablog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.