From 4e094612a5825b8fa29a067374c0d693e727e3e0 Mon Sep 17 00:00:00 2001 From: Ndungutse Charles <95475354+ndungtse@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:29:29 +0200 Subject: [PATCH] Add metadata seo on all pages (#2) --- package-lock.json | 6 +++--- src/pages/built-in/file-handling.mdx | 5 +++++ src/pages/built-in/time.mdx | 4 ++++ src/pages/built-in/utility-functions.mdx | 4 ++++ src/pages/getting-started.mdx | 4 ++++ src/pages/index.mdx | 5 +++++ src/pages/language-structure/Arrays.mdx | 4 ++++ src/pages/language-structure/Comments.mdx | 4 ++++ src/pages/language-structure/Conditions.mdx | 4 ++++ src/pages/language-structure/Data-types.mdx | 3 +++ src/pages/language-structure/Functions.mdx | 4 ++++ src/pages/language-structure/Input-Output.mdx | 4 ++++ src/pages/language-structure/Loops.mdx | 4 ++++ src/pages/language-structure/Objects.mdx | 4 ++++ src/pages/language-structure/Operators.mdx | 4 ++++ src/pages/language-structure/Scope.mdx | 7 +++++++ src/pages/language-structure/Strings.mdx | 4 ++++ src/pages/language-structure/Syntax.mdx | 4 ++++ src/pages/language-structure/Variables.mdx | 5 +++++ theme.config.tsx | 5 +++++ 20 files changed, 85 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a2b6ef..0c02808 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4496,9 +4496,9 @@ } }, "node_modules/next-seo": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/next-seo/-/next-seo-6.4.0.tgz", - "integrity": "sha512-XQFxkOL2hw0YE+P100HbI3EAvcludlHPxuzMgaIjKb7kPK0CvjGvLFjd9hszZFEDc5oiQkGFA8+cuWcnip7eYA==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/next-seo/-/next-seo-6.5.0.tgz", + "integrity": "sha512-MfzUeWTN/x/rsKp/1n0213eojO97lIl0unxqbeCY+6pAucViHDA8GSLRRcXpgjsSmBxfCFdfpu7LXbt4ANQoNQ==", "peerDependencies": { "next": "^8.1.1-canary.54 || >=9.0.0", "react": ">=16.0.0", diff --git a/src/pages/built-in/file-handling.mdx b/src/pages/built-in/file-handling.mdx index a7405b2..2cf8a4e 100644 --- a/src/pages/built-in/file-handling.mdx +++ b/src/pages/built-in/file-handling.mdx @@ -1,3 +1,8 @@ +--- +title: File Handling +description: File Handling in Kin +--- + # Intro File Handling is a seamless way to deal and do operations on files, and it is a very important part of any programming language. diff --git a/src/pages/built-in/time.mdx b/src/pages/built-in/time.mdx index 318609d..f86d51c 100644 --- a/src/pages/built-in/time.mdx +++ b/src/pages/built-in/time.mdx @@ -1,3 +1,7 @@ +--- +title: "Time and Date" +--- + # Intro `KIN_IGIHE()` in-built utility provides access to date and time methods that can help you deal with the time. diff --git a/src/pages/built-in/utility-functions.mdx b/src/pages/built-in/utility-functions.mdx index b7c674e..8de4774 100644 --- a/src/pages/built-in/utility-functions.mdx +++ b/src/pages/built-in/utility-functions.mdx @@ -1,3 +1,7 @@ +--- +title: Other In-built Methods +--- + # Intro This is a list of other in-built methods that we haven't talked about in the documentation. diff --git a/src/pages/getting-started.mdx b/src/pages/getting-started.mdx index 2c1f1f8..f3ba2da 100644 --- a/src/pages/getting-started.mdx +++ b/src/pages/getting-started.mdx @@ -1,3 +1,7 @@ +--- +title: Getting Started +--- + ## Installation Kin is available through npm package manager, you can Install it by: diff --git a/src/pages/index.mdx b/src/pages/index.mdx index f133e7b..b5aa715 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -1,3 +1,8 @@ +--- +title: Write computer programs in Kinyarwanda +description: Kin is a programming language created with the purpose of aiding Kinyarwanda speakers in easily learning programming. +--- + # Introduction **_Kin_** is a is a straightforward programming language created with the purpose of aiding Kinyarwanda speakers in easily learning programming. diff --git a/src/pages/language-structure/Arrays.mdx b/src/pages/language-structure/Arrays.mdx index 26108d7..af7a454 100644 --- a/src/pages/language-structure/Arrays.mdx +++ b/src/pages/language-structure/Arrays.mdx @@ -1,3 +1,7 @@ +--- +title: "Arrays" +--- + # Intro An array is a special variable, which can hold more than one value: diff --git a/src/pages/language-structure/Comments.mdx b/src/pages/language-structure/Comments.mdx index 9aebfd1..497233f 100644 --- a/src/pages/language-structure/Comments.mdx +++ b/src/pages/language-structure/Comments.mdx @@ -1,3 +1,7 @@ +--- +title: Comments +--- + # Comments **_Kin_** comments can be used to explain **_Kin_** code, and to make it more readable. diff --git a/src/pages/language-structure/Conditions.mdx b/src/pages/language-structure/Conditions.mdx index cbb5414..59fe5d9 100644 --- a/src/pages/language-structure/Conditions.mdx +++ b/src/pages/language-structure/Conditions.mdx @@ -1,3 +1,7 @@ +--- +title: Conditional Statements +--- + # Intro Very often when you write code, you want to perform different actions for different decisions. diff --git a/src/pages/language-structure/Data-types.mdx b/src/pages/language-structure/Data-types.mdx index a8cf13d..6992404 100644 --- a/src/pages/language-structure/Data-types.mdx +++ b/src/pages/language-structure/Data-types.mdx @@ -1,3 +1,6 @@ +--- +title: "Data Types" +--- # Intro In programming, data types is an important concept. diff --git a/src/pages/language-structure/Functions.mdx b/src/pages/language-structure/Functions.mdx index b502ac9..270830c 100644 --- a/src/pages/language-structure/Functions.mdx +++ b/src/pages/language-structure/Functions.mdx @@ -1,3 +1,7 @@ +--- +title: "Functions" +--- + # Intro A **_Kin_** function is a block of code designed to perform a particular task. diff --git a/src/pages/language-structure/Input-Output.mdx b/src/pages/language-structure/Input-Output.mdx index 33ac898..510ee3e 100644 --- a/src/pages/language-structure/Input-Output.mdx +++ b/src/pages/language-structure/Input-Output.mdx @@ -1,3 +1,7 @@ +--- +title: "Input and Output" +--- + # Input _**Kin**_ provides a built-in function `injiza_amakuru()`, this function is used to get information from the user. diff --git a/src/pages/language-structure/Loops.mdx b/src/pages/language-structure/Loops.mdx index 16488c0..37f9da4 100644 --- a/src/pages/language-structure/Loops.mdx +++ b/src/pages/language-structure/Loops.mdx @@ -1,3 +1,7 @@ +--- +title: "Loops" +--- + # Intro Loops can execute a block of code as long as a specified condition is true. diff --git a/src/pages/language-structure/Objects.mdx b/src/pages/language-structure/Objects.mdx index b6feb21..151f19d 100644 --- a/src/pages/language-structure/Objects.mdx +++ b/src/pages/language-structure/Objects.mdx @@ -1,3 +1,7 @@ +--- +title: "Objects" +--- + # Intro You have already learned that **_Kin_** variables are containers for data values. diff --git a/src/pages/language-structure/Operators.mdx b/src/pages/language-structure/Operators.mdx index 6761b0c..af99d68 100644 --- a/src/pages/language-structure/Operators.mdx +++ b/src/pages/language-structure/Operators.mdx @@ -1,3 +1,7 @@ +--- +title: Operators +--- + # Intro **_Kin_** comes with set of many operators which performs various operations. diff --git a/src/pages/language-structure/Scope.mdx b/src/pages/language-structure/Scope.mdx index 44f6903..a4c4c78 100644 --- a/src/pages/language-structure/Scope.mdx +++ b/src/pages/language-structure/Scope.mdx @@ -1,3 +1,10 @@ +--- +title: Scope +description: >- + Scope determines the accessibility (visibility) of variables. In **_Kin_** + variables have 2 types of scope: Function scope and Global scope +--- + # Intro Scope determines the accessibility (visibility) of variables. diff --git a/src/pages/language-structure/Strings.mdx b/src/pages/language-structure/Strings.mdx index 413704d..dd3bf8b 100644 --- a/src/pages/language-structure/Strings.mdx +++ b/src/pages/language-structure/Strings.mdx @@ -1,3 +1,7 @@ +--- +title: Strings +--- + # Intro Strings are for storing text. diff --git a/src/pages/language-structure/Syntax.mdx b/src/pages/language-structure/Syntax.mdx index 02953c4..7b299aa 100644 --- a/src/pages/language-structure/Syntax.mdx +++ b/src/pages/language-structure/Syntax.mdx @@ -1,3 +1,7 @@ +--- +title: Syntax +--- + # Intro **_A computer program_** is a list of "instructions" to be "executed" by a computer. diff --git a/src/pages/language-structure/Variables.mdx b/src/pages/language-structure/Variables.mdx index 98d959b..16b6577 100644 --- a/src/pages/language-structure/Variables.mdx +++ b/src/pages/language-structure/Variables.mdx @@ -1,3 +1,8 @@ +--- +title: Variables +lang: en-US +--- + # Intro Variables are Containers for Storing Data diff --git a/theme.config.tsx b/theme.config.tsx index bf40745..f6e5961 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -7,6 +7,11 @@ const config = { footer: { text: "Made and Designed with 💖 by Murangwa Pacifique.", }, + useNextSeoProps() { + return { + titleTemplate: '%s – Kin' + } + } }; export default config;