Refactor templates. Add support for Twitter summary.