Skip to content

Commit

Permalink
Adjust twitter / og card tags
Browse files Browse the repository at this point in the history
Remove for stripes pages
Adjust titles for others
  • Loading branch information
cemacrr committed Aug 19, 2024
1 parent 49498f6 commit 6a31c90
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 63 deletions.
6 changes: 3 additions & 3 deletions about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- meta tags: _______________________________________________________ -->
<meta id="meta_title"
name="title"
content="Air Quality Stripes">
content="Air Quality Stripes: About">
<meta id="meta_desc"
name="description"
content="">
Expand All @@ -34,7 +34,7 @@
content="summary_large_image">
<meta id="twit_title"
name="twitter:title"
content="Air Quality Stripes">
content="Air Quality Stripes: About">
<meta id="twit_desc"
name="twitter:description"
content="">
Expand All @@ -46,7 +46,7 @@
content="website">
<meta id="og_title"
name="og:title"
content="Air Quality Stripes">
content="Air Quality Stripes: About">
<meta id="og_desc"
name="og:description"
content="">
Expand Down
6 changes: 3 additions & 3 deletions acknowledgements/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- meta tags: _______________________________________________________ -->
<meta id="meta_title"
name="title"
content="Air Quality Stripes">
content="Air Quality Stripes: Acknowledgements">
<meta id="meta_desc"
name="description"
content="">
Expand All @@ -34,7 +34,7 @@
content="summary_large_image">
<meta id="twit_title"
name="twitter:title"
content="Air Quality Stripes">
content="Air Quality Stripes: Acknowledgements">
<meta id="twit_desc"
name="twitter:description"
content="">
Expand All @@ -46,7 +46,7 @@
content="website">
<meta id="og_title"
name="og:title"
content="Air Quality Stripes">
content="Air Quality Stripes: Acknowledgements">
<meta id="og_desc"
name="og:description"
content="">
Expand Down
6 changes: 3 additions & 3 deletions contact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- meta tags: _______________________________________________________ -->
<meta id="meta_title"
name="title"
content="Air Quality Stripes">
content="Air Quality Stripes: Contact">
<meta id="meta_desc"
name="description"
content="">
Expand All @@ -34,7 +34,7 @@
content="summary_large_image">
<meta id="twit_title"
name="twitter:title"
content="Air Quality Stripes">
content="Air Quality Stripes: Contact">
<meta id="twit_desc"
name="twitter:description"
content="">
Expand All @@ -46,7 +46,7 @@
content="website">
<meta id="og_title"
name="og:title"
content="Air Quality Stripes">
content="Air Quality Stripes: Contact">
<meta id="og_desc"
name="og:description"
content="">
Expand Down
6 changes: 3 additions & 3 deletions dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- meta tags: _______________________________________________________ -->
<meta id="meta_title"
name="title"
content="Air Quality Stripes">
content="Air Quality Stripes: Dashboard">
<meta id="meta_desc"
name="description"
content="">
Expand All @@ -34,7 +34,7 @@
content="summary_large_image">
<meta id="twit_title"
name="twitter:title"
content="Air Quality Stripes">
content="Air Quality Stripes: Dashboard">
<meta id="twit_desc"
name="twitter:description"
content="">
Expand All @@ -46,7 +46,7 @@
content="website">
<meta id="og_title"
name="og:title"
content="Air Quality Stripes">
content="Air Quality Stripes: Dashboard">
<meta id="og_desc"
name="og:description"
content="">
Expand Down
6 changes: 3 additions & 3 deletions faq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- meta tags: _______________________________________________________ -->
<meta id="meta_title"
name="title"
content="Air Quality Stripes">
content="Air Quality Stripes: FAQ">
<meta id="meta_desc"
name="description"
content="">
Expand All @@ -34,7 +34,7 @@
content="summary_large_image">
<meta id="twit_title"
name="twitter:title"
content="Air Quality Stripes">
content="Air Quality Stripes: FAQ">
<meta id="twit_desc"
name="twitter:description"
content="">
Expand All @@ -46,7 +46,7 @@
content="website">
<meta id="og_title"
name="og:title"
content="Air Quality Stripes">
content="Air Quality Stripes: FAQ">
<meta id="og_desc"
name="og:description"
content="">
Expand Down
24 changes: 0 additions & 24 deletions js/stripes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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=' +
Expand Down
24 changes: 0 additions & 24 deletions stripes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,6 @@
<meta id="meta_desc"
name="description"
content="">
<meta id="twit_card"
name="twitter:card"
content="summary_large_image">
<meta id="twit_title"
name="twitter:title"
content="Air Quality Stripes">
<meta id="twit_desc"
name="twitter:description"
content="">
<meta id="twit_img"
name="twitter:image"
content="https://airqualitystripes.info/img/icon/icon.png">
<meta id="og_type"
name="og:type"
content="website">
<meta id="og_title"
name="og:title"
content="Air Quality Stripes">
<meta id="og_desc"
name="og:description"
content="">
<meta id="og_img"
name="og:image"
content="https://airqualitystripes.info/img/icon/icon.png">
<!-- head end:___________________________________________________________ -->
</head>
<!-- body start: ________________________________________________________ -->
Expand Down

0 comments on commit 6a31c90

Please sign in to comment.