From 6a31c90f4cab1b09ecd0228f3450af6bf3ea7a2d Mon Sep 17 00:00:00 2001 From: Richard Rigby Date: Mon, 19 Aug 2024 14:12:20 +0100 Subject: [PATCH] Adjust twitter / og card tags Remove for stripes pages Adjust titles for others --- about/index.html | 6 +++--- acknowledgements/index.html | 6 +++--- contact/index.html | 6 +++--- dashboard/index.html | 6 +++--- faq/index.html | 6 +++--- js/stripes.js | 24 ------------------------ stripes/index.html | 24 ------------------------ 7 files changed, 15 insertions(+), 63 deletions(-) diff --git a/about/index.html b/about/index.html index 4110bcf..0724ec3 100644 --- a/about/index.html +++ b/about/index.html @@ -25,7 +25,7 @@ + content="Air Quality Stripes: About"> @@ -34,7 +34,7 @@ content="summary_large_image"> + content="Air Quality Stripes: About"> @@ -46,7 +46,7 @@ content="website"> + content="Air Quality Stripes: About"> diff --git a/acknowledgements/index.html b/acknowledgements/index.html index 6e96347..65bc54b 100644 --- a/acknowledgements/index.html +++ b/acknowledgements/index.html @@ -25,7 +25,7 @@ + content="Air Quality Stripes: Acknowledgements"> @@ -34,7 +34,7 @@ content="summary_large_image"> + content="Air Quality Stripes: Acknowledgements"> @@ -46,7 +46,7 @@ content="website"> + content="Air Quality Stripes: Acknowledgements"> diff --git a/contact/index.html b/contact/index.html index f30d84c..f7c43af 100644 --- a/contact/index.html +++ b/contact/index.html @@ -25,7 +25,7 @@ + content="Air Quality Stripes: Contact"> @@ -34,7 +34,7 @@ content="summary_large_image"> + content="Air Quality Stripes: Contact"> @@ -46,7 +46,7 @@ content="website"> + content="Air Quality Stripes: Contact"> diff --git a/dashboard/index.html b/dashboard/index.html index 0f5a9da..c8acaa9 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -25,7 +25,7 @@ + content="Air Quality Stripes: Dashboard"> @@ -34,7 +34,7 @@ content="summary_large_image"> + content="Air Quality Stripes: Dashboard"> @@ -46,7 +46,7 @@ content="website"> + content="Air Quality Stripes: Dashboard"> diff --git a/faq/index.html b/faq/index.html index e5996ab..2917cb1 100644 --- a/faq/index.html +++ b/faq/index.html @@ -25,7 +25,7 @@ + content="Air Quality Stripes: FAQ"> @@ -34,7 +34,7 @@ content="summary_large_image"> + content="Air Quality Stripes: FAQ"> @@ -46,7 +46,7 @@ content="website"> + content="Air Quality Stripes: FAQ"> diff --git a/js/stripes.js b/js/stripes.js index 1eecd64..d37ccac 100644 --- a/js/stripes.js +++ b/js/stripes.js @@ -348,30 +348,6 @@ function update_location() { meta_title.content = meta_title_val; var meta_desc = document.getElementById('meta_desc'); meta_desc.content = meta_desc_val; - /* twitters tags: */ - var twit_title = document.getElementById('twit_title'); - twit_title.content = meta_title_val; - var twit_desc = document.getElementById('twit_desc'); - twit_desc.content = meta_desc_val; - var twit_img = document.getElementById('twit_img'); - twit_img.content = meta_img_val; - var twit_url = document.createElement('meta'); - twit_url.id = 'twit_url'; - twit_url.name = 'twitter:url'; - twit_url.content = meta_url_val; - page_head.appendChild(twit_url); - /* opengraph tags: */ - var og_title = document.getElementById('og_title'); - og_title.content = meta_title_val; - var og_desc = document.getElementById('og_desc'); - og_desc.content = meta_desc_val; - var og_img = document.getElementById('og_img'); - og_img.content = meta_img_val; - var og_url = document.createElement('meta'); - og_url.id = 'og_url'; - og_url.name = 'og:url'; - og_url.content = meta_url_val; - page_head.appendChild(og_url); /* update sharing links: */ var twit_share = document.getElementById('twit_share'); twit_share.href = 'https://twitter.com/intent/tweet?text=' + diff --git a/stripes/index.html b/stripes/index.html index caaecf7..64c73ba 100644 --- a/stripes/index.html +++ b/stripes/index.html @@ -29,30 +29,6 @@ - - - - - - - -