-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
015d85f
commit 425cf6c
Showing
5 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# | ||
# Jekyll layout that compresses HTML | ||
# v0.3.1 | ||
# https://github.com/penibelst/jekyll-compress-html | ||
# © 2014 Anatol Broder (http://penibelst.de/) | ||
# MIT License | ||
# | ||
--- | ||
|
||
{% assign _pres = content | split: '<pre' %}{% for _pre1 in _pres %}{% assign _pre2 = _pre1 | split: '</pre>' %}{% if _pre2.size == 2 %}<pre{{ _pre2.first }}</pre>{% endif %}{% assign _second = _pre2.last | split: ' ' | join: ' ' %}{% for _element in site.compress_html.clippings %}{% assign _edges = ' <element,<element; </element>,</element>;</element> ,</element>' | replace: 'element', _element | split: ';' %}{% for _edge in _edges %}{% assign _replacement = _edge | split: ',' %}{% assign _second = _second | replace: _replacement[0], _replacement[1] %}{% endfor %}{% endfor %}{% for _element in site.compress_html.endings %}{% assign _closing = '</element>' | replace: 'element', _element %}{% assign _second = _second | remove: _closing %}{% endfor %}{{ _second }}{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
layout: compress | ||
--- | ||
|
||
<!doctype html> | ||
<html dir="ltr" lang="{{ site.noita.lang }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{ page.title }}</title> | ||
{% include noita/robots.html %} | ||
{% include noita/meta-description.html %} | ||
|
||
{% for favicon in site.noita.favicons %} | ||
{% assign size = favicon | split: '-' | last | split: '.' | first %} | ||
<link rel="icon" | ||
sizes="{{ size }}x{{ size }}" | ||
href="{{ favicon }}"> | ||
<link rel="apple-touch-icon" | ||
sizes="{{ size }}x{{ size }}" | ||
href="{{ favicon }}"> | ||
{% endfor %} | ||
|
||
<link rel="alternate" href="/blog/feed.atom" | ||
title="{{ site.noita.name }}" type="application/atom+xml"> | ||
|
||
<link rel="stylesheet" href="/noita/foundation/css/normalize.css"> | ||
<link rel="stylesheet" href="/noita/foundation/css/foundation.min.css"> | ||
{% for stylesheet in site.noita.stylesheets %} | ||
<link rel="stylesheet" href="{{ stylesheet }}"> | ||
{% endfor %} | ||
|
||
<script src="/noita/foundation/js/vendor/modernizr.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div class="top-bar" data-topbar id="topbar"> | ||
<ul class="title-area"> | ||
<li class="name"> | ||
<h1><a href="/">{{ site.noita.name }}</a></h1> | ||
</li> | ||
<li class="toggle-topbar menu-icon"><a href="#topbar"><span>{{ site.noita.topbar.toggle }}</span></a></li> | ||
</ul> | ||
<div class="top-bar-section"> | ||
{% if site.noita.topbar.left %} | ||
<ul class="left"> | ||
{% for item in site.noita.topbar.left %} | ||
<li{% if item.class %} class="has-form"{% endif %}> | ||
<a href="{{ item.url }}" class="{{ item.class }}">{{ item.name }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
{% if site.noita.topbar.right %} | ||
<ul class="right"> | ||
{% for item in site.noita.topbar.right %} | ||
<li{% if item.class %} class="has-form"{% endif %}> | ||
<a href="{{ item.url }}" class="{{ item.class }}">{{ item.name }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="column"> | ||
<h1>{{ page.title }}</h1> | ||
</div> | ||
</div> | ||
|
||
{{ content }} | ||
|
||
|
||
<script src="/noita/foundation/js/vendor/jquery.js"></script> | ||
<script src="/noita/foundation/js/vendor/fastclick.js"></script> | ||
<script src="/noita/foundation/js/foundation.min.js"></script> | ||
<script>$(document).foundation();</script> | ||
|
||
{% for javascript in site.noita.javascripts %} | ||
<script src="{{ javascript }}"></script> | ||
{% endfor %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ site.noita.lang }}"> | ||
<title>{{ site.noita.name }}</title> | ||
<subtitle>{{ site.noita.description }}</subtitle> | ||
|
||
{% if site.noita.url %} | ||
{% assign base = site.noita.url %} | ||
{% elsif site.github.url %} | ||
{% assign base = site.github.url %} | ||
{% else %} | ||
{% assign base = '' %} | ||
{% endif %} | ||
|
||
<id>{{ base }}{{ page.url }}</id> | ||
<author> | ||
<name>{{ site.noita.author.name }}</name> | ||
<uri>{{ site.noita.author.url }}</uri> | ||
</author> | ||
<link | ||
rel="alternate" | ||
type="text/html" | ||
href="{{ base }}/" /> | ||
<link | ||
rel="self" | ||
type="application/atom+xml" | ||
href="{{ base }}{{ page.url }}" /> | ||
<updated>{{ site.time | date_to_xmlschema }}</updated> | ||
|
||
{% for post in site.posts limit: page.limit %} | ||
<entry> | ||
<content type="html">{{ post.content | xml_escape }}</content> | ||
<title type="html">{{ post.title | xml_escape }}</title> | ||
<id>{{ base }}{{ post.url }}</id> | ||
<link | ||
rel="alternate" | ||
type="text/html" | ||
href="{{ base }}{{ post.url }}" /> | ||
<published>{{ post.date | date_to_xmlschema }}</published> | ||
<updated>{{ post.date | date_to_xmlschema }}</updated> | ||
</entry> | ||
{% endfor %} | ||
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="row"> | ||
<div class="medium-10 columns" style="text-align: justify;" > | ||
{{ content }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="row"> | ||
<div class="medium-8 columns"> | ||
<header> | ||
<p>{{ page.date | date: "%Y-%m-%d" }}{% if page.author %} | ||
• <a href="http://github.com/{{ page.author }}">{{ page.author }}</a>{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p> | ||
</header> | ||
|
||
<h3 class="subheader">{{ page.description }}</h3> | ||
{{ content }} | ||
</div> | ||
</div> |