Added links and seo

This commit is contained in:
elvistony 2023-08-05 20:04:17 +01:00
parent c0085b644b
commit c5d7a4edc1
6 changed files with 45 additions and 63 deletions

View file

@ -20,8 +20,8 @@ title : "Code Ninjas Langley"
title_separator : "-" title_separator : "-"
subtitle : "" subtitle : ""
name : "Code Ninjas Langley" name : "Code Ninjas Langley"
description : "Code Ninjas | Langley (Berks) | Your kids will love learning to code while building video games at Code Ninjas." description : "Code Ninjas Langley (Berks). Let your kids learn the power of programming in a fun and exciting way!"
url : # the base hostname & protocol for your site e.g. "https://mmistakes.github.io" url : "https://codeninjaslangley.co.uk" # the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
baseurl : # the subpath of your site, e.g. "/blog" baseurl : # the subpath of your site, e.g. "/blog"
repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png" teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png"
@ -243,6 +243,7 @@ plugins:
- jekyll-gist - jekyll-gist
- jekyll-feed - jekyll-feed
- jekyll-include-cache - jekyll-include-cache
# - jekyll-seo
# mimic GitHub Pages with --safe # mimic GitHub Pages with --safe
whitelist: whitelist:

View file

@ -1,84 +1,60 @@
<!-- begin _includes/seo.html -->
{%- if site.url -%} {%- if site.url -%}
{%- assign seo_url = site.url | append: site.baseurl -%} {%- assign seo_url = site.url | append: site.baseurl -%}
{%- endif -%} {%- endif -%}
{%- assign seo_url = seo_url | default: site.github.url -%} {%- assign seo_url = seo_url | default: site.github.url -%}
{% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %} {% assign title_separator = site.title_separator | default: '-' | replace: '|', '&#124;' %}
{%- if page.title -%} {%- if page.title -%}
{%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%} {%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
{%- endif -%} {%- endif -%}
{%- if seo_title -%} {%- if seo_title -%}
{%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%} {%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
{%- endif -%} {%- endif -%}
{% if page.canonical_url %} {% if page.canonical_url %}
{%- assign canonical_url = page.canonical_url %} {%- assign canonical_url = page.canonical_url %}
{% else %} {% else %}
{%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %} {%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %}
{% endif %} {% endif %}
{%- assign seo_description = page.description | default: page.excerpt | default: site.description -%} {%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
{%- if seo_description -%} {%- if seo_description -%}
{%- assign seo_description = seo_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '<br />', ' ' | escape_once | strip -%} {%- assign seo_description = seo_description | markdownify | strip_html | newline_to_br | strip_newlines | replace: '<br />', ' ' | escape_once | strip -%}
{%- endif -%} {%- endif -%}
{%- assign author = page.author | default: page.authors[0] | default: site.author -%} {%- assign author = page.author | default: page.authors[0] | default: site.author -%}
{%- assign author = site.data.authors[author] | default: author -%} {%- assign author = site.data.authors[author] | default: author -%}
{%- if author.twitter -%} {%- if author.twitter -%}
{%- assign author_twitter = author.twitter | replace: "@", "" -%} {%- assign author_twitter = author.twitter | replace: "@", "" -%}
{%- endif -%} {%- endif -%}
{%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image | absolute_url -%} {%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image | absolute_url -%}
{%- assign page_large_image = page_large_image | escape -%} {%- assign page_large_image = page_large_image | escape -%}
{%- assign page_teaser_image = page.header.teaser | default: site.og_image | absolute_url -%} {%- assign page_teaser_image = page.header.teaser | default: site.og_image | absolute_url -%}
{%- assign page_teaser_image = page_teaser_image | escape -%} {%- assign page_teaser_image = page_teaser_image | escape -%}
{%- assign site_og_image = site.og_image | absolute_url -%} {%- assign site_og_image = site.og_image | absolute_url -%}
{%- assign site_og_image = site_og_image | escape -%} {%- assign site_og_image = site_og_image | escape -%}
{%- if page.date -%} {%- if page.date -%}
{%- assign og_type = "article" -%} {%- assign og_type = "article" -%}
{%- else -%} {%- else -%}
{%- assign og_type = "website" -%} {%- assign og_type = "website" -%}
{%- endif -%} {%- endif -%}
<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title> <title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
<meta name="description" content="{{ seo_description }}"> <meta name="description" content="{{ seo_description }}">
{% if author.name %} {% if author.name %}
<meta name="author" content="{{ author.name | default: author }}"> <meta name="author" content="{{ author.name | default: author }}">
{% if og_type == "article" %} {% if og_type == "article" %}<meta property="article:author" content="{{ author.name | default: author }}">{% endif %}{% endif %}
<meta property="article:author" content="{{ author.name | default: author }}">
{% endif %}
{% endif %}
<meta property="og:type" content="{{ og_type }}"> <meta property="og:type" content="{{ og_type }}">
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}"> <meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
<meta property="og:site_name" content="{{ site.title }}"> <meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}"> <meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
<meta property="og:url" content="{{ canonical_url }}"> <meta property="og:url" content="{{ canonical_url }}">
{% if seo_description %}<meta property="og:description" content="{{ seo_description }}">{% endif %}
{% if seo_description %}
<meta property="og:description" content="{{ seo_description }}">
{% endif %}
{% if page_large_image %} {% if page_large_image %}
<meta property="og:image" content="{{ page_large_image }}"> <meta property="og:image" content="{{ page_large_image }}">
{% elsif page_teaser_image %} {% elsif page_teaser_image %}
<meta property="og:image" content="{{ page_teaser_image }}"> <meta property="og:image" content="{{ page_teaser_image }}">
{% endif %} {% endif %}
{% if site.twitter.username %} {% if site.twitter.username %}
<meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}"> <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
<meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}"> <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
<meta name="twitter:description" content="{{ seo_description }}"> <meta name="twitter:description" content="{{ seo_description }}">
<meta name="twitter:url" content="{{ canonical_url }}"> <meta name="twitter:url" content="{{ canonical_url }}">
{% if page_large_image %} {% if page_large_image %}
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ page_large_image }}"> <meta name="twitter:image" content="{{ page_large_image }}">
@ -88,39 +64,31 @@
<meta name="twitter:image" content="{{ page_teaser_image }}"> <meta name="twitter:image" content="{{ page_teaser_image }}">
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if author_twitter %} {% if author_twitter %}
<meta name="twitter:creator" content="@{{ author_twitter }}"> <meta name="twitter:creator" content="@{{ author_twitter }}">
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if page.date %} {% if page.date %}
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}"> <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
{% endif %} {% endif %}
{% if og_type == "article" and page.last_modified_at %} {% if og_type == "article" and page.last_modified_at %}
<meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}"> <meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
{% endif %} {% endif %}
{% if site.facebook %} {% if site.facebook %}
{% if site.facebook.publisher %} {% if site.facebook.publisher %}
<meta property="article:publisher" content="{{ site.facebook.publisher }}"> <meta property="article:publisher" content="{{ site.facebook.publisher }}">
{% endif %} {% endif %}
{% if site.facebook.app_id %} {% if site.facebook.app_id %}
<meta property="fb:app_id" content="{{ site.facebook.app_id }}"> <meta property="fb:app_id" content="{{ site.facebook.app_id }}">
{% endif %} {% endif %}
{% endif %} {% endif %}
<link rel="canonical" href="{{ canonical_url }}"> <link rel="canonical" href="{{ canonical_url }}">
{% if paginator.previous_page %} {% if paginator.previous_page %}
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}"> <link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
{% endif %} {% endif %}
{% if paginator.next_page %} {% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}"> <link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
{% endif %} {% endif %}
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "https://schema.org", "@context": "https://schema.org",
@ -136,7 +104,6 @@
{% endif %} {% endif %}
} }
</script> </script>
{% if site.google_site_verification %} {% if site.google_site_verification %}
<meta name="google-site-verification" content="{{ site.google_site_verification }}" /> <meta name="google-site-verification" content="{{ site.google_site_verification }}" />
{% endif %} {% endif %}
@ -155,4 +122,3 @@
{% if site.baidu_site_verification %} {% if site.baidu_site_verification %}
<meta name="baidu-site-verification" content="{{ site.baidu_site_verification }}"> <meta name="baidu-site-verification" content="{{ site.baidu_site_verification }}">
{% endif %} {% endif %}
<!-- end _includes/seo.html -->

View file

@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
f.match(%r{^(assets|_(data|includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i) f.match(%r{^(assets|_(data|includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i)
end end
spec.add_runtime_dependency "jekyll", ">= 3.7", "< 5.0" spec.add_runtime_dependency "jekyll"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.3" spec.add_runtime_dependency "jekyll-sitemap", "~> 1.3"
spec.add_runtime_dependency "jekyll-gist", "~> 1.5" spec.add_runtime_dependency "jekyll-gist", "~> 1.5"

View file

@ -10,19 +10,22 @@ camps:
link: /camps/stopmotion-animation/ link: /camps/stopmotion-animation/
dates: 25th, 26th July dates: 25th, 26th July
youtubeid: 5Zs7vqM8t24 youtubeid: 5Zs7vqM8t24
ended: true
- name: Moviemaking with Minecraft - name: Moviemaking with Minecraft
img: https://img.icons8.com/?size=512x&id=nQVd58awWcQA&format=gif img: https://img.icons8.com/?size=512x&id=nQVd58awWcQA&format=gif
link: /camps/moviemaking-with-minecraft/ link: /camps/moviemaking-with-minecraft/
<!-- link: https://www.codeninjas.co.uk/langley-brk-uk/camps/become-a-youtuber -->
dates: 1st, 2nd August dates: 1st, 2nd August
youtubeid: UMKng76YFq4 youtubeid: UMKng76YFq4
ended: true
- name: Become a Youtuber - name: Become a Youtuber
img: https://img.icons8.com/?size=512x&id=qdWsFiGwz7NW&format=gif img: https://img.icons8.com/?size=512x&id=qdWsFiGwz7NW&format=gif
link: /camps/become-a-youtuber/ link: https://www.codeninjas.co.uk/langley-brk-uk/camps/become-a-youtuber
dates: 8th, 9th August dates: 8th, 9th August
youtubeid: A5oDCEHdOpM youtubeid: A5oDCEHdOpM
- name: Roblox Development - name: Roblox Development
img: https://img.icons8.com/?size=512x&id=113741&format=png img: https://img.icons8.com/?size=512x&id=113741&format=png
link: /camps/roblox-development/ link: https://www.codeninjas.co.uk/langley-brk-uk/camps/intro-to-roblox-development
dates: 15th, 16th August dates: 15th, 16th August
youtubeid: ANL0Jz7Yt2c youtubeid: ANL0Jz7Yt2c
--- ---
@ -44,7 +47,11 @@ camps:
<div class="w3-margin"> <div class="w3-margin">
{{camp.dates}} {{camp.dates}}
</div> </div>
{% if camp.ended %}
<p class="w3-text-red">CAMP CONCLUDED</p>
{% endif %}
<a class="btn btn-success" href="{{camp.link}}">Learn More</a> <button class="btn btn-success" onclick="document.getElementsByName('{{camp.name}}')[0].style.display='block'" href="{{camp.link}}"><i class="fa fa-video"></i></button> <a class="btn btn-success" href="{{camp.link}}">Learn More</a> <button class="btn btn-success" onclick="document.getElementsByName('{{camp.name}}')[0].style.display='block'" href="{{camp.link}}"><i class="fa fa-video"></i></button>
<div name="{{camp.name}}" class="w3-modal"> <div name="{{camp.name}}" class="w3-modal">
<div class="w3-modal-content"> <div class="w3-modal-content">
<div class="w3-container"> <div class="w3-container">

View file

@ -3,35 +3,40 @@ layout: default
title: Privacy Policy title: Privacy Policy
permalink: /privacy-policy/ permalink: /privacy-policy/
comments: false comments: false
w3: true
--- ---
### Information that is gathered from visitors <div class="text-center w3-padding-16">
<h1>Privacy Policy</h1>
</div>
<div class="w3-content">
<h2>Information that is gathered from visitors</h2>
In common with other websites, log files are stored on the web server saving details such as the visitor's IP address, browser type, referring page and time of visit. In common with other websites, log files are stored on the web server saving details such as the visitor's IP address, browser type, referring page and time of visit.
Cookies may be used to remember visitor preferences when interacting with the website. Cookies may be used to remember visitor preferences when interacting with the website.
Where registration is required, the visitor's email and a username will be stored on the server. Where registration is required, the visitor's email and a username will be stored on the server.
### How the Information is used <h2>How the Information is used</h2>
The information is used to enhance the vistor's experience when using the website to display personalised content and possibly advertising. The information is used to enhance the vistor's experience when using the website to display personalised content and possibly advertising.
E-mail addresses will not be sold, rented or leased to 3rd parties. E-mail addresses will not be sold, rented or leased to 3rd parties.
E-mail may be sent to inform you of news of our services or offers by us or our affiliates. E-mail may be sent to inform you of news of our services or offers by us or our affiliates.
### Visitor Options
<h2>Visitor Options</h2>
If you have subscribed to one of our services, you may unsubscribe by following the instructions which are included in e-mail that you receive. If you have subscribed to one of our services, you may unsubscribe by following the instructions which are included in e-mail that you receive.
You may be able to block cookies via your browser settings but this may prevent you from access to certain features of the website. You may be able to block cookies via your browser settings but this may prevent you from access to certain features of the website.
### Cookies <h2>Cookies</h2>
Cookies are small digital signature files that are stored by your web browser that allow your preferences to be recorded when visiting the website. Also they may be used to track your return visits to the website. Cookies are small digital signature files that are stored by your web browser that allow your preferences to be recorded when visiting the website. Also they may be used to track your return visits to the website.
3rd party advertising companies may also use cookies for tracking purposes. 3rd party advertising companies may also use cookies for tracking purposes.
### Google Ads <h2>Google Ads</h2>
Google, as a third party vendor, uses cookies to serve ads. Google, as a third party vendor, uses cookies to serve ads.
Google's use of the DART cookie enables it to serve ads to visitors based on their visit to sites they visit on the Internet. Google's use of the DART cookie enables it to serve ads to visitors based on their visit to sites they visit on the Internet.
Website visitors may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy. Website visitors may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.
</div>

View file

@ -17,6 +17,7 @@ w3: true
<h2 class="w3-center w3-bolder" style="font-weight: 1000;">CODE NINJAS</h2> <h2 class="w3-center w3-bolder" style="font-weight: 1000;">CODE NINJAS</h2>
<h1 class="w3-center w3-jumbo w3-bolder" style="font-weight: 1000;font-size:8vw;;"> <span style="color:teal">CREATE</span></h1> <h1 class="w3-center w3-jumbo w3-bolder" style="font-weight: 1000;font-size:8vw;;"> <span style="color:teal">CREATE</span></h1>
<p class="w3-large">An exciting learning adventure for tech-loving kids! Have a blast building awesome video games and developing ninja coding skills on the path from white to black belt.</p> <p class="w3-large">An exciting learning adventure for tech-loving kids! Have a blast building awesome video games and developing ninja coding skills on the path from white to black belt.</p>
<a class="btn btn-success" href="https://www.codeninjas.co.uk/langley-brk-uk/create">Learn More</a>
</div> </div>
</div> </div>
@ -30,6 +31,7 @@ w3: true
<div class="w3-col m6 w3-padding-large"> <div class="w3-col m6 w3-padding-large">
<img src="https://www.codeninjas.co.uk/assets/img/programs/jr/cn-jr.jpg" class="w3-round w3-image" alt="Table Setting" width="600" height="400"> <img src="https://www.codeninjas.co.uk/assets/img/programs/jr/cn-jr.jpg" class="w3-round w3-image" alt="Table Setting" width="600" height="400">
</div> </div>
<a class="btn btn-success w3-margin" href="https://www.codeninjas.co.uk/langley-brk-uk/jr">Learn More</a>
</div> </div>
@ -42,6 +44,7 @@ w3: true
<h1 class="w3-center w3-jumbo w3-bolder" style="font-weight: 1000;font-size:8vw;;"><span style="color:teal">CAMPS</span></h1> <h1 class="w3-center w3-jumbo w3-bolder" style="font-weight: 1000;font-size:8vw;;"><span style="color:teal">CAMPS</span></h1>
<p class="w3-large">An exciting learning adventure for tech-loving kids! Have a blast building awesome video games and developing ninja coding skills on the path from white to black belt.</p> <p class="w3-large">An exciting learning adventure for tech-loving kids! Have a blast building awesome video games and developing ninja coding skills on the path from white to black belt.</p>
<a class="btn btn-success" href="/camps">Learn More</a>
</div> </div>
</div> </div>
</div> </div>