From 424c68904e04b9d8b41ef30f140899c4ab8bb47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 6 May 2018 17:52:37 +0200 Subject: [PATCH] write about the markdown exporter --- doc/config.toml | 4 ++-- doc/content/post/hugo_export.md | 19 +++++++++++++++++++ doc/themes/project-landing-page | 2 +- readme.org | 17 +++++++++++++++++ 4 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 doc/content/post/hugo_export.md diff --git a/doc/config.toml b/doc/config.toml index fe1bf62..7da1354 100644 --- a/doc/config.toml +++ b/doc/config.toml @@ -1,10 +1,10 @@ baseURL = "https://titan-c.gitlab.io/org-cv/" languageCode = "en-us" -title = "Org CV backend export" +title = "Org CV" theme = "project-landing-page" [params] - description = "Org-mode backend exporters for CV" + description = "Org-mode backend exporters for Curriculum Vita" author_url = "http://blog.oscarnajera.com" author = "Titan-C" project_url = "https://gitlab.com/Titan-C/org-cv/" diff --git a/doc/content/post/hugo_export.md b/doc/content/post/hugo_export.md new file mode 100644 index 0000000..7a7bbe9 --- /dev/null +++ b/doc/content/post/hugo_export.md @@ -0,0 +1,19 @@ ++++ +title = "Markdown Hugo Exporter" +author = ["Óscar Nájera"] +draft = false +weight = 1005 ++++ + +If your target is not a PDF file but a website, this exporter extends the +[ox-hugo](https://ox-hugo.scripter.co/) exporter backend. So be sure to install that too. + +To export, there is nothing fancy to keep track of, but as an example I +exclude some tags during export. + +```emacs-lisp +(let ((org-export-exclude-tags '("noexport" "latexonly"))) + (org-export-to-file 'hugocv "hugocv.md")) +``` + +You are responsible for styling your website. diff --git a/doc/themes/project-landing-page b/doc/themes/project-landing-page index 6e6961e..b15f3a4 160000 --- a/doc/themes/project-landing-page +++ b/doc/themes/project-landing-page @@ -1 +1 @@ -Subproject commit 6e6961e79c564e8f5fd2132aaef3ee111aa14ad4 +Subproject commit b15f3a4cbaa1df6251708150b750f840f8e625c7 diff --git a/readme.org b/readme.org index ea1795a..9b3cb7b 100644 --- a/readme.org +++ b/readme.org @@ -211,6 +211,23 @@ When exporting you can call the following function to get the latex file. #+END_EXPORT +* Markdown Hugo Exporter + :PROPERTIES: + :EXPORT_FILE_NAME: hugo_export + :END: +If your target is not a PDF file but a website, this exporter extends the +[[https://ox-hugo.scripter.co/][ox-hugo]] exporter backend. So be sure to install that too. + +To export, there is nothing fancy to keep track of, but as an example I +exclude some tags during export. + +#+BEGIN_SRC emacs-lisp +(let ((org-export-exclude-tags '("noexport" "latexonly"))) + (org-export-to-file 'hugocv "hugocv.md")) +#+END_SRC + +You are responsible for styling your website. + * Local Variables :ARCHIVE: # Local Variables: