only show preview button for markdown and html files in _posts or _drafts