- Cheatsheets is a collection of cheatsheets I've written over the years.
+ Cheatsheets is a collection of cheatsheets I've written over the years.
Suggestions and corrections? Send them in .
I'm Rico Sta. Cruz .
diff --git a/_includes/head.html b/_includes/head.html
index 74cefa7b8..2fa66a6e0 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -1,77 +1,9 @@
-
-
- {% if page.title %}
-
{{ page.title }} — {{ site.meta.title }}
-
-
-
- {% else %}
-
{{ site.meta.title }}
-
-
-
- {% endif %}
-
- {% if page.description %}
-
-
- {% else if page.url == '/index.html' && site.meta.description %}
-
-
- {% endif %}
-
- {% if page.url != '/index.html' %}
-
-
-
-
- {% endif %}
-
- {% if page.author %}
- {% for author in site.authors | where: "name", page.author %}
-
- {% if author.ogp %}
-
- {% endif %}
- {% endfor %}
- {% endif %}
- {% if site.meta.title %}
-
- {% endif %}
- {% if site.facebook.app_id %}
-
- {% endif %}
- {% if site.facebook.admin %}
-
- {% endif %}
- {% if page.date %}
-
- {% endif %}
- {% if page.image %}
-
-
- {% endif %}
-
- {% if page.tags[0] %}
-
- {% endif %}
- {% if page.tags %}
- {% for tag in page.tags %}
-
- {% endfor %}
- {% endif %}
-
-
-
-
-
- {% if site.analytics %}{% endif %}
-
+ {% include meta.html %}
-
+
diff --git a/_includes/meta.html b/_includes/meta.html
new file mode 100644
index 000000000..b63d01385
--- /dev/null
+++ b/_includes/meta.html
@@ -0,0 +1,91 @@
+
+
+{%comment%}{%endcomment%}
+{% assign base = '' %}
+{% assign depth = page.url | split: '/' | size | minus: 1 %}
+{% if depth == 1 %}{% assign base = '.' %}
+{% elsif depth == 2 %}{% assign base = '..' %}
+{% elsif depth == 3 %}{% assign base = '../..' %}
+{% elsif depth == 4 %}{% assign base = '../../..' %}{% endif %}
+{% assign timestamp = site.time | date: "%Y%m%d%H%M%S" %}
+
+{%comment%}{%endcomment%}
+{% if page.full_title %}
+
{{ page.full_title }}
+
+
+
+{% elsif page.title %}
+{{ page.title }} — {{ site.title }}
+
+
+
+{% else %}
+{{ site.title }}
+
+
+
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if page.description %}
+
+
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if page.url != '/index.html' %}
+
+
+
+
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if page.author %}
+{% for author in site.authors | where: "name", page.author %}
+
+ {% if author.ogp %}
+
+ {% endif %}
+{% endfor %}
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if site.title %}
+
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if site.facebook.app_id %}
+
+{% endif %}
+{% if site.facebook.admin %}
+
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if page.date %}
+
+{% endif %}
+{% if page.image %}
+
+
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if page.tags[0] %}
+
+{% endif %}
+{% if page.tags %}
+{% for tag in page.tags %}
+
+{% endfor %}
+{% endif %}
+
+{%comment%}{%endcomment%}
+{% if site.analytics %}{% endif %}
+
+
+
+
diff --git a/_includes/site-header.html b/_includes/site-header.html
index ada6e3312..f5dcec38c 100644
--- a/_includes/site-header.html
+++ b/_includes/site-header.html
@@ -1,6 +1,6 @@
diff --git a/index.md b/index.md
index 8e5403908..47b169f7d 100644
--- a/index.md
+++ b/index.md
@@ -1,4 +1,6 @@
---
-title: Cheatsheets
+full_title: "Cheatsheets — for web development and more"
+description: "A collection of cheatsheets I've written."
layout: home
+type: website
---
diff --git a/jekyll.md b/jekyll.md
index 91e8507b6..ec640d6fe 100644
--- a/jekyll.md
+++ b/jekyll.md
@@ -145,6 +145,7 @@ Markup
### If
{% if page.image.feature %}
+ {% else if xyz %}
{% else %}
{% endif %}