#name : pelican article
# --
title: ${1:`(s-replace "-" " " (file-name-base (buffer-file-name)))`}
date: ${2:`(format-time-string "%Y-%m-%d" (current-time))`}
category: ${3:`(file-name-nondirectory
 (substring
  (file-name-directory (buffer-file-name))
  0
  (- (length (file-name-directory (buffer-file-name))) 1)
  ))`}
tags: ${4:`(file-name-nondirectory
 (substring
  (file-name-directory (buffer-file-name))
  0
  (- (length (file-name-directory (buffer-file-name))) 1)
  ))`}
$0
