move demo site to docs/ folder
This commit is contained in:
parent
bb7d9f845f
commit
6552c5774e
65 changed files with 12900 additions and 0 deletions
6
docs/_includes/comments.html
Normal file
6
docs/_includes/comments.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% if page.comments %}
|
||||
{% include disqus.html %}
|
||||
{% include fb-comment.html %}
|
||||
{% include staticman-comments.html %}
|
||||
{% include utterances-comment.html %}
|
||||
{% endif %}
|
19
docs/_includes/disqus.html
Normal file
19
docs/_includes/disqus.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{%- if site.disqus -%}
|
||||
<div class="disqus-comments">
|
||||
<div class="comments">
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ site.disqus }}';
|
||||
/* ensure that pages with query string get the same discussion */
|
||||
var url_parts = window.location.href.split("?");
|
||||
var disqus_url = url_parts[0];
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
7
docs/_includes/ext-css.html
Normal file
7
docs/_includes/ext-css.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% if include.css.sri %}
|
||||
<link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
|
||||
{% elsif include.css.href %}
|
||||
<link rel="stylesheet" href="{{ include.css.href }}" />
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ include.css }}" />
|
||||
{% endif %}
|
7
docs/_includes/ext-js.html
Normal file
7
docs/_includes/ext-js.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% if include.js.sri %}
|
||||
<script src="{{ include.js.href }}" integrity="{{ include.js.sri }}" crossorigin="anonymous"></script>
|
||||
{% elsif include.js.href %}
|
||||
<script src="{{ include.js.href }}"></script>
|
||||
{% else %}
|
||||
<script src="{{ include.js }}"></script>
|
||||
{% endif %}
|
14
docs/_includes/fb-comment.html
Normal file
14
docs/_includes/fb-comment.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{%- if site.fb_comment_id -%}
|
||||
<div class="comments">
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
<div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
|
||||
<noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
|
||||
</div>
|
||||
{%- endif -%}
|
18
docs/_includes/footer-minimal.html
Normal file
18
docs/_includes/footer-minimal.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<footer class="footer-min">
|
||||
<div class="text-muted">
|
||||
{% if site.author %}
|
||||
{{ site.author }}
|
||||
•
|
||||
{% endif %}
|
||||
{% if page.date %}
|
||||
{{ page.date }}
|
||||
{% else %}
|
||||
{{ site.time | date: '%Y' }}
|
||||
{% endif %}
|
||||
|
||||
{% if site.url-pretty %}
|
||||
•
|
||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
32
docs/_includes/footer-scripts.html
Normal file
32
docs/_includes/footer-scripts.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
{% if layout.common-ext-js %}
|
||||
{% for js in layout.common-ext-js %}
|
||||
{% include ext-js.html js=js %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if layout.common-js %}
|
||||
{% for js in layout.common-js %}
|
||||
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
||||
{% if js contains 'jquery' %}
|
||||
<script>
|
||||
if (typeof jQuery == 'undefined') {
|
||||
document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
|
||||
}
|
||||
</script>
|
||||
{% else %}
|
||||
<script src="{{ js | relative_url }}"></script>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.ext-js %}
|
||||
{% for js in page.ext-js %}
|
||||
{% include ext-js.html js=js %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.js %}
|
||||
{% for js in page.js %}
|
||||
<script src="{{ js | relative_url }}"></script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
33
docs/_includes/footer.html
Normal file
33
docs/_includes/footer.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<footer>
|
||||
<div class="container beautiful-jekyll-footer">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% include social-networks-links.html %}
|
||||
<p class="copyright text-muted">
|
||||
{% if site.author %}
|
||||
{{ site.author }}
|
||||
•
|
||||
{% endif %}
|
||||
{{ site.time | date: '%Y' }}
|
||||
|
||||
{% if site.url-pretty %}
|
||||
•
|
||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.matomo %}
|
||||
{% if site.matomo.opt-out %}
|
||||
•
|
||||
<a href="http://{{- site.matomo.uri -}}/index.php?module=CoreAdminHome&action=optOut" target="_blank" class="text_muted">Do-not-Track</a>
|
||||
{% endif %}
|
||||
{% endif%}
|
||||
</p>
|
||||
<!-- Please don't remove this, keep my open source work credited :) -->
|
||||
<p class="theme-by text-muted">
|
||||
Theme by
|
||||
<a href="https://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
14
docs/_includes/google_analytics.html
Normal file
14
docs/_includes/google_analytics.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% if site.google_analytics %}
|
||||
<!-- Google Analytics -->
|
||||
<script>
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date(); a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
||||
{% endif %}
|
11
docs/_includes/gtag.html
Normal file
11
docs/_includes/gtag.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% if site.gtag %}
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ site.gtag }}');
|
||||
</script>
|
||||
{% endif %}
|
6
docs/_includes/gtm_body.html
Normal file
6
docs/_includes/gtm_body.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% if site.gtm %}
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.gtm }}"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
{% endif %}
|
9
docs/_includes/gtm_head.html
Normal file
9
docs/_includes/gtm_head.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% if site.gtm %}
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{{ site.gtm }}');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
{% endif %}
|
133
docs/_includes/head.html
Normal file
133
docs/_includes/head.html
Normal file
|
@ -0,0 +1,133 @@
|
|||
<head>
|
||||
<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.0, viewport-fit=cover">
|
||||
|
||||
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
||||
|
||||
{% if site.author %}
|
||||
<meta name="author" content="{{ site.author }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.subtitle %}
|
||||
<meta name="description" content="{{ page.subtitle }}">
|
||||
{% endif %}
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}" />
|
||||
|
||||
{% include gtag.html %}
|
||||
{% include gtm_head.html %}
|
||||
{% include google_analytics.html %}
|
||||
|
||||
{% if layout.common-ext-css %}
|
||||
{% for css in layout.common-ext-css %}
|
||||
{% include ext-css.html css=css %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if layout.common-css %}
|
||||
{% for css in layout.common-css %}
|
||||
<link rel="stylesheet" href="{{ css | relative_url }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if layout.common-googlefonts %}
|
||||
{% for font in layout.common-googlefonts %}
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.ext-css %}
|
||||
{% for css in page.ext-css %}
|
||||
{% include ext-css.html css=css %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.css %}
|
||||
{% for css in page.css %}
|
||||
<link rel="stylesheet" href="{{ css | relative_url }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.googlefonts %}
|
||||
{% for font in page.googlefonts %}
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Facebook OpenGraph tags -->
|
||||
{% if site.fb_app_id %}
|
||||
<meta property="fb:app_id" content="{{ site.fb_app_id }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.meta-title %}
|
||||
<meta property="og:title" content="{{ page.meta-title }}" />
|
||||
{% elsif page.title %}
|
||||
<meta property="og:title" content="{{ page.title }}" />
|
||||
{% elsif site.title %}
|
||||
<meta property="og:title" content="{{ site.title }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.meta-description %}
|
||||
<meta property="og:description" content="{{ page.meta-description }}">
|
||||
{% elsif page.subtitle %}
|
||||
<meta property="og:description" content="{{ page.subtitle }}">
|
||||
{% else %}
|
||||
<meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
|
||||
{% endif %}
|
||||
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
|
||||
{% if page.id %}
|
||||
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
||||
<link rel="canonical" href="{{ page.url | absolute_url }}" />
|
||||
{% else %}
|
||||
<meta property="og:url" content="{{ page.url | absolute_url | strip_index }}" />
|
||||
<link rel="canonical" href="{{ page.url | absolute_url | strip_index }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.share-img %}
|
||||
<meta property="og:image" content="{{ page.share-img }}" />
|
||||
{% elsif site.avatar %}
|
||||
<meta property="og:image" content="{{ site.avatar | absolute_url }}" />
|
||||
{% endif %}
|
||||
|
||||
|
||||
<!-- Twitter summary cards -->
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@{{ site.social-network-links.twitter }}" />
|
||||
<meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}" />
|
||||
|
||||
{% if page.meta-title %}
|
||||
<meta name="twitter:title" content="{{ page.meta-title }}" />
|
||||
{% elsif page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }}" />
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.meta-description %}
|
||||
<meta name="twitter:description" content="{{ page.meta-description }}">
|
||||
{% elsif page.subtitle %}
|
||||
<meta name="twitter:description" content="{{ page.subtitle }}">
|
||||
{% else %}
|
||||
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.share-img %}
|
||||
<meta name="twitter:image" content="{{ page.share-img }}" />
|
||||
{% elsif site.avatar %}
|
||||
<meta name="twitter:image" content="{{ site.avatar | absolute_url }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if site.matomo %}
|
||||
{% include matomo.html %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.comments and site.staticman.repository and site.staticman.branch %}
|
||||
<!-- Staticman -->
|
||||
<link rel="stylesheet" href="{{ "/css/staticman.css" | relative_url }}" />
|
||||
{% endif %}
|
||||
|
||||
</head>
|
84
docs/_includes/header.html
Normal file
84
docs/_includes/header.html
Normal file
|
@ -0,0 +1,84 @@
|
|||
<!-- TODO this file has become a mess, refactor it -->
|
||||
|
||||
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
||||
|
||||
{% if page.bigimg or page.title %}
|
||||
|
||||
{% if page.bigimg %}
|
||||
<div id="header-big-imgs" data-num-img={% if page.bigimg.first %}{{ page.bigimg.size }}{% else %}1{% endif %}
|
||||
{% for bigimg in page.bigimg %}
|
||||
{% assign imgnum = forloop.index %}
|
||||
{% for imginfo in bigimg %}
|
||||
{% if imginfo[0] %}
|
||||
data-img-src-{{ imgnum }}="{{ imginfo[0] | relative_url }}"
|
||||
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
|
||||
{% else %}
|
||||
data-img-src-{{ imgnum }}="{{ imginfo | relative_url }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
></div>
|
||||
{% endif %}
|
||||
|
||||
<header class="header-section {% if page.bigimg %}has-img{% endif %}">
|
||||
{% if page.bigimg %}
|
||||
<div class="big-img intro-header">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="{{ include.type }}-heading">
|
||||
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
||||
{% if page.subtitle %}
|
||||
{% if include.type == "page" %}
|
||||
<hr class="small">
|
||||
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
||||
{% else %}
|
||||
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if include.type == "post" %}
|
||||
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
|
||||
{% if page.readtime %}
|
||||
{% include readtime.html %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class='img-desc'></span>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="intro-header no-img">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="{{ include.type }}-heading">
|
||||
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
||||
{% if page.subtitle %}
|
||||
{% if include.type == "page" %}
|
||||
<hr class="small">
|
||||
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
||||
{% else %}
|
||||
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if include.type == "post" %}
|
||||
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
|
||||
{% if page.readtime %}
|
||||
{% include readtime.html %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
{% else %}
|
||||
<div class="intro-header"></div>
|
||||
{% endif %}
|
17
docs/_includes/matomo.html
Normal file
17
docs/_includes/matomo.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% if site.matomo %}
|
||||
<!-- Matomo -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//{{- site.matomo.uri -}}/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(['setSiteId', '{{- site.matomo.site_id -}}']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Piwik Code -->
|
||||
{% endif %}
|
57
docs/_includes/nav.html
Normal file
57
docs/_includes/nav.html
Normal file
|
@ -0,0 +1,57 @@
|
|||
<nav class="navbar navbar-default navbar-fixed-top navbar-custom">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
{%- if site.title-img -%}
|
||||
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img src="{{ site.title-img }}"/></a>
|
||||
{%- elsif site.title -%}
|
||||
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="main-navbar">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{%- for link in site.navbar-links -%}
|
||||
{%- if link[1].first %}
|
||||
<li class="navlinks-container">
|
||||
<a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
|
||||
<div class="navlinks-children">
|
||||
{%- for childlink in link[1] -%}
|
||||
{%- for linkparts in childlink %}
|
||||
<a href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
|
||||
{%- endfor -%}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{ link[1] | relative_url }}">{{ link[0] }}</a></li>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if page.image and (layout.show-avatar or page.show-avatar) %}
|
||||
<div class="avatar-container">
|
||||
<div class="avatar-img-border">
|
||||
<a href="{{ '' | absolute_url }}">
|
||||
<img class="avatar-img" src="{{ page.image | relative_url }}" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% elsif site.avatar and (layout.show-avatar or page.show-avatar) %}
|
||||
<div class="avatar-container">
|
||||
<div class="avatar-img-border">
|
||||
<a href="{{ '' | absolute_url }}">
|
||||
<img class="avatar-img" src="{{ site.avatar | relative_url }}" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</nav>
|
16
docs/_includes/readtime.html
Normal file
16
docs/_includes/readtime.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!--- "ReadTime on GitHub Jekyll" (c) 2020 Ruby Griffith Ramirez, MIT License -->
|
||||
|
||||
{% assign ReadTime = page.content | strip_html | number_of_words %}
|
||||
{% assign calcReadTime = ReadTime | float %}
|
||||
{% assign finalReadTime = calcReadTime | divided_by:200 | round: 2 %}
|
||||
{% assign number = finalReadTime | round %}
|
||||
{% if number >= 1 %}
|
||||
{% assign yesReadTime = number | append: " minute read" %}
|
||||
<span class="reader-time post-meta"><span class="hidden-xs middot">·</span> {{ yesReadTime }}</span>
|
||||
{% elsif number < 1 %}
|
||||
{% assign minReadTime = '< 1 minute read' %}
|
||||
<span class="reader-time post-meta"><span class="hidden-xs middot">·</span> {{ minReadTime }}</span>
|
||||
{% else %}
|
||||
{% assign nilReadTime = number | replace:'0',' ' %}
|
||||
{{ nilReadTime }}
|
||||
{% endif %}
|
207
docs/_includes/social-networks-links.html
Normal file
207
docs/_includes/social-networks-links.html
Normal file
|
@ -0,0 +1,207 @@
|
|||
<ul class="list-inline text-center footer-links">
|
||||
|
||||
{%- if site.social-network-links.facebook -%}
|
||||
<li>
|
||||
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fas fa-rss fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">RSS</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.facebook -%}
|
||||
<li>
|
||||
<a href="https://www.facebook.com/{{ site.social-network-links.facebook }}" title="Facebook">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-facebook fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Facebook</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.github -%}
|
||||
<li>
|
||||
<a href="https://github.com/{{ site.social-network-links.github }}" title="GitHub">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">GitHub</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.twitter -%}
|
||||
<li>
|
||||
<a href="https://twitter.com/{{ site.social-network-links.twitter }}" title="Twitter">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Twitter</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.reddit -%}
|
||||
<li>
|
||||
<a href="https://reddit.com/u/{{ site.social-network-links.reddit }}" title="Reddit">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-reddit fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Reddit</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.email -%}
|
||||
<li>
|
||||
<a href="mailto:{{ site.social-network-links.email }}" title="Email me">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fas fa-envelope fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Email me</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.linkedin -%}
|
||||
<li>
|
||||
<a href="https://linkedin.com/in/{{ site.social-network-links.linkedin }}" title="LinkedIn">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-linkedin fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">LinkedIn</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.xing -%}
|
||||
<li>
|
||||
<a href="https://www.xing.com/profile/{{ site.social-network-links.xing }}" title="Xing">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-xing fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Xing</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.stackoverflow -%}
|
||||
<li>
|
||||
<a href="https://stackoverflow.com/users/{{ site.social-network-links.stackoverflow }}" title="StackOverflow">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-stack-overflow fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">StackOverflow</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.snapchat -%}
|
||||
<li>
|
||||
<a href="https://www.snapchat.com/add/{{ site.social-network-links.snapchat }}" title="Snapchat">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-snapchat-ghost fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Snapchat</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.instagram -%}
|
||||
<li>
|
||||
<a href="https://www.instagram.com/{{ site.social-network-links.instagram }}" title="Instagram">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-instagram fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Instagram</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.youtube -%}
|
||||
<li>
|
||||
<a href="https://www.youtube.com/{{ site.social-network-links.youtube }}" title="YouTube">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-youtube fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">YouTube</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.spotify -%}
|
||||
<li>
|
||||
<a href="https://open.spotify.com/user/{{ site.social-network-links.spotify }}" title="Spotify">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-spotify fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Spotify</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.telephone -%}
|
||||
<li>
|
||||
<a href="tel:{{ site.social-network-links.telephone }}" title="Phone">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fas fa-phone fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Phone</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.steam -%}
|
||||
<li>
|
||||
<a href="https://steamcommunity.com/id/{{ site.social-network-links.steam }}" title="Steam">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-steam fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Steam</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.twitch -%}
|
||||
<li>
|
||||
<a href="https://www.twitch.tv/{{ site.social-network-links.twitch }}" title="Twitch">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-twitch fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Twitch</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.yelp -%}
|
||||
<li>
|
||||
<a href="https://{{ site.social-network-links.yelp }}.yelp.com" title="Yelp">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-yelp fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Yelp</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
</ul>
|
42
docs/_includes/social-share.html
Normal file
42
docs/_includes/social-share.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!-- Check if any share-links are active -->
|
||||
{% assign any-share-links = false %}
|
||||
{% for links in site.share-links-active %}
|
||||
{% if links[1] == true %}
|
||||
{% assign any-share-links = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if any-share-links %}
|
||||
<section id = "social-share-section">
|
||||
<span class="sr-only">Share: </span>
|
||||
|
||||
{% if site.share-links-active.twitter %}
|
||||
<!--- Share on Twitter -->
|
||||
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
||||
<span class="fab fa-fw fa-twitter" aria-hidden="true"></span>
|
||||
<span class="sr-only">Twitter</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share-links-active.facebook %}
|
||||
<!--- Share on Facebook -->
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-facebook" title="Share on Facebook">
|
||||
<span class="fab fa-fw fa-facebook" aria-hidden="true"></span>
|
||||
<span class="sr-only">Facebook</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share-links-active.linkedin %}
|
||||
<!--- Share on LinkedIn -->
|
||||
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
|
||||
<span class="fab fa-fw fa-linkedin" aria-hidden="true"></span>
|
||||
<span class="sr-only">LinkedIn</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
|
||||
{% endif %}
|
22
docs/_includes/staticman-comment.html
Normal file
22
docs/_includes/staticman-comment.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="https://schema.org/Comment">
|
||||
<div class="comment__avatar-wrapper">
|
||||
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80" alt="{{ include.name }}">
|
||||
</div>
|
||||
<div class="comment__content-wrapper">
|
||||
<h4 class="comment__author" itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
{% unless include.url == blank %}
|
||||
<span itemprop="name"><a rel="external nofollow" itemprop="url" href="{{ include.url }}">{{ include.name }}</a></span>
|
||||
{% else %}
|
||||
<span itemprop="name">{{ include.name }}</span>
|
||||
{% endunless %}
|
||||
</h4>
|
||||
<p class="comment__date">
|
||||
{% if include.date %}
|
||||
{% if include.index %}<a href="#comment{{ include.index }}" itemprop="url">{% endif %}
|
||||
<time datetime="{{ include.date | date_to_xmlschema }}" itemprop="datePublished">{{ include.date | date: "%B %d, %Y at %I:%M %p" }}</time>
|
||||
{% if include.index %}</a>{% endif %}
|
||||
{% endif %}
|
||||
</p>
|
||||
<div itemprop="text">{{ include.message | markdownify }}</div>
|
||||
</div>
|
||||
</article>
|
83
docs/_includes/staticman-comments.html
Normal file
83
docs/_includes/staticman-comments.html
Normal file
|
@ -0,0 +1,83 @@
|
|||
{% if site.staticman.repository and site.staticman.branch %}
|
||||
<div class="staticman-comments">
|
||||
<div class="page__comments">
|
||||
<!-- Start static comments -->
|
||||
<div class="js-comments">
|
||||
{% if site.data.comments[page.slug] %}
|
||||
<h3 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_title | default: "Comments" }}</h3>
|
||||
{% assign comments = site.data.comments[page.slug] | sort %}
|
||||
{% for comment in comments %}
|
||||
{% assign email = comment[1].email %}
|
||||
{% assign name = comment[1].name %}
|
||||
{% assign url = comment[1].url %}
|
||||
{% assign date = comment[1].date %}
|
||||
{% assign message = comment[1].message %}
|
||||
{% include staticman-comment.html index=forloop.index email=email name=name url=url date=date message=message %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<!-- End static comments -->
|
||||
<!-- Start new comment form -->
|
||||
<div class="page__comments-form">
|
||||
<h3 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}</h3>
|
||||
<p class="small">{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} <span class="required">*</span></p>
|
||||
<form id="new_comment" class="page__comments-form js-form form" method="post">
|
||||
<div class="form-group">
|
||||
<label for="comment-form-message">{{ site.data.ui-text[site.locale].comment_form_comment_label | default: "Comment" }} <small class="required">*</small></label><br>
|
||||
<textarea type="text" rows="12" cols="36" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
|
||||
<div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">{{ site.data.ui-text[site.locale].comment_form_md_info | default: "Markdown is supported." }}</a></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="comment-form-name">{{ site.data.ui-text[site.locale].comment_form_name_label | default: "Name" }} <small class="required">*</small></label>
|
||||
<input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="comment-form-email">{{ site.data.ui-text[site.locale].comment_form_email_label | default: "Email address" }} <small class="required">*</small></label>
|
||||
<input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="comment-form-url">{{ site.data.ui-text[site.locale].comment_form_website_label | default: "Website (optional)" }}</label>
|
||||
<input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
|
||||
</div>
|
||||
<div class="form-group hidden" style="display: none;">
|
||||
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
|
||||
<input type="hidden" name="options[slug]" value="{{ page.slug }}">
|
||||
<label for="comment-form-location">Not used. Leave blank if you are a human.</label>
|
||||
<input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
|
||||
{% if site.staticman.reCaptcha.siteKey %}<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.staticman.reCaptcha.siteKey }}">{% endif %}
|
||||
{% if site.staticman.reCaptcha.secret %}<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.staticman.reCaptcha.secret }}">{% endif %}
|
||||
</div>
|
||||
<!-- Start comment form alert messaging -->
|
||||
<p class="hidden js-notice">
|
||||
<strong class="js-notice-text-success hidden">{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}</strong>
|
||||
<strong class="js-notice-text-failure hidden">{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}</strong>
|
||||
</p>
|
||||
<!-- End comment form alert messaging -->
|
||||
{% if site.staticman.reCaptcha.siteKey %}
|
||||
<div class="form-group">
|
||||
<div class="g-recaptcha" data-sitekey="{{ site.staticman.reCaptcha.siteKey }}"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="form-group">
|
||||
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--primary btn--large">{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}</button>
|
||||
<button type="submit" id="comment-form-submitted" tabindex="5" class="btn btn--primary btn--large hidden" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- End new comment form -->
|
||||
<!-- Load reCaptcha if site key is set -->
|
||||
{% if site.staticman.reCaptcha.siteKey %}
|
||||
<script async src="https://www.google.com/recaptcha/api.js"></script>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Load script to handle comment form submission -->
|
||||
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
||||
<script>
|
||||
if (typeof jQuery == 'undefined') {
|
||||
document.write('<script src="{{ "/js/jquery-1.11.2.min.js" | relative_url }}"></scr' + 'ipt>');
|
||||
}
|
||||
</script>
|
||||
<script src="{{ "/js/staticman.js" | relative_url }}"></script>
|
||||
</div>
|
||||
{% endif %}
|
13
docs/_includes/utterances-comment.html
Normal file
13
docs/_includes/utterances-comment.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% if site.utterances.repository and site.utterances.issue-term %}
|
||||
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo="{{ site.utterances.repository }}"
|
||||
issue-term="{{ site.utterances.issue-term }}"
|
||||
theme="{{ site.utterances.theme}}"
|
||||
label="{{ site.utterances.label}}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue