for file in *.gmi; do
    sed -i '1s/^/\=\> ..\/blog\/ ..\n/' $file
done