diff options
| author | tekkub <tekkub@gmail.com> | 2011-03-06 03:52:57 -0700 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2011-03-06 03:52:57 -0700 |
| commit | 3ec91806feeea47390ec0d2481bd945f1a252613 (patch) | |
| tree | ddeba42de79a1702041fb92ccabc9ecec80158b3 /_posts | |
| parent | 8431916e74a6db1d2bf7dee8139d43173a11b98c (diff) | |
DRY up OS-specific redirections too
Diffstat (limited to '_posts')
| -rw-r--r-- | _posts/2008-02-15-set-up-git-redirect.markdown | 17 | ||||
| -rw-r--r-- | _posts/2009-06-13-git-installation-redirect.markdown | 17 | ||||
| -rw-r--r-- | _posts/2009-06-15-key-setup-redirect.markdown | 18 |
3 files changed, 12 insertions, 40 deletions
diff --git a/_posts/2008-02-15-set-up-git-redirect.markdown b/_posts/2008-02-15-set-up-git-redirect.markdown index 932ef99..c8d5858 100644 --- a/_posts/2008-02-15-set-up-git-redirect.markdown +++ b/_posts/2008-02-15-set-up-git-redirect.markdown @@ -1,18 +1,9 @@ --- -layout: default +layout: os_redirect title: Set Up Git description: A quick guide to help you get started with Git categories: bootcamp +redirect_win: /win-set-up-git +redirect_mac: /mac-set-up-git +redirect_linux: /linux-set-up-git --- - -Attempting to redirect to the guide for your OS. If the redirect fails, pick your OS: - -* [Windows](win-set-up-git) -* [Mac](mac-set-up-git) -* [Linux](linux-set-up-git) - -<script type="text/javascript"> - if (navigator.appVersion.indexOf("Win") != -1) {window.location = '/win-set-up-git'} - else if (navigator.appVersion.indexOf("Mac") != -1) {window.location = '/mac-set-up-git'} - else if (navigator.appVersion.indexOf("X11") != -1 || navigator.appVersion.indexOf("Linux") != -1) {window.location = '/linux-set-up-git'} -</script>
\ No newline at end of file diff --git a/_posts/2009-06-13-git-installation-redirect.markdown b/_posts/2009-06-13-git-installation-redirect.markdown index 3040d7f..7dfa9b8 100644 --- a/_posts/2009-06-13-git-installation-redirect.markdown +++ b/_posts/2009-06-13-git-installation-redirect.markdown @@ -1,17 +1,8 @@ --- -layout: default +layout: os_redirect title: Installing git description: How to install git +redirect_win: /win-set-up-git +redirect_mac: /mac-set-up-git +redirect_linux: /linux-set-up-git --- - -Attempting to redirect to the guide for your OS. If the redirect fails, pick your OS: - -* [Windows](win-set-up-git) -* [Mac](mac-set-up-git) -* [Linux](linux-set-up-git) - -<script type="text/javascript"> - if (navigator.appVersion.indexOf("Win") != -1) {window.location = '/win-set-up-git'} - else if (navigator.appVersion.indexOf("Mac") != -1) {window.location = '/mac-set-up-git'} - else if (navigator.appVersion.indexOf("X11") != -1 || navigator.appVersion.indexOf("Linux") != -1) {window.location = '/linux-set-up-git'} -</script> diff --git a/_posts/2009-06-15-key-setup-redirect.markdown b/_posts/2009-06-15-key-setup-redirect.markdown index 45e7327..e20e091 100644 --- a/_posts/2009-06-15-key-setup-redirect.markdown +++ b/_posts/2009-06-15-key-setup-redirect.markdown @@ -1,18 +1,8 @@ --- -layout: default +layout: os_redirect title: Generating SSH keys description: How to generate SSH keys and add them to GitHub +redirect_win: /win-set-up-git +redirect_mac: /mac-set-up-git +redirect_linux: /linux-set-up-git --- - -Attempting to redirect to the guide for your OS. If the redirect fails, pick your OS: - -* [Windows](win-set-up-git) -* [Mac](mac-set-up-git) -* [Linux](linux-set-up-git) - -<script type="text/javascript"> - if (navigator.appVersion.indexOf("Win") != -1) {window.location = '/win-set-up-git'} - else if (navigator.appVersion.indexOf("Mac") != -1) {window.location = '/mac-set-up-git'} - else if (navigator.appVersion.indexOf("X11") != -1 || navigator.appVersion.indexOf("Linux") != -1) {window.location = '/linux-set-up-git'} -</script> ->
\ No newline at end of file |
