1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

handle old content redirects with jekyll-redirect-from plugin

This commit is contained in:
Matthias Kretschmann 2014-08-31 18:55:02 +02:00
parent 6f3de783f4
commit 164a4c2a9a
20 changed files with 75 additions and 62 deletions

View File

@ -6,6 +6,7 @@ group :development do
gem 'jekyll'
gem 'jekyll-sitemap'
gem 'jekyll-timeago'
gem 'jekyll-redirect-from'
gem 'rouge'
gem 'mini_magick'
gem 'fileutils'

View File

@ -12,7 +12,7 @@
name: kremalicious
description: 'Blog of designer & developer Matthias Kretschmann'
url: http://kremalicious.com
baseurl: http://kremalicious.com
author: Matthias Kretschmann
email: m@kretschmann.io
@ -53,7 +53,7 @@ keep_files: ['media', 'gen']
gems:
- jekyll-sitemap
- jekyll-timeago
- jekyll-redirect-from
# jekyll-picture-tag
# --------------------

View File

@ -662,45 +662,12 @@ FileETag None
</IfModule>
# feed redirects
Redirect 301 /home/feed/ /feed/
Redirect 301 /feed/atom/ /feed/
Redirect 301 /comments/feed/ /feed/
# Remove date from post permalinks
RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3
# Old Content Redirects
Redirect 301 /goodies/icon /goodies
Redirect 301 /goodies/other /goodies
Redirect 301 /goodies/wallpaper /goodies
Redirect 301 /lab http://lab.kremalicious.com
Redirect 301 /csspaperstack /lab/csspaperstack
Redirect 301 /download /media
Redirect 301 /about/contact /about
Redirect 301 /contact /about
Redirect 301 /portfolio http://matthiaskretschmann.com
Redirect 301 /blog /
Redirect 301 /topics/goodies /goodies
Redirect 301 /topics/design-articles /design
Redirect 301 /topics/howto-and-tutorial /
Redirect 301 /topics/news-and-links /links
Redirect 301 /design-articles /design
Redirect 301 /howto-and-tutorial /
Redirect 301 /news-and-links /links
Redirect 301 /new-goodies-aperture-file-types-icons /aperture-file-types
Redirect 301 /goodie-updated-aperture-file-types-v11 /aperture-file-types
Redirect 301 /aperture-file-types-v12-released /aperture-file-types
Redirect 301 /new-goodie-niepces-camera-obscura-wallpaper-pack /niepces-camera-obscura-wallpaper-pack
Redirect 301 /new-goodie-icy-box-icons /icy-box-icons
Redirect 301 /new-goodie-futurama-mars-university-wallpaper /futurama-mars-university-wallpaper
Redirect 301 /first-wallpaper-chives /chives
Redirect 301 /new-goodie-niepces-camera-obscura-and-the-history-of-the-first-photograph /niepces-camera-obscura-and-the-history-of-the-first-photograph
Redirect 301 /4-more-icons-niepces-camera-obscura-v11 /niepces-camera-obscura-and-the-history-of-the-first-photograph
Redirect 301 /canon-eos-50d-officially-announced-and-new-lens /
Redirect 301 /apple-touch-icon.png /apple-touch-icon-precomposed.png
Redirect 301 /most-popular-stuff-on-kremaliciouscom-in-2008/ /
Redirect 301 /ubuntu-as-mac-file-server-and-time-machine-volume/trackback/ /ubuntu-as-mac-file-server-and-time-machine-volume

View File

@ -2,6 +2,6 @@
<aside class="comments">
<p>You should tweet this post</p>
<p class="btn-wrap"><a class="btn twitter-share icon icon-twitter" target="_blank" href="https://twitter.com/intent/tweet?url={{ site.url | cgi_escape }}{{ page.url | cgi_escape }}&text={{ page.title | cgi_escape }}&via=kremalicious&related=kremaliciouscom,ezeep">Tweet</a></p>
<p class="btn-wrap"><a class="btn twitter-share icon icon-twitter" target="_blank" href="https://twitter.com/intent/tweet?url={{ site.baseurl | cgi_escape }}{{ page.url | cgi_escape }}&text={{ page.title | cgi_escape }}&via=kremalicious&related=kremaliciouscom,ezeep">Tweet</a></p>
</aside>

View File

@ -67,9 +67,9 @@
<!-- Canonical URL -->
<link rel="canonical" href="{{ site.url}}{{ page.url | replace:'index.html','' }}">
<link rel="canonical" href="{{ site.baseurl}}{{ page.url | replace:'index.html','' }}">
<link rel="alternate" href="{{ site.url }}/feed/" type="application/rss+xml" title="Posts Feed"/>
<link rel="alternate" href="{{ site.baseurl }}/feed/" type="application/rss+xml" title="Posts Feed"/>
<!-- Apple -->
<meta name="apple-mobile-web-app-title" content="kremalicious">
@ -87,7 +87,7 @@
<link rel="icon" href="/favicon.ico" sizes="16x16">
<!-- Windows 8 Metro Tile Image -->
<meta name="msapplication-TileImage" content="{{ site.url }}/metro-tile.png"/>
<meta name="msapplication-TileImage" content="{{ site.baseurl }}/metro-tile.png"/>
<meta name="msapplication-TileColor" content="#015565"/>
{% if paginator %}

