Styles and metas

This commit is contained in:
Rico Sta. Cruz 2015-03-06 18:37:15 +08:00
parent b0f996835a
commit ef8216de60
3 changed files with 43 additions and 5 deletions

View File

@ -27,3 +27,8 @@ defaults:
layout: "default"
meta:
name: "Cheatsheets"
title: Cheatsheets
description: "A collection of cheatsheets I've written."
hostname: ricostacruz.com
author: Rico Sta. Cruz
url: http://ricostacruz.com/cheatsheets

View File

@ -1,8 +1,41 @@
<!DOCTYPE html>
<html lang="en" class="{{ page.html_class }}">
<!doctype html>
<html lang='en' class='{{ page.html_class }}'>
<head>
<meta charset="UTF-8" />
<title>{{ page.title }} cheatsheet</title>
<meta charset='utf-8'>
{% if page.title %}
<title>{{ page.title }} &mdash; {{ site.meta.title }}</title>
<meta content='{{ page.title }}' property='og:title'>
<meta content='{{ page.title }}' property='twitter:title'>
<meta content='article' property='og:type'>
{% else %}
<title>{{ site.meta.title }}</title>
<meta content='{{ site.meta.title }}' property='og:title'>
<meta content='{{ site.meta.title }}' property='twitter:title'>
<meta content='blog' property='og:type'>
{% endif %}
{% if page.meta.description %}
<meta content="{{ page.meta.description }}" name="description">
<meta content="{{ page.meta.description }}" property="og:description">
{% else if page.url == '/index.html' && site.meta.description %}
<meta content="{{ site.meta.description }}" name="description">
<meta content="{{ site.meta.description }}" property="og:description">
{% endif %}
{% if page.url != '/index.html' %}
<link rel="canonical" href="{{ site.meta.url }}{{ page.url }}">
<meta name="og:url" content="{{ site.meta.url }}{{ page.url }}">
<link rel="prefetch" href="{{ site.meta.url }}">
<link rel="prerender" href="{{ site.meta.url }}">
{% endif %}
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<link href='/favicon.png' rel='shortcut icon'>
{% if site.analytics %}<script>if(~location.hostname.indexOf("{{site.meta.hostname}}")){var _gaq=_gaq||[];_gaq.push(["_setAccount","{{ site.analytics.id }}"]);_gaq.push(["_trackPageview"]);(function(){var ga=document.createElement("script");ga.async=true;ga.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga,s)})()}</script>{% endif %}
<link href="http://ricostacruz.com/til/assets/style.css" rel="stylesheet" />
<link href="assets/style.css" rel="stylesheet" />
</head>

View File

@ -1,6 +1,6 @@
<div class='site-header'>
<div class='container'>
This is <a href="/"><em>{{ site.meta.name }}</em></a> &mdash; collection of cheatsheets I've written.
This is <a href="."><em>{{ site.meta.name }}</em></a> &mdash; collection of cheatsheets I've written.
</div>
</div>