Skip to content

Commit

Permalink
Add metadata seo on all pages (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndungtse authored Feb 16, 2024
1 parent d45dafd commit 4e09461
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/pages/built-in/file-handling.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/built-in/time.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/built-in/utility-functions.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Getting Started
---

## Installation

Kin is available through npm package manager, you can Install it by:
Expand Down
5 changes: 5 additions & 0 deletions src/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Arrays.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: "Arrays"
---

# Intro

An array is a special variable, which can hold more than one value:
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Comments.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Comments
---

# Comments

**_Kin_** comments can be used to explain **_Kin_** code, and to make it more readable.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Conditions.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Conditional Statements
---

# Intro

Very often when you write code, you want to perform different actions for different decisions.
Expand Down
3 changes: 3 additions & 0 deletions src/pages/language-structure/Data-types.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
title: "Data Types"
---
# Intro

In programming, data types is an important concept.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Functions.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: "Functions"
---

# Intro

A **_Kin_** function is a block of code designed to perform a particular task.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Input-Output.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Loops.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: "Loops"
---

# Intro

Loops can execute a block of code as long as a specified condition is true.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Objects.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: "Objects"
---

# Intro

You have already learned that **_Kin_** variables are containers for data values.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Operators.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Operators
---

# Intro

**_Kin_** comes with set of many operators which performs various operations.
Expand Down
7 changes: 7 additions & 0 deletions src/pages/language-structure/Scope.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Strings.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Strings
---

# Intro

Strings are for storing text.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/language-structure/Syntax.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Syntax
---

# Intro

**_A computer program_** is a list of "instructions" to be "executed" by a computer.
Expand Down
5 changes: 5 additions & 0 deletions src/pages/language-structure/Variables.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: Variables
lang: en-US
---

# Intro

Variables are Containers for Storing Data
Expand Down
5 changes: 5 additions & 0 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const config = {
footer: {
text: "Made and Designed with 💖 by Murangwa Pacifique.",
},
useNextSeoProps() {
return {
titleTemplate: '%s – Kin'
}
}
};

export default config;

0 comments on commit 4e09461

Please sign in to comment.