init
This commit is contained in:
24
_includes/footer.html
Normal file
24
_includes/footer.html
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
<footer>
|
||||
<nav>
|
||||
<p>
|
||||
<span class="copy">©</span> {{ 'now' | date: '%Y' }} {{ site.copyright_owner.full_name }}.
|
||||
<a href="/legal/">MIT License</a>.
|
||||
<a class="edit" href="{{ site.edit_url | append: page.path }}">Edit</a>.
|
||||
<!-- {% if page.id == blank %}
|
||||
Site generated {{ site.time | date: "%a, %b %d, %Y" }}
|
||||
{% endif %} -->
|
||||
</p>
|
||||
<p>{{ page.id }}</p>
|
||||
</nav>
|
||||
<nav>
|
||||
<p class="mode"></p>
|
||||
</nav>
|
||||
<!-- <style>
|
||||
@import url('https://fonts.googleapis.com/css?family=Bree+Serif');
|
||||
</style> -->
|
||||
</footer>
|
||||
|
||||
<div id="snackbar">Loading...</div>
|
||||
<!-- <script src='/assets/js/slides.js'></script> -->
|
||||
<script src='/assets/js/clipboard.js'></script>
|
11
_includes/google_analytics.html
Normal file
11
_includes/google_analytics.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% if site.google_analytics_token %}
|
||||
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
|
||||
<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','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ site.google_analytics_token }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{% endif %}
|
22
_includes/head-meta.html
Normal file
22
_includes/head-meta.html
Normal file
@ -0,0 +1,22 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{% if page.description %}
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
{% else if site.description %}
|
||||
<meta name="description" content="{{ site.description }}" />
|
||||
{% endif %}
|
||||
|
||||
<!-- favicons & more -->
|
||||
<link rel="shortcut icon" href="{{ site.baseurl }}/assets/favicon/favicon.ico">
|
||||
<link rel="apple-touch-icon" href="{{ site.baseurl }}/assets/favicon/iphone.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/assets/favicon/iphone-6plus.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="{{ site.baseurl }}/assets/favicon/ipad-retina.png">
|
||||
<link rel="apple-touch-icon" sizes="167x167" href="{{ site.baseurl }}/assets/favicon/ipad-pro.png">
|
||||
|
||||
<!-- feeds -->
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.baseurl }}/feed.xml">
|
||||
|
||||
<!-- TODO: should add more extensive yet sensible rel meta -->
|
11
_includes/head.html
Normal file
11
_includes/head.html
Normal file
@ -0,0 +1,11 @@
|
||||
<head>
|
||||
{% include head-meta.html %}
|
||||
<title>
|
||||
{% if page.title == "Home" %}
|
||||
{{ site.title }} · {{ site.tagline }}
|
||||
{% else %}
|
||||
{{ page.title }} · {{ site.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css">
|
||||
</head>
|
15
_includes/header.html
Normal file
15
_includes/header.html
Normal file
@ -0,0 +1,15 @@
|
||||
<header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{{ site.baseurl | append: '/' }}">Home</a>
|
||||
{% if jekyll.environment == 'local' %}
|
||||
<li><a href="{{ site.baseurl | append: '/private/' }}">Private</a>
|
||||
{% endif %}
|
||||
{% for page in site.pages | sort: 'sort_order', 'title' %}
|
||||
{% if page.categories contains 'global' %}
|
||||
<li><a href="{{ site.baseurl | append: page.url }}">{{ page.title }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
17
_includes/image.html
Normal file
17
_includes/image.html
Normal file
@ -0,0 +1,17 @@
|
||||
{% capture imagePath %}{{ page.id | split: "/" | last }}/{{ include.name }}{% endcapture %}
|
||||
|
||||
{% if include.frame == false %}
|
||||
{% assign frame = false %}
|
||||
{% else %}
|
||||
{% assign frame = true %}
|
||||
{% endif %}
|
||||
|
||||
<figure class="figure {% if include.caption %}figure-caption{% endif %} {% if frame %}figure--frame{% endif %}">
|
||||
<div class="figure__inner">
|
||||
<img Xwidth="100%" class="figure__image" src="/assets/blog/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
|
||||
|
||||
{% if include.caption %}
|
||||
<figcaption class="figure__caption">{{ include.caption }} {% if include.source %}<a class="source" href="{{ include.source }}" title="{{ include.source }}">Source</a>.{% endif %}</figcaption>
|
||||
{% endif %}
|
||||
</div>
|
||||
</figure>
|
35
_includes/post_index.html
Normal file
35
_includes/post_index.html
Normal file
@ -0,0 +1,35 @@
|
||||
{% if include.title == blank %}
|
||||
<h1>{{ include.posts | size }} blogs since {{ include.posts | sort: 'date' | map: 'date' | compact | first | date: '%Y' }}</h1>
|
||||
{% else if %}
|
||||
<h1>{{ include.title }}</h1>
|
||||
{% endif %}
|
||||
|
||||
{% assign prev_year = 'first run' %}
|
||||
{% assign sorted_posts = include.posts | sort: "date" | reverse %}
|
||||
{% for post in sorted_posts %}
|
||||
|
||||
{% assign current_year = post.date | date: "%Y" %}
|
||||
|
||||
{% if current_year != prev_year %}
|
||||
{% if prev_year != 'first run' %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% assign prev_year = current_year %}
|
||||
<h2 class="year">{{ current_year | default: '<em>undated</em>' }}</h2>
|
||||
<ul class="index">
|
||||
{% endif %}
|
||||
|
||||
<li>
|
||||
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
|
||||
<span class="posted">{{ post.date | date: "%b %-d" }}</span>
|
||||
{% if jekyll.environment == "local" %}
|
||||
<span class="badge collection {{ post.collection }}">{{ post.collection }}</span>
|
||||
{% if post.draft %}
|
||||
<span class="badge draft">draft</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% if current_year != date %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user