Merge upstream
This commit is contained in:
6
blog.bryanroessler.com/_includes/comments.html
Normal file
6
blog.bryanroessler.com/_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 %}
|
||||
@@ -1,17 +1,19 @@
|
||||
{%- if site.disqus -%}
|
||||
<div class="comments">
|
||||
<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);
|
||||
})();
|
||||
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>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
||||
@@ -1,7 +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 }}" />
|
||||
<link rel="stylesheet" href="{{ include.css.href }}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ include.css }}" />
|
||||
<link rel="stylesheet" href="{{ include.css }}">
|
||||
{% endif %}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
{%- 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 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 -%}
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
<footer class="footer-min">
|
||||
<div class="text-muted">
|
||||
{{ site.author.name }}
|
||||
•
|
||||
{% if page.date %}
|
||||
{{ page.date }}
|
||||
{% else %}
|
||||
{{ site.time | date: '%Y' }}
|
||||
{% endif %}
|
||||
{% 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>
|
||||
•
|
||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
<!-- 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') {
|
||||
if (typeof jQuery == 'undefined') {
|
||||
document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% else %}
|
||||
<script src="{{ js | relative_url }}"></script>
|
||||
|
||||
@@ -1,36 +1,23 @@
|
||||
<footer>
|
||||
<div class="container beautiful-jekyll-footer">
|
||||
<div class="container-md beautiful-jekyll-footer">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<ul class="list-inline text-center footer-links">
|
||||
{%- for link in site.social-network-links -%}
|
||||
{%- assign curkey = link[0] -%}
|
||||
{%- assign element = site.data.SocialNetworks[curkey] -%}
|
||||
<li>
|
||||
{%- if curkey == 'rss' -%}
|
||||
<a href="{{ '/feed.xml' | relative_url }}" title="{{ element.name }}">
|
||||
{%- elsif curkey == 'yelp' -%}
|
||||
<a href="https://{{ site.social-network-links[curkey] }}.yelp.com" title="{{ element.name }}">
|
||||
{%- else -%}
|
||||
<a href="{{element.baseURL}}{{ site.social-network-links[curkey] }}" title="{{ element.name }}">
|
||||
{%- endif -%}
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa {{ element.icon }} fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">{{ element.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
||||
{% include social-networks-links.html %}
|
||||
{% if page.footer-extra %}
|
||||
<div class="footer-custom-content">
|
||||
{% include {{ page.footer-extra }} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<p class="copyright text-muted">
|
||||
{{ site.author.name }}
|
||||
•
|
||||
{% if site.author %}
|
||||
{{ site.author }}
|
||||
•
|
||||
{% endif %}
|
||||
{{ site.time | date: '%Y' }}
|
||||
|
||||
{% if site.url-pretty %}
|
||||
•
|
||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
||||
•
|
||||
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.matomo %}
|
||||
@@ -40,11 +27,11 @@
|
||||
{% 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>
|
||||
<!-- Please don't remove this, keep my open source work credited :) -->
|
||||
<p class="theme-by text-muted">
|
||||
Theme by
|
||||
<a href="https://beautifuljekyll.com">beautiful-jekyll</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,14 +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');
|
||||
(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 %}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
{% 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 || [];
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ site.gtag }}');
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{% 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) -->
|
||||
<!-- 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 %}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{% 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 -->
|
||||
<!-- 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 %}
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
<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 }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
||||
|
||||
<meta name="author" content="{{ site.author.name }}" />
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<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 }} {{ site.title-separator }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}" />
|
||||
<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 %}
|
||||
@@ -25,13 +26,7 @@
|
||||
|
||||
{% 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 }}" />
|
||||
<link rel="stylesheet" href="{{ css | relative_url }}">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
@@ -43,27 +38,21 @@
|
||||
|
||||
{% if page.css %}
|
||||
{% for css in page.css %}
|
||||
<link rel="stylesheet" href="{{ css | relative_url }}" />
|
||||
<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 -->
|
||||
<!-- Facebook OpenGraph tags -->
|
||||
{% if site.fb_app_id %}
|
||||
<meta property="fb:app_id" content="{{ 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 }}" />
|
||||
<meta property="og:title" content="{{ page.meta-title }}">
|
||||
{% elsif page.title %}
|
||||
<meta property="og:title" content="{{ page.title }}" />
|
||||
{% else %}
|
||||
<meta property="og:title" content="{{ site.title }}" />
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
{% elsif site.title %}
|
||||
<meta property="og:title" content="{{ site.title }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.meta-description %}
|
||||
@@ -75,34 +64,59 @@
|
||||
{% 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 }}" />
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:article:author" content="{{ site.author }}">
|
||||
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
||||
{% else %}
|
||||
<meta property="og:url" content="{{ page.url | absolute_url | strip_index }}" />
|
||||
<link rel="canonical" href="{{ page.url | absolute_url | strip_index }}" />
|
||||
<meta property="og:type" content="website">
|
||||
{% 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 }}" />
|
||||
{% 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 %}
|
||||
|
||||
{%- capture shareimg -%}
|
||||
{% if page.share-img %}
|
||||
{{ page.share-img }}
|
||||
{% elsif page.cover-img %}
|
||||
{% if page.cover-img.first %}
|
||||
{{ page.cover-img[0].first.first }}
|
||||
{% else %}
|
||||
{{ page.cover-img }}
|
||||
{% endif %}
|
||||
{% elsif page.thumbnail-img %}
|
||||
{{ page.thumbnail-img }}
|
||||
{% elsif site.avatar %}
|
||||
{{ site.avatar }}
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
{% assign shareimg=shareimg | strip %}
|
||||
|
||||
{% if shareimg != "" %}
|
||||
<meta property="og:image" content="{{ shareimg | absolute_url }}">
|
||||
{% endif %}
|
||||
|
||||
|
||||
<!-- Twitter summary cards -->
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@{{ site.author.twitter }}" />
|
||||
<meta name="twitter:creator" content="@{{ site.author.twitter }}" />
|
||||
{% if shareimg != "" and shareimg != site.avatar %}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
{% else %}
|
||||
<meta name="twitter:card" content="summary">
|
||||
{% endif %}
|
||||
<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 }}" />
|
||||
<meta name="twitter:title" content="{{ page.meta-title }}">
|
||||
{% elsif page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }}" />
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title }}" />
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.meta-description %}
|
||||
@@ -113,10 +127,8 @@
|
||||
<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 }}" />
|
||||
{% if shareimg != "" %}
|
||||
<meta name="twitter:image" content="{{ shareimg | absolute_url }}">
|
||||
{% endif %}
|
||||
|
||||
{% if site.matomo %}
|
||||
@@ -125,7 +137,7 @@
|
||||
|
||||
{% if page.comments and site.staticman.repository and site.staticman.branch %}
|
||||
<!-- Staticman -->
|
||||
<link rel="stylesheet" href="{{ "/css/staticman.css" | relative_url }}" />
|
||||
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
|
||||
@@ -1,43 +1,48 @@
|
||||
<!-- TODO this file has become a mess, refactor it -->
|
||||
|
||||
{% if page.bigimg or page.title %}
|
||||
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
||||
|
||||
{% 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 %}
|
||||
{% if page.cover-img or page.title %}
|
||||
|
||||
{% if page.cover-img %}
|
||||
<div id="header-big-imgs" data-num-img={% if page.cover-img.first %}{{ page.cover-img.size }}{% else %}1{% endif %}
|
||||
{% for bigimg in page.cover-img %}
|
||||
{% assign imgnum = forloop.index %}
|
||||
{% for imginfo in bigimg %}
|
||||
{% if imginfo[0] %}
|
||||
data-img-src-{{ imgnum }}="{{ imginfo[0] | absolute_url }}"
|
||||
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
|
||||
{% else %}
|
||||
data-img-src-{{ imgnum }}="{{ imginfo | absolute_url }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
></div>
|
||||
{% endif %}
|
||||
|
||||
<header class="header-section {% if page.bigimg %}has-img{% endif %}">
|
||||
{% if page.bigimg %}
|
||||
<header class="header-section {% if page.cover-img %}has-img{% endif %}">
|
||||
{% if page.cover-img %}
|
||||
<div class="big-img intro-header">
|
||||
<div class="container">
|
||||
<div class="container-md">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
||||
<div class="{{ include.type }}-heading">
|
||||
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
||||
{% if page.subtitle %}
|
||||
{% if include.type == "page" %}
|
||||
{% 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: site.date_format }}</span>
|
||||
{% endif %}
|
||||
{% 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>
|
||||
@@ -46,23 +51,26 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="intro-header no-img">
|
||||
<div class="container">
|
||||
<div class="container-md">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
||||
<div class="{{ include.type }}-heading">
|
||||
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
||||
{% if page.subtitle %}
|
||||
{% if include.type == "page" %}
|
||||
{% 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: site.date_format }}</span>
|
||||
{% endif %}
|
||||
{% 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>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{%- if site.just-comments -%}
|
||||
<div class="just-comments" data-apikey="{{site.just-comments}}"></div>
|
||||
<script async src="https://just-comments.com/w2.js"></script>
|
||||
{%- endif -%}
|
||||
@@ -1,57 +1,46 @@
|
||||
<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>
|
||||
{%- else -%}
|
||||
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
<nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% endif %}">
|
||||
|
||||
<div class="collapse navbar-collapse" id="main-navbar">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{%- if site.title-img -%}
|
||||
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
|
||||
{%- elsif site.title -%}
|
||||
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
||||
{%- endif -%}
|
||||
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="main-navbar">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
{%- 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">
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
{%- for childlink in link[1] -%}
|
||||
{%- for linkparts in childlink %}
|
||||
<a href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
|
||||
{%- endfor -%}
|
||||
{%- for linkparts in childlink %}
|
||||
<a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
|
||||
{%- endfor -%}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{{ link[1] | relative_url }}">{{ link[0] }}</a></li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" 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 %}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if site.avatar and (layout.show-avatar or page.show-avatar) %}
|
||||
<div class="avatar-container">
|
||||
<div class="avatar-img-border">
|
||||
<a href="{{ '' | absolute_url }}">
|
||||
<img alt="Navbar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</nav>
|
||||
|
||||
16
blog.bryanroessler.com/_includes/readtime.html
Normal file
16
blog.bryanroessler.com/_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="d-none d-md-inline middot">·</span> {{ yesReadTime }}</span>
|
||||
{% elsif number < 1 %}
|
||||
{% assign minReadTime = '< 1 minute read' %}
|
||||
<span class="reader-time post-meta"><span class="d-none d-md-inline middot">·</span> {{ minReadTime }}</span>
|
||||
{% else %}
|
||||
{% assign nilReadTime = number | replace:'0',' ' %}
|
||||
{{ nilReadTime }}
|
||||
{% endif %}
|
||||
267
blog.bryanroessler.com/_includes/social-networks-links.html
Normal file
267
blog.bryanroessler.com/_includes/social-networks-links.html
Normal file
@@ -0,0 +1,267 @@
|
||||
<ul class="list-inline text-center footer-links">
|
||||
|
||||
{%- if site.social-network-links.rss -%}
|
||||
<li class="list-inline-item">
|
||||
<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.email -%}
|
||||
<li class="list-inline-item">
|
||||
<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.calendly -%}
|
||||
<li class="list-inline-item">
|
||||
<a href="https://calendly.com/{{ site.social-network-links.calendly }}" title="Schedule a meeting with me">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fas fa-calendar-check fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Schedule a meeting with me</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.facebook -%}
|
||||
<li class="list-inline-item">
|
||||
<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.telegram -%}
|
||||
<li class="list-inline-item">
|
||||
<a href="https://t.me/{{ site.social-network-links.telegram }}" title="Telegram">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-telegram-plane fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Telegram</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.github -%}
|
||||
<li class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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.linkedin -%}
|
||||
<li class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 class="list-inline-item">
|
||||
<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 -%}
|
||||
|
||||
{%- if site.social-network-links.mastodon -%}
|
||||
<li class="list-inline-item">
|
||||
<a href="https://{{ site.social-network-links.mastodon }}" title="Mastodon">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Mastodon</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.ORCID -%}
|
||||
<li class="list-inline-item">
|
||||
<a href="https://orcid.org/{{ site.social-network-links.ORCID }}" title="ORCID">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fab fa-orcid fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">ORCID</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if site.social-network-links.google-scholar -%}
|
||||
<li class="list-inline-item">
|
||||
<a href="https://scholar.google.com/{{ site.social-network-links.google-scholar }}" title="Google Scholar">
|
||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<span class="sr-only">Google Scholar</span>
|
||||
</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
|
||||
</ul>
|
||||
@@ -11,32 +11,37 @@
|
||||
<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="fa fa-fw fa-twitter" aria-hidden="true"></span>
|
||||
<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="fa fa-fw fa-facebook" aria-hidden="true"></span>
|
||||
<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="fa fa-fw fa-linkedin" aria-hidden="true"></span>
|
||||
<span class="fab fa-fw fa-linkedin" aria-hidden="true"></span>
|
||||
<span class="sr-only">LinkedIn</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if site.share-links-active.vk %}
|
||||
<a href="https://vk.com/share.php?url={{ page.url | absolute_url | url_encode }}"
|
||||
class="btn btn-social-icon btn-vk" title="Share on VK">
|
||||
<span class="fab fa-fw fa-vk" aria-hidden="true"></span>
|
||||
<span class="sr-only">VK</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% if site.staticman.repository and site.staticman.branch %}
|
||||
<div class="staticman-comments">
|
||||
<div class="page__comments">
|
||||
<!-- Start static comments -->
|
||||
<div class="js-comments">
|
||||
@@ -24,7 +25,7 @@
|
||||
<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 class="small form-text"><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>
|
||||
@@ -38,7 +39,7 @@
|
||||
<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;">
|
||||
<div class="form-group d-none" 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>
|
||||
@@ -47,9 +48,9 @@
|
||||
{% 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 class="d-none js-notice alert">
|
||||
<strong class="js-notice-text-success d-none">{{ 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 d-none">{{ 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 %}
|
||||
@@ -58,8 +59,8 @@
|
||||
</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>
|
||||
<button type="submit" id="comment-form-submit" tabindex="5" class="btn btn-primary btn-lg">{{ 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-lg d-none" disabled>{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -74,8 +75,9 @@
|
||||
<!-- 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>');
|
||||
document.write('<script src="{{ "/assets/js/jquery-3.4.1.min.js" | relative_url }}"></scr' + 'ipt>');
|
||||
}
|
||||
</script>
|
||||
<script src="{{ "/js/staticman.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/staticman.js" | relative_url }}"></script>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
13
blog.bryanroessler.com/_includes/utterances-comment.html
Normal file
13
blog.bryanroessler.com/_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 %}
|
||||
|
||||
Reference in New Issue
Block a user