Cleanup _meta.twig and fix issue #2274

- Correct quite some html errors
- Use atrr macro to make code more readable
- Fix issue #2274
- Add timemoment() macro
- Add ``selected`` to the list of tag attributes where the value is the name (on ``true`` it's gets ``selected="selected"``)