(setq org-publish-project-alist
      '(("org-site"
         :base-directory "~/sandbox/org-site/"
         :base-extension "org"
         :publishing-directory "/ssh:user@hosting.com:~/public_html/"
         :recursive t
         :publishing-function org-html-publish-to-html
         :auto-preamble nil
         :html-head "<link rel=\"stylesheet\" href=\"https://wal.sh/static/css/global.css\" type=\"text/css\"/>"
         :html-preamble t
         :auto-sitemap t
         )

        ("org-static"
         :base-directory "~/sandbox/org-site/"
         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|txt\\|coffee\\|es6"
         :publishing-directory "/ssh:user@hosting.com:~/public_html/"
         :recursive t
         :publishing-function org-publish-attachment
         )

        ("all" :components ("org-site" "org-static"))))

Author: Jason Walsh

Created: 2016-11-01 Tue 12:13

Validate