diff options
| author | tekkub <tekkub@gmail.com> | 2011-03-06 03:39:01 -0700 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2011-03-06 03:39:01 -0700 |
| commit | 8431916e74a6db1d2bf7dee8139d43173a11b98c (patch) | |
| tree | d989e58f1966c8ba711794a74122728470673b34 | |
| parent | 195bb6e477231b96c18b2062f1ef59d64a6f81cd (diff) | |
DRY up redirections
| -rw-r--r-- | _layouts/redirect.html | 11 | ||||
| -rwxr-xr-x | _posts/2009-06-11-forking.markdown | 9 | ||||
| -rw-r--r-- | _posts/2009-06-14-linux-git-installation.markdown | 9 | ||||
| -rw-r--r-- | _posts/2009-06-14-mac-git-installation.markdown | 9 | ||||
| -rw-r--r-- | _posts/2009-06-14-win-git-installation.markdown | 9 | ||||
| -rw-r--r-- | _posts/2009-06-15-linux-key-setup.markdown | 9 | ||||
| -rw-r--r-- | _posts/2009-06-15-mac-key-setup.markdown | 9 | ||||
| -rw-r--r-- | _posts/2009-06-15-msysgit-key-setup.markdown | 9 |
8 files changed, 25 insertions, 49 deletions
diff --git a/_layouts/redirect.html b/_layouts/redirect.html new file mode 100644 index 0000000..7894f22 --- /dev/null +++ b/_layouts/redirect.html @@ -0,0 +1,11 @@ +--- +layout: default +--- +<p> + This page has moved. If the redirect fails, + <a href="{{ page.redirect_to }}">click me</a>. +</p> + +<script type="text/javascript"> + window.location = '{{ page.redirect_to }}' +</script> diff --git a/_posts/2009-06-11-forking.markdown b/_posts/2009-06-11-forking.markdown index bb06e35..aaf8b5b 100755 --- a/_posts/2009-06-11-forking.markdown +++ b/_posts/2009-06-11-forking.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Forking a project description: How to fork a project, submit changes, and pull from other repos in the fork network +redirect_to: /fork-a-repo --- - -This page has moved. If the redirect fails, [click me](fork-a-repo) - -<script type="text/javascript"> - window.location = '/fork-a-repo' -</script> diff --git a/_posts/2009-06-14-linux-git-installation.markdown b/_posts/2009-06-14-linux-git-installation.markdown index 97f5af4..71e2316 100644 --- a/_posts/2009-06-14-linux-git-installation.markdown +++ b/_posts/2009-06-14-linux-git-installation.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Installing git (Linux) description: How to install git on Linux +redirect_to: /linux-set-up-git --- - -This page has moved. If the redirect fails, [click me](linux-set-up-git) - -<script type="text/javascript"> - window.location = '/linux-set-up-git' -</script> diff --git a/_posts/2009-06-14-mac-git-installation.markdown b/_posts/2009-06-14-mac-git-installation.markdown index a63a7c8..4c0bd7f 100644 --- a/_posts/2009-06-14-mac-git-installation.markdown +++ b/_posts/2009-06-14-mac-git-installation.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Installing git (OSX) description: How to install git on OSX +redirect_to: /mac-set-up-git --- - -This page has moved. If the redirect fails, [click me](mac-set-up-git) - -<script type="text/javascript"> - window.location = '/mac-set-up-git' -</script> diff --git a/_posts/2009-06-14-win-git-installation.markdown b/_posts/2009-06-14-win-git-installation.markdown index 4e618f4..dd0571d 100644 --- a/_posts/2009-06-14-win-git-installation.markdown +++ b/_posts/2009-06-14-win-git-installation.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Installing git (Win/msysgit) description: How to install git on Windows +redirect_to: /win-set-up-git --- - -This page has moved. If the redirect fails, [click me](win-set-up-git) - -<script type="text/javascript"> - window.location = '/win-set-up-git' -</script> diff --git a/_posts/2009-06-15-linux-key-setup.markdown b/_posts/2009-06-15-linux-key-setup.markdown index 8216641..8dfa42d 100644 --- a/_posts/2009-06-15-linux-key-setup.markdown +++ b/_posts/2009-06-15-linux-key-setup.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Generating SSH keys (Linux) description: Setting up SSH keys on Linux +redirect_to: /linux-set-up-git --- - -This page has moved. If the redirect fails, [click me](linux-set-up-git) - -<script type="text/javascript"> - window.location = '/linux-set-up-git' -</script> diff --git a/_posts/2009-06-15-mac-key-setup.markdown b/_posts/2009-06-15-mac-key-setup.markdown index b741f3a..e080310 100644 --- a/_posts/2009-06-15-mac-key-setup.markdown +++ b/_posts/2009-06-15-mac-key-setup.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Generating SSH keys (OSX) description: Setting up SSH keys on Mac OSX +redirect_to: /mac-set-up-git --- - -This page has moved. If the redirect fails, [click me](mac-set-up-git) - -<script type="text/javascript"> - window.location = '/mac-set-up-git' -</script> diff --git a/_posts/2009-06-15-msysgit-key-setup.markdown b/_posts/2009-06-15-msysgit-key-setup.markdown index 70f340f..11c9da7 100644 --- a/_posts/2009-06-15-msysgit-key-setup.markdown +++ b/_posts/2009-06-15-msysgit-key-setup.markdown @@ -1,11 +1,6 @@ --- -layout: default +layout: redirect title: Generating SSH keys (Win/msysgit) description: Setting up SSH keys with msysgit on Windows +redirect_to: /win-set-up-git --- - -This page has moved. If the redirect fails, [click me](win-set-up-git) - -<script type="text/javascript"> - window.location = '/win-set-up-git' -</script> |
