aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/disqus_comments.html20
-rw-r--r--_includes/feed.xml23
-rw-r--r--_includes/google-analytics.html9
-rw-r--r--_includes/head.html1
-rw-r--r--_includes/header.html9
5 files changed, 25 insertions, 37 deletions
diff --git a/_includes/disqus_comments.html b/_includes/disqus_comments.html
deleted file mode 100644
index 87e255b..0000000
--- a/_includes/disqus_comments.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{%- if page.comments != false and jekyll.environment == "production" -%}
-
- <div id="disqus_thread"></div>
- <script>
- var disqus_config = function () {
- this.page.url = '{{ absolute_url }}';
- this.page.identifier = '{{ page.url | absolute_url }}';
- };
-
- (function() {
- var d = document, s = d.createElement('script');
-
- s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
-
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- })();
- </script>
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
-{%- endif -%}
diff --git a/_includes/feed.xml b/_includes/feed.xml
new file mode 100644
index 0000000..310c90b
--- /dev/null
+++ b/_includes/feed.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<rss version="2.0"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:media="http://search.yahoo.com/mrss/"
+ xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ site.title | xml_escape }}</title>
+ <link>{{ site.url }}{{ site.baseurl }}</link>
+ <description>{{ site.description | xml_escape }}</description>
+ <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml"/>
+
+ {% for post in site.posts limit:10 %}
+ <item>
+ <title>{{ post.title | xml_escape }}</title>
+ <link>{{ site.url }}{{ post.url }}</link>
+ <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
+ <description><![CDATA[{{ post.content | xml_escape }}]]></description>
+ </item>
+ {% endfor %}
+ </channel>
+</rss> \ No newline at end of file
diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html
deleted file mode 100644
index b8b4d38..0000000
--- a/_includes/google-analytics.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
-<script>
- window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
- window.dataLayer = window.dataLayer || [];
- function gtag(){window.dataLayer.push(arguments);}
- gtag('js', new Date());
-
- gtag('config', '{{ site.google_analytics }}');
-</script>
diff --git a/_includes/head.html b/_includes/head.html
index 82078b0..283424c 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -2,6 +2,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="color-scheme" content="dark light">
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
<link rel="icon" href="data:,">
{%- feed_meta -%}
diff --git a/_includes/header.html b/_includes/header.html
index ed5a382..afd345f 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -17,14 +17,7 @@
</span>
</label>
- <div class="trigger">
- {%- for path in page_paths -%}
- {%- assign my_page = site.pages | where: "path", path | first -%}
- {%- if my_page.title -%}
- <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
- {%- endif -%}
- {%- endfor -%}
- </div>
+ <div class="trigger"><a class="page-link" href="/about">About</a><a class="page-link" href="/posts">Posts</a><a class="page-link" href="/wiki">Wiki</a><a class="page-link" href="/projects">Projects</a><a class="page-link" href="/colophon">Colophon</a><a class="page-link" href="/now">Now</a><a class="page-link" href="/uses">Uses</a></div>
</nav>
{%- endif -%}
</div>