Browse Source

Add Google search & permalink

master
sipp11 10 years ago
parent
commit
20cd62e54c
  1. 7
      _includes/header.html
  2. 1
      _layouts/default.html
  3. 1
      archive.html
  4. 1
      tags.html

7
_includes/header.html

@ -14,6 +14,13 @@
</a>
<div class="trigger">
<a class="page-link">
<form action="http://www.google.com" id="cse-search-box">
<input type="hidden" name="cx" value="partner-pub-2020708490119286:1044307855" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="55" />
</form>
</a>
{% for page in site.pages %}
{% if page.title %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>

1
_layouts/default.html

@ -23,6 +23,7 @@
ga('create', 'UA-3189083-1', 'auto');
ga('send', 'pageview');
</script>
<script src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</body>
</html>

1
archive.html

@ -1,6 +1,7 @@
---
layout: default
title : Archive
permalink: /archive/
---
<section id="archive">
{% assign posts_collate = site.posts %}

1
tags.html

@ -1,6 +1,7 @@
---
layout: default
title: Tags
permalink: /tags/
---
<!--TODO: Find a fix to tags with spaces-->
<ul class="tag_box inline">

Loading…
Cancel
Save