Skip to content

Commit 2e0c1aa

Browse files
committed
include/layout import from theme
1 parent 2fa4f04 commit 2e0c1aa

File tree

7 files changed

+73
-0
lines changed

7 files changed

+73
-0
lines changed

_includes/disqus_comments.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% if page.comments != false and jekyll.environment == "production" %}
2+
{% if site.url %}
3+
{% assign disqus_url = page.url | prepend: site.url %}
4+
{% elsif site.github.url %}
5+
{% assign disqus_url = page.url | prepend: site.github.url %}
6+
{% endif %}
7+
8+
<div id="disqus_thread"></div>
9+
<script>
10+
var disqus_config = function () {
11+
this.page.url = '{{ disqus_url }}';
12+
this.page.identifier = '{{ disqus_url }}';
13+
};
14+
15+
(function() {
16+
var d = document, s = d.createElement('script');
17+
18+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
19+
20+
s.setAttribute('data-timestamp', +new Date());
21+
(d.head || d.body).appendChild(s);
22+
})();
23+
</script>
24+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
25+
{% endif %}

_includes/google-analytics.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.google_analytics }}', 'auto');
8+
ga('send', 'pageview');
9+
10+
</script>
11+

_includes/icon-github.svg

Lines changed: 1 addition & 0 deletions
Loading

_includes/icon-twitter.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-twitter.svg

Lines changed: 1 addition & 0 deletions
Loading

_layouts/default.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{% include footer.html %}
17+
18+
</body>
19+
20+
</html>

_layouts/page.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
</header>
9+
10+
<div class="post-content">
11+
{{ content }}
12+
</div>
13+
14+
</article>

0 commit comments

Comments
 (0)