From f1cf0ba9a5fde3b2cb056dd6571065a4f258bc2d Mon Sep 17 00:00:00 2001 From: victor Date: Sun, 5 Nov 2023 12:24:35 +0000 Subject: [PATCH] GITBOOK-37: change request with no subject merged in GitBook --- SUMMARY.md | 6 ++++- seo/meta-tags.md | 49 +++++++++++++++++++++++++++++++++++++++++ seo/sitemap.xml.md | 3 +++ the-basics/meta-tags.md | 21 ------------------ 4 files changed, 57 insertions(+), 22 deletions(-) create mode 100644 seo/meta-tags.md create mode 100644 seo/sitemap.xml.md delete mode 100644 the-basics/meta-tags.md diff --git a/SUMMARY.md b/SUMMARY.md index fe693fe..4c8323f 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -27,4 +27,8 @@ * [Conditions](the-basics/conditions.md) * [Sessions](the-basics/sessions.md) * [Static site export](the-basics/static-site-export.md) -* [Meta tags](the-basics/meta-tags.md) + +## 🔍 SEO + +* [Sitemap.xml](seo/sitemap.xml.md) +* [Meta tags](seo/meta-tags.md) diff --git a/seo/meta-tags.md b/seo/meta-tags.md new file mode 100644 index 0000000..4652518 --- /dev/null +++ b/seo/meta-tags.md @@ -0,0 +1,49 @@ +--- +description: Learn how to use meta tags in BuckShotPlusPlus +--- + +# Meta tags + +Meta tags play a pivotal role in enhancing the visibility and [SEO ](https://en.wikipedia.org/wiki/Search\_engine\_optimization)(Search Engine Optimization) of your website. In [BuckshotPlusPlus](https://bpplang.com/), adding custom meta tags is straightforward, allowing you to provide essential metadata about your web pages to search engines and other web services. + +## How it works + +### Declaring meta tags + +In [BuckshotPlusPlus](https://bpplang.com/), you can declare meta tags using the `meta` keyword. Each meta tag is defined as an object with properties that specify the meta tag's name and content. + +Here's a basic example: + +``` +meta Description{ + name = "description" + content = "A cool description of my website!" +} +``` + +In this example, a meta tag named `Description` is declared with a `name` property set to "description" and a `content` property set to "A cool description of my website!". + +### Associating meta tags with pages + +Once you've defined your meta tags, you can associate them with specific pages using the `meta` property of the [page ](../data-types/page.md)object. This ensures that the meta tags are included in the HTML head section of the corresponding web page. + +Here's how you can associate the `Description` meta tag with an `index` [page](../data-types/page.md): + +``` +page index{ + body = PageTitle + meta = [Description] +} +``` + +## Use cases + +1. **SEO Optimization**: Improve the search engine ranking and visibility of your web pages by providing relevant meta information. +2. **Social Media Sharing**: Use meta tags to define how your web pages appear when shared on social media platforms like Facebook or Twitter. +3. **Browser Behavior**: Control browser behavior, such as setting the viewport or specifying the character set, using specific meta tags. + +## Important notes + +* Ensure that your meta tags provide accurate and relevant information about your web pages. +* Regularly update your meta tags to reflect any changes or updates to your web content. +* Test your web pages using SEO tools to ensure that the meta tags are correctly recognized and processed by search engines. diff --git a/seo/sitemap.xml.md b/seo/sitemap.xml.md new file mode 100644 index 0000000..c2d7b36 --- /dev/null +++ b/seo/sitemap.xml.md @@ -0,0 +1,3 @@ +# Sitemap.xml + +BuckShotPlusPlus automatically generates sitemap.xml files for you. diff --git a/the-basics/meta-tags.md b/the-basics/meta-tags.md deleted file mode 100644 index f5b3e46..0000000 --- a/the-basics/meta-tags.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -description: Learn how to use meta tags in BuckShotPlusPlus ---- - -# Meta tags - -You want to add custom meta tags to enhance your website SEO? It's really simple to do in BuckShotPlusPlus! - -All you have to do is create a "meta" object. Inside of your meta object, set all your meta properties, like name and content and add your meta object to your page, here is an example: - -``` -meta Description{ - name = "description" - content = "A cool description of my website!" -} - -page index{ - body = PageTitle - meta = [Description] -} -```