Ensure there's a
syntaxdirectory in the personal vim directory.mkdir -p ~/.vim/syntaxDownload the markdown syntax file and put it in this directory (e.g.
markdown.vim).Affect the
markdownfiletype to*.mdwnfiles and avoid long lines (in~/.vimrc)." Help autodetection augroup filetypedetect au! BufRead,BufNewFile *.mdwn setfiletype markdown augroup END " Limit the line length for this mode autocmd FileType markdown set tw=80Enjoy.
Thanks to ebzao, I'm back on the internets. :-)
To use ikiwiki with a remote host, just do the following:
put
ikibiki.giton the server;put the following in
ikibiki.git/.git/hooks/post-receiveand make it executable (it looks like settingGIT_DIRis mandatory to have run successfully whenpushing, although locally or over throughssh, everything seems fine without it...):export GIT_DIR=~/ikibiki.git/.git cd $GIT_DIR/.. git checkout -f # Update this repository ikiwiki --setup ikiwiki.setup # Update the HTML pages echo 'HTML update: done!' # Notify the 'push'-ergit-cloneon the local host;edit/patch/...
git-push
And now the site gets automatically updated some seconds after a push.
(Note to self: a code block inside a list needs to be indented twice.)
Logo added at the top of the page.
Idea taken from http://ikiwiki.info/logo/, and adapted with a random font. To
get a PNG file from the SVG one, just create a group with the appropriate
objects, named it say kibilogo, and then call:
inkscape -w 150 -i kibilogo -e logo.png logo.svg
A bit of CSS later, that's done.
Summary of my setup
Install ikiwiki
Choose a hierarchy for the blog entries. It is
blog/$year/$month/$day/$title.mdwnright now, and tags are stored undertags/.Enable some plugins. Currently:
sidebar: integrate a menu bar on each page;
tag: ease the creation of tags and links;
pagestats: needed to generate automatically the list of the tags;
prettydate: specify a string format for the Posted/Last edited dates;
shortcut: enable many interesting shortcuts like
[[debbug NNNNNN]]or[[debpkg package]].
Create some placeholders:
index.mdwn;tags.mdwn;tags/*.mdwn(one for each tag),
Write a configuration file:
ikiwiki.setup, enabling these plugins, and containing some basic information like origin and target directories.To do:
- learn the syntax for real;
- automate the creation of
index.mdwnplaceholders underblog/$year,blog/$year/$month, and so on. Extend a module to do so? - poke the author of the calendar plugin so as to get the code;
- report that shortcuts containing slashes aren't working;
- integrate it in git.