From ebd2f4b553f5d1822babb590d34deb10b99f4105 Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 3 Mar 2024 08:49:44 +0800 Subject: [PATCH 1/3] feat: Add APA style reference --- components/content/ApaReference.vue | 51 +++++++++++++++++++ content/blogs/1.my-first-blog.md | 38 ++++++++++++++ content/fr/blogs/1.my-first-blog.md | 38 ++++++++++++++ content/fr/guide.md | 76 ++++++++++++++++++++++++++++ content/guide.md | 77 +++++++++++++++++++++++++++++ 5 files changed, 280 insertions(+) create mode 100644 components/content/ApaReference.vue diff --git a/components/content/ApaReference.vue b/components/content/ApaReference.vue new file mode 100644 index 0000000..fdccf40 --- /dev/null +++ b/components/content/ApaReference.vue @@ -0,0 +1,51 @@ + + + diff --git a/content/blogs/1.my-first-blog.md b/content/blogs/1.my-first-blog.md index c3a1334..b4a02f6 100644 --- a/content/blogs/1.my-first-blog.md +++ b/content/blogs/1.my-first-blog.md @@ -27,3 +27,41 @@ It was an incredible and wholesome experience to witness the majestic golden ray ## An Anecdotal Incident While I was making my way through the hilltop, I came across a wild black panther sleeping soundly beside the crystal-clear river, shimmering with dazzling sparkles. It was surreal and I managed to capture some photo of the beast before continuing my journey. + +## References + +::apa-reference +--- +authors: + - Greenhouse, S +date: 2020, July 30 +title: The coronavirus pandemic has intensified systemic economic racism against black Americans +publisher: The New Yorker +url: https://www.newyorker.com/news/news-desk/the-pandemic-has-intensified-systemic-economic-racism-against-black-americans +source: newspaper +--- +:: + +::apa-reference +--- +authors: + - Lee, C +date: 2020, February 19 +title: A tale of two reference formats +publisher: APA Style Blog +url: https://apastyle.apa.org/blog/two-reference-formats +source: blogs +--- +:: + +::apa-reference +--- +authors: + - Rowlatt, J +date: 2020, October 19 +title: Could cold water hold a clue to a dementia cure? +publisher: BBC News +url: https://www.bbc.com/news/health-54531075 +source: online-news +--- +:: diff --git a/content/fr/blogs/1.my-first-blog.md b/content/fr/blogs/1.my-first-blog.md index 9a9c7e8..0f132fe 100644 --- a/content/fr/blogs/1.my-first-blog.md +++ b/content/fr/blogs/1.my-first-blog.md @@ -27,3 +27,41 @@ Ce fut une expérience incroyable et saine d'être témoin des majestueux rayons ## Un incident anecdotique Alors que je traversais le sommet de la colline, je suis tombé sur une panthère noire sauvage qui dormait profondément au bord de la rivière cristalline, scintillante d'étincelles éblouissantes. C'était surréaliste et j'ai réussi à capturer quelques photos de la bête avant de continuer mon voyage. + +## Les références + +::apa-reference +--- +authors: + - Greenhouse, S +date: 2020, July 30 +title: The coronavirus pandemic has intensified systemic economic racism against black Americans +publisher: The New Yorker +url: https://www.newyorker.com/news/news-desk/the-pandemic-has-intensified-systemic-economic-racism-against-black-americans +source: newspaper +--- +:: + +::apa-reference +--- +authors: + - Lee, C +date: 2020, February 19 +title: A tale of two reference formats +publisher: APA Style Blog +url: https://apastyle.apa.org/blog/two-reference-formats +source: blogs +--- +:: + +::apa-reference +--- +authors: + - Rowlatt, J +date: 2020, October 19 +title: Could cold water hold a clue to a dementia cure? +publisher: BBC News +url: https://www.bbc.com/news/health-54531075 +source: online-news +--- +:: diff --git a/content/fr/guide.md b/content/fr/guide.md index af4dfc0..4ec3a13 100644 --- a/content/fr/guide.md +++ b/content/fr/guide.md @@ -471,3 +471,79 @@ const localePath = useLocalePath(); ``` Cela garantira que lorsque vous êtes dans le contexte anglais, le lien vous redirigera vers la page normale `/careers` alors que si vous êtes dans le contexte français, il pointera vers `/fr/careers` pour sa version française. + +## Références de style APA + +De plus, ce modèle est également livré avec un simple composant de citation de style APA qui peut être utilisé dans le fichier Markdown à l'aide de la syntaxe MDC. Les exemples et les styles sont conçus sur la base de cet [article Scribbr](https://www.scribbr.com/apa-examples/website/) + +``` +::apa-reference +--- +authors: + - Greenhouse, S +date: 2020, July 30 +title: The coronavirus pandemic has intensified systemic economic racism against black Americans +publisher: The New Yorker +url: https://www.newyorker.com/news/news-desk/the-pandemic-has-intensified-systemic-economic-racism-against-black-americans +source: newspaper +--- +:: +``` + +### Exemples + +::apa-reference +--- +authors: + - Greenhouse, S +date: 2020, July 30 +title: The coronavirus pandemic has intensified systemic economic racism against black Americans +publisher: The New Yorker +url: https://www.newyorker.com/news/news-desk/the-pandemic-has-intensified-systemic-economic-racism-against-black-americans +source: newspaper +--- +:: + +::apa-reference +--- +authors: + - Lee, C +date: 2020, February 19 +title: A tale of two reference formats +publisher: APA Style Blog +url: https://apastyle.apa.org/blog/two-reference-formats +source: blogs +--- +:: + +::apa-reference +--- +authors: + - Rowlatt, J +date: 2020, October 19 +title: Could cold water hold a clue to a dementia cure? +publisher: BBC News +url: https://www.bbc.com/news/health-54531075 +source: online-news +--- +:: + +::apa-reference +--- +organization: Scribbr +date: n.d. +title: How to cite a website in APA style +url: https://www.scribbr.com/apa-examples/website/ +source: websites +--- +:: + +::apa-reference +--- +date: 2020, October 19 +title: "The countdown: A prophecy, crowds and a TikTok takedown" +publisher: BBC News +url: https://www.bbc.com/news/election-us-2020-54596667 +source: online-news +--- +:: diff --git a/content/guide.md b/content/guide.md index a7bc88d..98ca6fe 100644 --- a/content/guide.md +++ b/content/guide.md @@ -469,3 +469,80 @@ const localePath = useLocalePath(); ``` This will ensures when you are in the English context, the link will redirect you to the normal `/careers` page whereas if you are in the French context, it will points to `/fr/careers` for its French version. + + +## APA Style References + +Additionally, this template also comes with a simple APA style citation component that can be utilized in the Markdown file using the MDC syntax. The examples and styles are crafted base on this [Scribbr article](https://www.scribbr.com/apa-examples/website/). + +``` +::apa-reference +--- +authors: + - Greenhouse, S +date: 2020, July 30 +title: The coronavirus pandemic has intensified systemic economic racism against black Americans +publisher: The New Yorker +url: https://www.newyorker.com/news/news-desk/the-pandemic-has-intensified-systemic-economic-racism-against-black-americans +source: newspaper +--- +:: +``` + +### Examples + +::apa-reference +--- +authors: + - Greenhouse, S +date: 2020, July 30 +title: The coronavirus pandemic has intensified systemic economic racism against black Americans +publisher: The New Yorker +url: https://www.newyorker.com/news/news-desk/the-pandemic-has-intensified-systemic-economic-racism-against-black-americans +source: newspaper +--- +:: + +::apa-reference +--- +authors: + - Lee, C +date: 2020, February 19 +title: A tale of two reference formats +publisher: APA Style Blog +url: https://apastyle.apa.org/blog/two-reference-formats +source: blogs +--- +:: + +::apa-reference +--- +authors: + - Rowlatt, J +date: 2020, October 19 +title: Could cold water hold a clue to a dementia cure? +publisher: BBC News +url: https://www.bbc.com/news/health-54531075 +source: online-news +--- +:: + +::apa-reference +--- +organization: Scribbr +date: n.d. +title: How to cite a website in APA style +url: https://www.scribbr.com/apa-examples/website/ +source: websites +--- +:: + +::apa-reference +--- +date: 2020, October 19 +title: "The countdown: A prophecy, crowds and a TikTok takedown" +publisher: BBC News +url: https://www.bbc.com/news/election-us-2020-54596667 +source: online-news +--- +:: From 98b260c90d41d04af28fac91ffe8cf1533ae36a5 Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 3 Mar 2024 08:53:17 +0800 Subject: [PATCH 2/3] chore: Add semver --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 131d953..22c83e4 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "author": "Shaun Chong ", "license": "MIT", "private": true, + "version": "1.1.0", "scripts": { "build": "nuxt build", "dev": "nuxt dev", From aacd17cc20a54da4e95345f642218c86bd1098ae Mon Sep 17 00:00:00 2001 From: data-miner00 Date: Sun, 3 Mar 2024 09:14:29 +0800 Subject: [PATCH 3/3] docs: Ensure not update deps --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 967c8ac..0abc64d 100644 --- a/README.md +++ b/README.md @@ -116,15 +116,13 @@ To run this template project in your local for personal use or contribution, sim ```sh pnpm i ``` -3. Optionally update the dependencies - ```sh - pnpm up --latest - ``` -4. Start the development server +3. Start the development server ```sh pnpm dev ``` +> ⚠️ Important: **Do not update** the dependencies as it will break due to incompatibilities from the latest Nuxt and Nuxt Content. +

(back to top)