From 547cae0f402b3ffdf4918fa86975226425e2580a Mon Sep 17 00:00:00 2001 From: Jordy Rose Date: Fri, 23 Mar 2012 15:42:52 -0700 Subject: [PATCH] Use Tapir for the search page. --- _config.yml | 3 +- search.html | 117 ++++++++++++++++++++++----------------------------- sidebar.html | 6 ++- 3 files changed, 56 insertions(+), 70 deletions(-) diff --git a/_config.yml b/_config.yml index 4c5fb2a..64ebe55 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ pygments: true markdown: kramdown permalink: /:categories/:year/:month/:title/ -exclude: README.md tapir.yml +exclude: [README.md, tapir.yml] # Required, always! title: -dealloc @@ -20,6 +20,7 @@ author: Jordy Rose home_title: -dealloc // The Belkadan Software Blog min_tag_size: 2 disqus: dealloc +tapir_token: 4f6d17a83f61b03ac3000004 # Optional. Relative to baseurl. Must be on the same site! favicon: /favicon diff --git a/search.html b/search.html index a632abd..2a6bf27 100644 --- a/search.html +++ b/search.html @@ -4,85 +4,68 @@ title: Archives dependencies: * --- +{% if site.tapir_token %}
-

Posts

- -
    -
+

Posts

+
    +
- +{% else %} +
+

Search is not enabled on this site. +

+{% endif %} diff --git a/sidebar.html b/sidebar.html index 7a1804b..27bf46d 100644 --- a/sidebar.html +++ b/sidebar.html @@ -8,13 +8,15 @@ {% include blurb.md %} {% end_include_exists %} - + + {% if site.tapir_token %}
  • - + {% endif %} +
  • Archives