Add new files from upstream
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{% if site.cloudflare_analytics %}
|
||||
<!-- Cloudflare Web Analytics -->
|
||||
<script defer
|
||||
src='https://static.cloudflareinsights.com/beacon.min.js'
|
||||
data-cf-beacon='{"token": "{{ site.cloudflare_analytics}}"}'>
|
||||
</script>
|
||||
<!-- End Cloudflare Web Analytics -->
|
||||
{% endif %}
|
||||
7
landing.bryanroessler.com/_includes/commentbox.html
Normal file
7
landing.bryanroessler.com/_includes/commentbox.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% if site.commentbox %}
|
||||
|
||||
<div class="commentbox"></div>
|
||||
<script src="https://unpkg.com/commentbox.io/dist/commentBox.min.js"></script>
|
||||
<script>commentBox('{{ site.commentbox }}')</script>
|
||||
|
||||
{% endif %}
|
||||
16
landing.bryanroessler.com/_includes/giscus-comment.html
Normal file
16
landing.bryanroessler.com/_includes/giscus-comment.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% if site.giscus.repository and site.giscus.hostname %}
|
||||
|
||||
<script src="https://{{ site.giscus.hostname }}/client.js"
|
||||
data-repo="{{ site.giscus.repository }}"
|
||||
data-repo-id="{{ site.giscus.repository-id }}"
|
||||
data-category="{{ site.giscus.category }}"
|
||||
data-category-id="{{ site.giscus.category-id }}"
|
||||
data-mapping="{{ site.giscus.mapping }}"
|
||||
data-reactions-enabled="{{ site.giscus.reactions-enabled }}"
|
||||
data-emit-metadata="{{ site.giscus.emit-metadata }}"
|
||||
data-theme="{{ site.giscus.theme }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
39
landing.bryanroessler.com/_includes/search.html
Normal file
39
landing.bryanroessler.com/_includes/search.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% if site.post_search %}
|
||||
|
||||
<div id="beautifuljekyll-search-overlay">
|
||||
|
||||
<div id="nav-search-exit" title="Exit search">✕</div>
|
||||
<input type="text" id="nav-search-input" placeholder="Search">
|
||||
<ul id="search-results-container"></ul>
|
||||
|
||||
<script src="https://unpkg.com/simple-jekyll-search@latest/dest/simple-jekyll-search.min.js"></script>
|
||||
<script>
|
||||
var searchjson = '[ \
|
||||
{% for post in site.posts %} \
|
||||
{ \
|
||||
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
|
||||
"category" : "{{ post.tags | join: \', \' }}", \
|
||||
"url" : "{{ site.baseurl }}{{ post.url }}", \
|
||||
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \
|
||||
}, \
|
||||
{% endfor %} \
|
||||
{% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %} \
|
||||
{ \
|
||||
"title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \
|
||||
"category" : "{% if page.tags %}{{ page.tags | join: \', \' }}{% else %}page{% endif %}", \
|
||||
"url" : "{{ site.baseurl }}{{ page.url }}", \
|
||||
"date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}" \
|
||||
}{% unless forloop.last %},{% endunless %} \
|
||||
{% endif %}{% endfor %} \
|
||||
]';
|
||||
searchjson = JSON.parse(searchjson);
|
||||
|
||||
var sjs = SimpleJekyllSearch({
|
||||
searchInput: document.getElementById('nav-search-input'),
|
||||
resultsContainer: document.getElementById('search-results-container'),
|
||||
json: searchjson
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user