diff options
| -rw-r--r-- | _layouts/os_redirect.html | 20 | ||||
| -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 |
4 files changed, 32 insertions, 40 deletions
diff --git a/_layouts/os_redirect.html b/_layouts/os_redirect.html new file mode 100644 index 0000000..c7985aa --- /dev/null +++ b/_layouts/os_redirect.html @@ -0,0 +1,20 @@ +--- +layout: default +--- + +<p> + Attempting to redirect to the guide for your OS. + If the redirect fails, pick your OS: +</p> + +<ul> + <li><a href="{{ page.redirect_win }}">Windows</a></li> + <li><a href="{{ page.redirect_mac }}">Mac</a></li> + <li><a href="{{ page.redirect_linux }}">Linux</a></li> +</ul> + +<script type="text/javascript"> + if (navigator.appVersion.indexOf("Win") != -1) {window.location = '{{ page.redirect_win }}'} + else if (navigator.appVersion.indexOf("Mac") != -1) {window.location = '{{ page.redirect_mac }}'} + else if (navigator.appVersion.indexOf("X11") != -1 || navigator.appVersion.indexOf("Linux") != -1) {window.location = '{{ page.redirect_linux }}'} +</script> 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 |
