Add svg to the publishing
This commit is contained in:
parent
60d4b6b084
commit
10d4830f1a
1 changed files with 11 additions and 3 deletions
|
@ -30,10 +30,17 @@ While the Emacs community have a plethora of options for generating a static web
|
||||||
While the following packages come with Emacs, they aren't necessarily loaded:
|
While the following packages come with Emacs, they aren't necessarily loaded:
|
||||||
|
|
||||||
#+begin_src emacs-lisp :results silent
|
#+begin_src emacs-lisp :results silent
|
||||||
|
(require 'ox-html)
|
||||||
(require 'ox-rss)
|
(require 'ox-rss)
|
||||||
(require 'ox-publish)
|
(require 'ox-publish)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Render my code with my font colors:
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp :results silent
|
||||||
|
(use-package htmlize)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
Variable settings:
|
Variable settings:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-publish-project-alist nil ; filled in below
|
(setq org-publish-project-alist nil ; filled in below
|
||||||
|
@ -189,7 +196,7 @@ As above, we can separate the publishing of the images and other static files:
|
||||||
(add-to-list 'org-publish-project-alist
|
(add-to-list 'org-publish-project-alist
|
||||||
`("tech-notes-static"
|
`("tech-notes-static"
|
||||||
:base-directory "~/technical/"
|
:base-directory "~/technical/"
|
||||||
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
|
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg"
|
||||||
:publishing-directory ,(concat org-mode-publishing-directory "/other/")
|
:publishing-directory ,(concat org-mode-publishing-directory "/other/")
|
||||||
:recursive t
|
:recursive t
|
||||||
:publishing-function org-publish-attachment))
|
:publishing-function org-publish-attachment))
|
||||||
|
@ -220,7 +227,7 @@ I’ve been committing my literate-style Emacs configuration for years now, and
|
||||||
(add-to-list 'org-publish-project-alist
|
(add-to-list 'org-publish-project-alist
|
||||||
`("hamacs-static"
|
`("hamacs-static"
|
||||||
:base-directory "~/other/hamacs"
|
:base-directory "~/other/hamacs"
|
||||||
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
|
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg"
|
||||||
:publishing-directory ,(concat org-mode-publishing-directory "hamacs")
|
:publishing-directory ,(concat org-mode-publishing-directory "hamacs")
|
||||||
:recursive t
|
:recursive t
|
||||||
:publishing-function org-publish-attachment))
|
:publishing-function org-publish-attachment))
|
||||||
|
@ -252,7 +259,7 @@ I have an ADU on my property that I rent out through Airbnb. The place is full o
|
||||||
(add-to-list 'org-publish-project-alist
|
(add-to-list 'org-publish-project-alist
|
||||||
`("airbnb-static"
|
`("airbnb-static"
|
||||||
:base-directory "~/website/airbnb"
|
:base-directory "~/website/airbnb"
|
||||||
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
|
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg"
|
||||||
:publishing-directory ,(concat org-mode-publishing-directory "airbnb/")
|
:publishing-directory ,(concat org-mode-publishing-directory "airbnb/")
|
||||||
:recursive t
|
:recursive t
|
||||||
:publishing-function org-publish-attachment))
|
:publishing-function org-publish-attachment))
|
||||||
|
@ -303,6 +310,7 @@ Using =rsync= to keep published files in sync with my website:
|
||||||
((s-starts-with? "blog" project)
|
((s-starts-with? "blog" project)
|
||||||
'("Technical" "howardism"
|
'("Technical" "howardism"
|
||||||
"Personal" "howardism"
|
"Personal" "howardism"
|
||||||
|
"RPG" "howardism"
|
||||||
"index.html" "howardism"
|
"index.html" "howardism"
|
||||||
"about-me.html" "howardabrams"))
|
"about-me.html" "howardabrams"))
|
||||||
((s-starts-with? "tech" project) '("" "howardabrams"))
|
((s-starts-with? "tech" project) '("" "howardabrams"))
|
||||||
|
|
Loading…
Reference in a new issue