* `C-c = n` - Insert a post or page header
* `C-c = p` - Remove draft status from a post (i.e. publish it)
* `C-c = u` - Upload a site using rsync (equivalent to `make rsync_upload`)
+* `C-c = g` - Upload a site to GitHub Pages (equivalent to `make github`)
## Troubleshooting
(define-key map (kbd "n") #'pelican-mode-insert-header)
(define-key map (kbd "p") #'pelican-mode-publish)
(define-key map (kbd "u") #'pelican-make-rsync-upload)
+ (define-key map (kbd "g") #'pelican-make-github)
map)
"Keymap for Pelican commands after ‘pelican-mode-keymap-prefix’.")
(fset 'pelican-mode-command-map pelican-mode-command-map)
(interactive)
(pelican-make "rsync_upload"))
+(defun pelican-make-github ()
+ "Upload to GitHub Pages via a Makefile at the root of the site."
+ (interactive)
+ (pelican-make "github"))
+
\f
(defun pelican-mode-set-fields (&rest fields)