** COMMENT publishing This code is used to publish this page to the cs.unm.edu webserver. For more information on publishing Org-mode pages see the [[http://orgmode.org/manual/Publishing.html#Publishing][Publishing section]] of the [[http://orgmode.org/manual/index.html#Top][Org-mode manual]]. #+begin_src emacs-lisp :results silent (setq homepage-dir (file-name-directory (or load-file-name buffer-file-name))) (unless (boundp 'org-publish-project-alist) (setq org-publish-project-alist nil)) ;; the main html page (add-to-list 'org-publish-project-alist `("homepage-html" :base-directory ,homepage-dir :base-extension "org" :publishing-directory "/ssh:username@web-server:~/public_html/" :html-postamble ; replaces the auto-generated postamble "
custom-postamble " :style "")) ;; the contents of the data/ directory, css, images, etc... (add-to-list 'org-publish-project-alist `("homepage-data" :base-directory ,(expand-file-name "data" homepage-dir) :base-extension "jpg\\|gif\\|png\\|pdf\\|css\\|bib" :publishing-directory "/ssh:username@web-server:~/public_html/data/" :publishing-function org-publish-attachment)) ;; a single combined project to publish both html and supporting materials (add-to-list 'org-publish-project-alist '("homepage" :components ("homepage-html" "homepage-data"))) #+end_src