summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortekkub <tekkub@gmail.com>2009-07-27 01:46:20 -0600
committertekkub <tekkub@gmail.com>2009-07-27 01:46:20 -0600
commit8352e9538ecd1a66a44239a3e775660d91f20d6d (patch)
treeaa17a526ad3774aa742bd0b6e9b42a4a063e8d58
parentf1bd9b8a2410131abb0aca5e40d97d3b9b1613c1 (diff)
Make sidebar expand the correct category for guides
-rw-r--r--_layouts/default.html4
-rw-r--r--_posts/2009-06-14-mac-git-installation.textile1
-rw-r--r--_posts/2009-06-15-mac-key-setup.textile1
-rw-r--r--_posts/2009-06-15-msysgit-key-setup.textile1
4 files changed, 7 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index ea5e3ce..71ba56d 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -25,6 +25,10 @@ sidebar_cats:
<body>
{% if page.main_category %}
<script type="text/javascript">var main_category = "{{ page.main_category }}"</script>
+ {% else %}
+ {% if page.categories %}
+ <script type="text/javascript">var main_category = "{{ page.categories }}"</script>
+ {% endif %}
{% endif %}
<div id="main">
<div id="header" class="basic">
diff --git a/_posts/2009-06-14-mac-git-installation.textile b/_posts/2009-06-14-mac-git-installation.textile
index 872511a..ae3bada 100644
--- a/_posts/2009-06-14-mac-git-installation.textile
+++ b/_posts/2009-06-14-mac-git-installation.textile
@@ -4,6 +4,7 @@ title: Installing git (OSX)
subtitle: There are a number of methods to install git on OSX. This guide details the most common methods.
description: How to install git on OSX
categories: mac setup
+main_category: setup
---
h3. Pre-compiled Installer
diff --git a/_posts/2009-06-15-mac-key-setup.textile b/_posts/2009-06-15-mac-key-setup.textile
index 2be61b1..b19be36 100644
--- a/_posts/2009-06-15-mac-key-setup.textile
+++ b/_posts/2009-06-15-mac-key-setup.textile
@@ -4,6 +4,7 @@ title: Generating SSH keys (OSX)
subtitle: This guide will step you through the process of generating a keypair on Mac OSX and uploading it to GitHub
description: Setting up SSH keys on Mac OSX
categories: mac setup
+main_category: setup
---
Generating an SSH key on OSX is a fairly straightforward process. First and foremost, open up Terminal.app. You can usually find it at @/Applications/Utilities@.
diff --git a/_posts/2009-06-15-msysgit-key-setup.textile b/_posts/2009-06-15-msysgit-key-setup.textile
index 51568f0..b0a12eb 100644
--- a/_posts/2009-06-15-msysgit-key-setup.textile
+++ b/_posts/2009-06-15-msysgit-key-setup.textile
@@ -4,6 +4,7 @@ title: Generating SSH keys (Windows/msysgit)
subtitle: This guide will step you through the process of generating a keypair in msysgit and uploading it to GitHub
description: Setting up SSH keys with msysgit on Windows
categories: windows setup
+main_category: setup
---
Generating an SSH key with msysgit is a fairly straightforward process. First and foremost, make sure you're working in the Git Bash console, not cmd (the default Windows command line). You can find Git Bash under the git folder in your start menu, or by right clicking on a folder and selecting "Git Bash Here" if you choose to install context menu items during the msysgit installation.