From feb66f0d0be8d6413f78cc47ba026a5eabbbaf6e Mon Sep 17 00:00:00 2001 From: ndamulelo Date: Tue, 16 Apr 2024 20:04:40 +0200 Subject: [PATCH] Update .env template, LICENSE, README.md, package.json, Footer.astro, Header.astro, and index.astro files --- .env template | 3 +++ LICENSE | 7 +++++++ README.md | 6 +++--- package.json | 8 ++++---- src/components/Footer.astro | 6 +++--- src/components/Header.astro | 2 +- src/pages/index.astro | 9 +-------- 7 files changed, 22 insertions(+), 19 deletions(-) create mode 100644 .env template create mode 100644 LICENSE diff --git a/.env template b/.env template new file mode 100644 index 0000000..c289f15 --- /dev/null +++ b/.env template @@ -0,0 +1,3 @@ +NOTION_CMS_SECRET="your-notion-api-secret" +NOTION_CMS_DATABASE_ID="your-notion-database-id-from-url" +NOTION_CMS_WORKSPACE="optional--your-notion-workspace-name" \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..885dc4f --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2024 Ndamulelo Nemakhavhani + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 4a6771f..066302e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ npm create astro@latest -- --template notion-cms-astro-blog Features: -- ✅ Automatic Sync Script From A [Notion](https://notion.so) Database +- ✅ Automatically Sync blog content from A [Notion](https://notion.so) Database - ✅ Astro [Content Collections](https://docs.astro.build/en/guides/content-collections/) - ✅ RSS Feed support - ✅ Markdown & MDX support @@ -55,7 +55,7 @@ All commands are run from the root of the project, from a terminal: # Content Management -- Since we are using [Content Collections], any markdown files in the `src/content` folder will be automatically converted into pages. +- Since we are using [AstroJS Content Collections API](https://docs.astro.build/en/guides/content-collections/), any markdown files in the `src/content` folder will be automatically converted into pages. - In addition, to manually edited markdown files, we can also use the `npm run sync` command to download content from your Notion database into the `src/content` folder. - When working in dev, add your [Notion](https://notion.so) API key and database id to the `.env` file as follows: @@ -109,7 +109,7 @@ jobs: ## License -- [CC-by-4.0](https://creativecommons.org/licenses/by/4.0/) +- This template is licensed under the MIT License - see the full license in the [LICENSE](./LICENSE) file. diff --git a/package.json b/package.json index f5f81cd..84bccd8 100644 --- a/package.json +++ b/package.json @@ -15,18 +15,18 @@ "template", "starter" ], - "homepage": "https://github.com/endeesa/notion-cms-astro-blog#readme", + "homepage": "https://github.com/ndamulelonemakh/notion-cms-astro-blog#readme", "bugs": { - "url": "https://github.com/endeesa/notion-cms-astro-blog/issues", + "url": "https://github.com/ndamulelonemakh/notion-cms-astro-blog/issues", "email": "endeesa@yahoo.com" }, - "license": "CC-BY-4.0", + "license": "MIT", "type": "module", "version": "0.0.1", "private": true, "repository": { "type": "git", - "url": "https://github.com/endeesa/notion-cms-astro-blog.git" + "url": "https://github.com/ndamulelonemakh/notion-cms-astro-blog.git" }, "scripts": { "dev": "astro dev", diff --git a/src/components/Footer.astro b/src/components/Footer.astro index e1ac068..4b22cef 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -3,9 +3,9 @@ const today = new Date(); ---