Skip to content

Commit f9e8e96

Browse files
lunacodesmr-c
authored andcommitted
SEO & Environment debug
1 parent f34b9e9 commit f9e8e96

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

content/_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ description: >- # this means to ignore newlines until "baseurl:"
1515
discourse_url: https://cwl.discourse.group/
1616
github_url: https://github.com/common-workflow-language/
1717
gitter_url: https://gitter.im/common-workflow-language/common-workflow-language
18+
matrix_url: https://matrix.to/#/#common-workflow-language_common-workflow-language:gitter.im
1819
twitter_url: https://twitter.com/commonwl
1920
youtube_url: https://www.youtube.com/c/CommonWLorgStandard/
2021

@@ -31,6 +32,8 @@ social:
3132
locale: en_US
3233
# google_site_verification:
3334

35+
# google_analytics:
36+
3437
show_excerpts: false # set to true to show excerpts on the homepage
3538

3639
kramdown:

content/_config_local.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ title: CWL Local Site
22
url: "cwl.test" # the base hostname & protocol for your site, e.g. http://example.com
33
baseurl: "/"
44
port: 80
5+
staging_site: true

content/_config_staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
title: CWL Staging Site
22
url: "https://deploy-preview-75--cwl-website.netlify.app"
3+
staging_site: true

content/_includes/head.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
9-
{%- if (site.url != 'commonwl.org') and (site.url != 'www.commonwl.org') -%}
8+
<!-- site.staging_site: {{ site.staging_site }} -->
9+
{%- if site.staging_site -%}
1010
<meta name="robots" content="noindex" />
1111
{%- endif -%}
1212
<link rel="sitemap" type="application/xml" title="Sitemap" href={{ "/sitemap.xml" | relative_url }}>
@@ -25,9 +25,9 @@
2525
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-iKbFRxucmOHIcpWdX9NTZ5WETOPm0Goy0WmfyNcl52qSYtc2Buk0NCe6jU1sWWNB" crossorigin="anonymous">
2626
<link rel="stylesheet" href="{{ "/style.css" | relative_url }}">
2727

28-
{%-if (site.url == 'commonwl.org') or (site.url == 'www.commonwl.org') -%}
29-
{%- include google-analytics.html -%}
30-
{%-endif -%}
28+
{%- if (site.url contains 'commonwl.org' and site.google_analytics -%}
29+
{%- include google-analytics.html -%}
30+
{%- endif -%}
3131

3232
{%- comment -%}
3333
{%- if jekyll.environment == 'production' and site.google_analytics -%}

0 commit comments

Comments
 (0)