Move repeated details to variables _config.yml and general cleanup

This commit is contained in:
2015-12-19 22:14:21 +00:00
parent cfeacd564d
commit ccc35d3be0
12 changed files with 60 additions and 69 deletions

View File

@@ -3,17 +3,13 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% if page.title != "Home" %}{{ page.title }} &ndash; {% endif %}Danny Berger</title>
<title>{% if page.title != "Home" %}{{ page.title }} &ndash; {% endif %}{{ site.title }}</title>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
<link href="{{ site.static_prefix }}/style/default-common.css" rel="stylesheet" type="text/css" />
<link href="{{ site.static_prefix }}/style/default-print.css" media="print" rel="stylesheet" type="text/css" />
<link href="{{ site.static_prefix }}/style/pygments.css" rel="stylesheet" type="text/css" />
<link href="/blog/atom.xml" type="application/atom+xml" rel="alternate" title="Danny Berger (blog)" />
{% if page.path %}
<meta property="jekyll-source" content="https://raw.githubusercontent.com/dpb587/dpb587.me/master/{{ page.path }}" />
{% endif %}
<link href="{{ site.absolute }}/blog/atom.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }}" />
{% if page.description %}
<meta name="description" content="{{ page.description }}" />
@@ -25,58 +21,32 @@
<meta name="viewport" content="width=756" />
<link href="http://dpb587.me{{ page.url|replace:'/index.html','/' }}" rel="canonical" />
<link href="{{ site.absolute }}{{ page.url|replace:'/index.html','/' }}" rel="canonical" />
<meta property="og:title" content="{% if page.title == 'Home' %}Danny Berger{% else %}{{ page.title }}{% endif %}" />
<meta property="og:url" content="http://dpb587.me{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&amp;utm_medium=def&amp;utm_source=opengraph" />
<meta property="og:title" content="{% if page.title == 'Home' %}{{ site.title }}{% else %}{{ page.title }}{% endif %}" />
<meta property="og:url" content="{{ site.baseurl }}{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&amp;utm_medium=def&amp;utm_source=opengraph" />
{% if page.description %}
<meta property="og:description" content="{{ page.description }}" />
{% endif %}
<meta name="twitter:domain" content="dpb587.me" />
<meta name="twitter:site" content="@dpb587" />
<meta name="twitter:creator" content="@dpb587" />
<meta name="twitter:url" content="http://dpb587.me{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&amp;utm_medium=def&amp;utm_source=twitter" />
<meta name="twitter:title" content="{% if page.title == 'Home' %}Danny Berger{% else %}{{ page.title }}{% endif %}" />
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}" />
{% endif %}
{% if 'gallery-photo' == page.layout %}
<meta name="twitter:card" content="photo" />
<meta name="twitter:image:src" content="{{ site.asset_prefix }}{{ page.url|replace:".html","~640.jpg" }}" />
{% else %}
<meta name="twitter:card" content="summary" />
{% if page.primary_image %}
<meta name="twitter:image:src" content="{{ site.asset_prefix }}{{ page.primary_image }}" />
{% endif %}
{% endif %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37464314-1']);
_gaq.push(['_setAccount', '{{ site.analytics }}']);
_gaq.push(['_trackPageview']);
(function() {
if ('dpb587.me' != window.location.hostname) return;
var ga = document.createElement('script'); ga.type = 'text/javascript'; 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>
</head>
<body class="layout-{{ page.layout }}{% if page.body_class %} {{ page.body_class }}{% endif %}">
<header>
<div class="timeline">
<a href="/"><img alt="DPB" src="http://www.gravatar.com/avatar/5544fe6a05400da5a8957ff29dd6718c.png?s=128" /></a>
</div>
<!--div class="timeline">
<a href="/"><img alt="" src="" /></a>
</div-->
<ul class="screen-only">
{% if 'dev' == site.environment %}
<li><a href="/private/">private</a></li>
<li><a href="{{ site.baseurl }}/private/">private</a></li>
{% endif %}
<li><a href="/blog/">blog</a></li>
<li><a href="/gallery/">gallery</a></li>
<li><a href="/projects.html">projects</a></li>
<li><a href="/about.html">about</a></li>
<li><a href="{{ site.baseurl }}/blog/">blog</a></li>
<li><a href="{{ site.baseurl }}/gallery/">gallery</a></li>
<li><a href="{{ site.baseurl }}/about.html">about</a></li>
</ul>
{% if page.print_blurb %}
<ul class="print-only">
@@ -84,21 +54,15 @@
</ul>
{% endif %}
<div class="site-title">
<strong><a href="/">Danny Berger</a></strong>
<strong><a href="/">{{ site.title }}</a></strong>
</div>
<div class="meta screen-only">
<a class="subtle" href="http://dpb587.me/">dpb587</a>
<a href="https://github.com/boukefalos">github</a>
&middot;
<a href="https://github.com/dpb587">github</a>
<span style="display:none;">
&middot;
<a href="https://plus.google.com/101881290181099762326?rel=author">google+</a>
</span>
&middot;
<a href="mailto:dpb587@gmail.com">email</a>
<a href="mailto:{{ site.email }}">email</a>
</div>
<div class="meta print-only">
<a href="http://dpb587.me/" style="color:inherit;">http://dpb587.me</a>
<a href="{{ site.baseurl }}/" style="color:inherit;">{{ site.baseurl }}</a>
</div>
</header>
<article>