View File

@ -7,7 +7,7 @@
{% endif %}
{% if page.title %}
<meta content="article" property="og:type">
<meta content="{{ site.url }}/about/" property="article:author">
<meta content="{{ site.baseurl }}/about/" property="article:author">
{% else %}
<meta content="website" property="og:type">
{% endif %}
@ -19,15 +19,15 @@
<meta content="{{ page.excerpt | strip_html | strip_newlines }}" property="og:description">
{% endif %}
{% if page.url %}
<meta content="{{ site.url}}{{ page.url | replace:'index.html','' }}" property="og:url">
<meta content="{{ site.baseurl}}{{ page.url | replace:'index.html','' }}" property="og:url">
{% endif %}
{% if page.date %}
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
{% endif %}
{% if page.image %}
<meta content="{{ site.url }}/media/{{ page.image }}" property="og:image">
<meta content="{{ site.baseurl }}/media/{{ page.image }}" property="og:image">
{% else %}
<meta content="{{ site.url }}/kremalicious1024.png" property="og:image">
<meta content="{{ site.baseurl }}/kremalicious1024.png" property="og:image">
{% endif %}
{% if page.categories %}
{% for category in page.categories limit:1 %}

View File

@ -12,7 +12,7 @@
<meta name="twitter:title" content="{{ site.title }}">
{% endif %}
{% if page.url %}
<meta name="twitter:url" content="{{ site.url}}{{ page.url | replace:'index.html','' }}">
<meta name="twitter:url" content="{{ site.baseurl}}{{ page.url | replace:'index.html','' }}">
{% endif %}
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
@ -20,7 +20,7 @@
<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">
{% endif %}
{% if page.image %}
<meta name="twitter:image:src" content="{{ site.url }}/media/{{ page.image }}">
<meta name="twitter:image:src" content="{{ site.baseurl }}/media/{{ page.image }}">
{% else %}
<meta name="twitter:image:src" content="{{ site.url }}/kremalicious1024.png">
<meta name="twitter:image:src" content="{{ site.baseurl }}/kremalicious1024.png">
{% endif %}

View File

@ -11,6 +11,11 @@ wordpress_id: 21
categories:
- goodies
- icon
redirect_from:
- /new-goodies-aperture-file-types-icons/
- /goodie-updated-aperture-file-types-v11/
- /aperture-file-types-v12-released/
---
These icons are free for your personal use and include icons for all file types Apples Aperture 2.0 can handle (.jpeg, .gif, .tiff, .png, .pdf, .psd, .arw, .cr2, .crw, .mos, .nef, .raf, .raw, .srw, .tif, .oly, .fff, .3fr, .dng, .mrw, .pef, .srf, .orf).

View File

@ -9,8 +9,10 @@ author: Matthias Kretschmann
date: 2008-06-01 18:43:40+00:00
wordpress_id: 64
categories:
- goodies
- wallpaper
- goodies
- wallpaper
redirect_from:
- /first-wallpaper-chives/
---
I have added my first wallpaper to the Goodies section on this website. It's a shot of blooming chives which was altered with Aperture 2.1 and Photoshop CS3.

View File

@ -8,10 +8,15 @@ author: Matthias Kretschmann
date: 2008-06-03 14:34:03+00:00
wordpress_id: 67
categories:
- goodies
- icon
- photography
- goodies
- icon
- photography
redirect_from:
- /new-goodie-niepces-camera-obscura-and-the-history-of-the-first-photograph/
-/4-more-icons-niepces-camera-obscura-v11
---
These two desktop icons show the Camera Obscura as it was used by Nicéphore Niépce in an Aperture and iPhoto style and are intended as an homage to him. Nicéphore Niépce made it first possible to preserve an image taken with a camera obscura in 1826 or 1827 by using a special mixture of bitumen on a pewter plate, naming it Heliography. This first preserved photograph "View from the Window at Le Gras" is the one you can see in the iPhoto icon contained in this package. The third icon is the folder icon I have created for this icon package.

View File

@ -11,6 +11,9 @@ wordpress_id: 66
categories:
- goodies
- wallpaper
redirect_from:
- /new-goodie-niepces-camera-obscura-wallpaper-pack/
---
In addition to my Niépce's Camera Obscura icons for Aperture and iPhoto I have made some Wallpapers containing both icons.

View File

@ -13,6 +13,9 @@ categories:
- design
tags:
- tutorial
redirect_from:
- /ubuntu-as-mac-file-server-and-time-machine-volume/trackback/
---
![Ubuntu Mac File Server Connectivity](/media/ubuntu_mac_feature_thumb.jpg)For quite some time I use my Ubuntu machine as a file and backup server for all Macs in my network which is perfectly accessible from the Finder in Mac OS X. There are some instructions available in the web for this task but all failed in my case so I wrote my own tutorial with all the steps needed for it to work properly.

