mirror of
https://github.com/treffynnon/sqlstyle.guide.git
synced 2025-03-09 12:49:51 -05:00
fix: updata GA code
This commit is contained in:
parent
47071bc63d
commit
82e58b5d2b
2 changed files with 175 additions and 101 deletions
116
_config.yml
116
_config.yml
|
@ -1,67 +1,67 @@
|
||||||
name: SQL style guide by Simon Holywell
|
name: SQL style guide by Simon Holywell
|
||||||
description: A consistent code style guide for SQL to ensure legible and maintainable projects
|
description: A consistent code style guide for SQL to ensure legible and maintainable projects
|
||||||
|
|
||||||
ga_ua_code: UA-65071829-1
|
ga_code: G-9Y2WX5MML2
|
||||||
|
|
||||||
url: https://www.sqlstyle.guide
|
url: https://www.sqlstyle.guide
|
||||||
domain: sqlstyle.guide
|
domain: sqlstyle.guide
|
||||||
port: 4040
|
port: 4040
|
||||||
|
|
||||||
markdown: kramdown
|
markdown: kramdown
|
||||||
permalink: pretty
|
permalink: pretty
|
||||||
highlighter: rouge
|
highlighter: rouge
|
||||||
|
|
||||||
kramdown:
|
kramdown:
|
||||||
input: GFM
|
input: GFM
|
||||||
hard_wrap: false
|
hard_wrap: false
|
||||||
toc_levels: "2,3"
|
toc_levels: "2,3"
|
||||||
auto_ids: true
|
auto_ids: true
|
||||||
transliterated_header_ids: true
|
transliterated_header_ids: true
|
||||||
auto_id_stripping: true
|
auto_id_stripping: true
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- jekyll-redirect-from
|
- jekyll-redirect-from
|
||||||
- jekyll-sitemap
|
- jekyll-sitemap
|
||||||
|
|
||||||
langs:
|
langs:
|
||||||
de:
|
de:
|
||||||
de: Deutsch
|
de: Deutsch
|
||||||
en: German
|
en: German
|
||||||
en:
|
en:
|
||||||
en: English
|
en: English
|
||||||
fr:
|
fr:
|
||||||
fr: Français
|
fr: Français
|
||||||
en: French
|
en: French
|
||||||
it:
|
it:
|
||||||
it: Italiano
|
it: Italiano
|
||||||
en: Italian
|
en: Italian
|
||||||
ja:
|
ja:
|
||||||
ja: 日本語
|
ja: 日本語
|
||||||
en: Japanese
|
en: Japanese
|
||||||
ko:
|
ko:
|
||||||
ko: 한국어
|
ko: 한국어
|
||||||
en: Korean
|
en: Korean
|
||||||
pl:
|
pl:
|
||||||
pl: Polski
|
pl: Polski
|
||||||
en: Polish
|
en: Polish
|
||||||
pt-BR:
|
pt-BR:
|
||||||
pt-BR: Português (BR)
|
pt-BR: Português (BR)
|
||||||
en: Portuguese - Brazil
|
en: Portuguese - Brazil
|
||||||
ru:
|
ru:
|
||||||
ru: Русский
|
ru: Русский
|
||||||
en: Russian
|
en: Russian
|
||||||
zh:
|
zh:
|
||||||
zh: 简体中文
|
zh: 简体中文
|
||||||
en: Simplified Chinese
|
en: Simplified Chinese
|
||||||
zh-TW:
|
zh-TW:
|
||||||
zh-TW: 正體中文
|
zh-TW: 正體中文
|
||||||
en: Traditional Chinese
|
en: Traditional Chinese
|
||||||
tr:
|
tr:
|
||||||
tr: Türkçe
|
tr: Türkçe
|
||||||
en: Turkish
|
en: Turkish
|
||||||
ua:
|
ua:
|
||||||
ua: Українська
|
ua: Українська
|
||||||
en: Ukrainian
|
en: Ukrainian
|
||||||
vn:
|
vn:
|
||||||
vn: Tiếng Việt
|
vn: Tiếng Việt
|
||||||
en: Vietnamese
|
en: Vietnamese
|
||||||
|
|
|
@ -1,60 +1,134 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en-au">
|
<html lang="en-au">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<script
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
async
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_code }}"
|
||||||
<title property="og:title">{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.name }}</title>
|
></script>
|
||||||
<link href="//fonts.googleapis.com/css?family=Roboto+Slab:400" rel="stylesheet" type="text/css">
|
<script>
|
||||||
<link rel="stylesheet" href="{{ site.url }}/static/style.css">
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag() {
|
||||||
|
dataLayer.push(arguments);
|
||||||
|
}
|
||||||
|
gtag("js", new Date());
|
||||||
|
gtag("config", "{{ site.ga_code }}");
|
||||||
|
</script>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1.0, maximum-scale=1"
|
||||||
|
/>
|
||||||
|
<title property="og:title">
|
||||||
|
{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{
|
||||||
|
site.name }}
|
||||||
|
</title>
|
||||||
|
<link
|
||||||
|
href="//fonts.googleapis.com/css?family=Roboto+Slab:400"
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
/>
|
||||||
|
<link rel="stylesheet" href="{{ site.url }}/static/style.css" />
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="{{ site.url }}/static/favicon-32x32.png" sizes="32x32" />
|
<link
|
||||||
<link rel="icon" type="image/png" href="{{ site.url }}/static/favicon-16x16.png" sizes="16x16" />
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
href="{{ site.url }}/static/favicon-32x32.png"
|
||||||
|
sizes="32x32"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
href="{{ site.url }}/static/favicon-16x16.png"
|
||||||
|
sizes="16x16"
|
||||||
|
/>
|
||||||
|
|
||||||
<meta content="website" property="og:type">
|
<meta content="website" property="og:type" />
|
||||||
<meta content="{{ site.url }}" property="og:url">
|
<meta content="{{ site.url }}" property="og:url" />
|
||||||
<meta content="{{ site.time | date_to_xmlschema }}" property="og:updated_time">
|
<meta
|
||||||
<meta content="https://www.facebook.com/holywell" property="article:author">
|
content="{{ site.time | date_to_xmlschema }}"
|
||||||
<meta content="https://www.facebook.com/holywell" property="article:publisher">
|
property="og:updated_time"
|
||||||
<meta content="{{ site.time | date_to_xmlschema }}" property="article:modified_time">
|
/>
|
||||||
<meta content="" property="article:section">
|
<meta
|
||||||
<meta content="{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.description }}" itemprop="description" name="description" property="og:description">
|
content="https://www.facebook.com/holywell"
|
||||||
<meta content="sql, style guide, code style guide, simon holywell, holywell" itemprop="keywords" name="keywords" property="article:tag">
|
property="article:author"
|
||||||
<meta content="summary" name="twitter:card">
|
/>
|
||||||
<meta content="{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.name }}" name="twitter:title">
|
<meta
|
||||||
<meta content="{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.description }}" name="twitter:description">
|
content="https://www.facebook.com/holywell"
|
||||||
<meta content="@treffynnon" name="twitter:site">
|
property="article:publisher"
|
||||||
<meta content="@treffynnon" name="twitter:creator">
|
/>
|
||||||
<meta content="{{ site.domain }}" name="twitter:domain">
|
<meta
|
||||||
|
content="{{ site.time | date_to_xmlschema }}"
|
||||||
|
property="article:modified_time"
|
||||||
|
/>
|
||||||
|
<meta content="" property="article:section" />
|
||||||
|
<meta
|
||||||
|
content="{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.description }}"
|
||||||
|
itemprop="description"
|
||||||
|
name="description"
|
||||||
|
property="og:description"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
content="sql, style guide, code style guide, simon holywell, holywell"
|
||||||
|
itemprop="keywords"
|
||||||
|
name="keywords"
|
||||||
|
property="article:tag"
|
||||||
|
/>
|
||||||
|
<meta content="summary" name="twitter:card" />
|
||||||
|
<meta
|
||||||
|
content="{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.name }}"
|
||||||
|
name="twitter:title"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
content="{% if page.lang_title %}{{ page.lang_title }} · {% endif %}{{ site.description }}"
|
||||||
|
name="twitter:description"
|
||||||
|
/>
|
||||||
|
<meta content="@treffynnon" name="twitter:site" />
|
||||||
|
<meta content="@treffynnon" name="twitter:creator" />
|
||||||
|
<meta content="{{ site.domain }}" name="twitter:domain" />
|
||||||
|
|
||||||
<link rel="author" href="//plus.google.com/+SimonHolywell">
|
<link rel="author" href="//plus.google.com/+SimonHolywell" />
|
||||||
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html',''}}">
|
<link
|
||||||
<link rel="alternate" hreflang="x-default" href="{{ site.url }}/">
|
rel="canonical"
|
||||||
|
href="{{ site.url }}{{ page.url | replace:'index.html',''}}"
|
||||||
|
/>
|
||||||
|
<link rel="alternate" hreflang="x-default" href="{{ site.url }}/" />
|
||||||
{% include layout_partials/languages.html rel_alternate=true %}
|
{% include layout_partials/languages.html rel_alternate=true %}
|
||||||
</head>
|
</head>
|
||||||
<body itemscope itemtype="http://schema.org/TechArticle">
|
<body itemscope itemtype="http://schema.org/TechArticle">
|
||||||
<meta itemprop="wordCount" content="{{ content | number_of_words }}">
|
<meta itemprop="wordCount" content="{{ content | number_of_words }}" />
|
||||||
<meta itemprop="about" content="{{ site.description }}">
|
<meta itemprop="about" content="{{ site.description }}" />
|
||||||
<meta itemprop="audience" content="SQL programmers">
|
<meta itemprop="audience" content="SQL programmers" />
|
||||||
<meta itemprop="license" content="https://creativecommons.org/licenses/by-sa/4.0/">
|
<meta
|
||||||
<meta itemprop="version" content="1.0.1">
|
itemprop="license"
|
||||||
<meta itemprop="proficiencyLevel" content="Beginner">
|
content="https://creativecommons.org/licenses/by-sa/4.0/"
|
||||||
<meta itemprop="dependencies" content="SQL knowledge">
|
/>
|
||||||
<meta itemprop="copyrightHolder" content="Simon Holywell">
|
<meta itemprop="version" content="1.0.1" />
|
||||||
|
<meta itemprop="proficiencyLevel" content="Beginner" />
|
||||||
|
<meta itemprop="dependencies" content="SQL knowledge" />
|
||||||
|
<meta itemprop="copyrightHolder" content="Simon Holywell" />
|
||||||
{% include layout_partials/head.html %}
|
{% include layout_partials/head.html %}
|
||||||
<main class="article-body wrap" id="content" itemprop="articleBody" lang="{{ page.lang }}">
|
<main
|
||||||
|
class="article-body wrap"
|
||||||
|
id="content"
|
||||||
|
itemprop="articleBody"
|
||||||
|
lang="{{ page.lang }}"
|
||||||
|
>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</main>
|
</main>
|
||||||
{% include layout_partials/foot.html %}
|
{% include layout_partials/foot.html %}
|
||||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
|
||||||
<script src="{{ site.url }}/static/scripts.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
!(function (d, s, id) {
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
var js,
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
fjs = d.getElementsByTagName(s)[0];
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
if (!d.getElementById(id)) {
|
||||||
ga('create', '{{ site.ga_ua_code }}', 'auto');
|
js = d.createElement(s);
|
||||||
ga('send', 'pageview');
|
js.id = id;
|
||||||
|
js.src = "//platform.twitter.com/widgets.js";
|
||||||
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
|
}
|
||||||
|
})(document, "script", "twitter-wjs");
|
||||||
</script>
|
</script>
|
||||||
|
<script src="{{ site.url }}/static/scripts.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue