Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Generate a minimal blog from Notion.so.
Here are some images of my blog. 🙂 Visit site
Mobile | Desktop |
---|---|
Duplicate my table template on Notion.
Make the table you've duplicated public.
Clone the notablog-starter
repository and install it.
git clone https://github.com/dragonman225/notablog-starter.git
cd notablog-starter && npm install
Open config.json
. Change url
field to the URL of the table you've duplicated.
Issue command npm run generate
.
Generated blog is the public
folder. You can open public/index.html
in a browser to preview.
If you want to host the blog on the internet, either can you build your own server or use static hosting services like Github Pages, Netlify, etc.
Below folder paths are relative to the
notablog-starter
you have cloned.
To edit CSS styles, look for files in themes/pure/source/css
.
To edit layouts, look for files in themes/pure/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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
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.