View File

@ -10,6 +10,9 @@ wordpress_id: 146
categories:
- goodies
- icon
redirect_from:
- /new-goodie-icy-box-icons/
---
A friend of mine asked me to craft an icon for his external hard drive case and I would like to share those with you too. These desktop icons show the the silver and black Icy Box external aluminium case with USB interface and are intended as a replacement for the generic external hard disk icon in Mac OS X Leopard.

View File

@ -8,8 +8,11 @@ author: Matthias Kretschmann
date: 2008-09-23 23:22:16+00:00
wordpress_id: 256
categories:
- goodies
- wallpaper
- goodies
- wallpaper
redirect_from:
- /new-goodie-futurama-mars-university-wallpaper/
---
Show your geeky love for extraterrestrial universities! This is a simple Futurama tribute wallpaper displaying the logo of the Mars University as seen in the first season (1ACV11/S02E02). But I've modified it a bit to get it out of the 2D. Including one high-resolution desktop version for widescreen displays (2560x1600) and one iPhone version (320x480).

View File

@ -2,6 +2,9 @@
layout: page
title: About
description: About this blog and the author
redirect_from:
- /about/contact/
- /contact/
---
<img class="avatar photo" src="/assets/img/avatar.jpeg" />

View File

@ -3,6 +3,9 @@ layout: base
title: Design
description: All the design related articles, mostly about web/ui design &amp; front-end development
category: design
redirect_from:
- /topics/design-articles/
- /design-articles/
---
<section role="main" id="main" class="row">

View File

@ -1,13 +1,17 @@
---
redirect_from:
- /home/feed/
- /feed/atom/
- /comments/feed/
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text" xml:lang="en">{{ site.name }}</title>
<link type="application/atom+xml" href="{{ site.url }}/feed/" rel="self"/>
<link type="text" href="{{ site.url }}" rel="alternate"/>
<link type="application/atom+xml" href="{{ site.baseurl }}/feed/" rel="self"/>
<link type="text" href="{{ site.baseurl }}" rel="alternate"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<id>{{ site.baseurl }}</id>
<author>
<name>{{ site.author }}</name>
</author>
@ -19,7 +23,7 @@
<link>{{ post.linkurl | escape }}</link>
{% else %}
<title>{{ post.title | escape | titlecase }}</title>
<link>{{ site.url }}{{ post.url | escape }}</link>
<link>{{ site.baseurl }}{{ post.url | escape }}</link>
{% endif %}
<published>{{ post.date | date_to_xmlschema }}</published>
@ -30,17 +34,17 @@
<updated>{{ post.date | date_to_xmlschema }}</updated>
{% endif %}
<id>{{ site.url }}{{ post.url | escape }}</id>
<id>{{ site.baseurl }}{{ post.url | escape }}</id>
<content type="html">
{% if post.image %}
&lt;img src=&quot;{{ site.url }}/media/{{ post.image }}&quot; /&gt;
&lt;img src=&quot;{{ site.baseurl }}/media/{{ post.image }}&quot; /&gt;
{% endif %}
{{ post.content | xml_escape }}
{% if post.layout == "link" %}
&lt;a href=&quot;{{ post.linkurl | escape }}&quot;&gt;Go to source &amp;#187;&lt;/a&gt; &lt;br /&gt;
&lt;a href=&quot;{{ site.url }}{{ post.url | escape }}&quot; title=&quot;Permalink for this post&quot;&gt;&amp;#8734;&lt;/a&gt;
&lt;a href=&quot;{{ site.baseurl }}{{ post.url | escape }}&quot; title=&quot;Permalink for this post&quot;&gt;&amp;#8734;&lt;/a&gt;
{% endif %}
&lt;hr /&gt;

View File

@ -3,6 +3,11 @@ layout: base
title: Goodies
description: All the goodies I've released for you to download. Those are all free for your personal use only, licensed under CC BY NC SA 3.0. Please contact me if you want to use them commercially.
category: goodies
redirect_from:
- /goodies/icon/
- /goodies/other/
- /goodies/wallpaper/
- /topics/goodies/
---
<section role="main" id="main" class="row">

View File

@ -1,6 +1,12 @@
---
layout: base
front_page: true
redirect_from:
- /blog/
- /topics/howto-and-tutorial/
- /howto-and-tutorial/
- /most-popular-stuff-on-kremaliciouscom-in-2008/
- /canon-eos-50d-officially-announced-and-new-lens/
---
{% if paginator.next_page == 2 %}

View File

@ -6,4 +6,4 @@ Disallow: /search/
Disallow: /page/
Disallow: /*/page/
Sitemap: {{ site.url }}/sitemap.xml
Sitemap: {{ site.baseurl }}/sitemap.xml