emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] HTML literal output


From: Larrabee Strow
Subject: [O] HTML literal output
Date: Mon, 28 Dec 2015 11:42:23 -0500

I am using orgmode to produce html for the Hugo static web site generator.  Hugo requires yaml at the top of the html file for configuration.  Previously (8.3beta) this worked by putting the yaml inside BEGIN_HTML blocks., but it does not work with version 8.3.2

org-mode Version 8.3.2

I am unable to get orgmode to pass literal "html" on export.

Input file:
-----------------------------------------------
#+STARTUP: showall expand
#+options: toc:nil
#+BEGIN_HTML
---
date: "2014-07-28"
title: "Testeight"
type: "page"
menu: "docs"
weight: 3
---
#+END_HTML

* Hello

This is the first line


html output file:
----------------------------------------------
<div class="HTML">
<p>
&#x2014;
date: "2014-07-28"
title: "Testeight"
type: "page"
menu: "docs"
weight: 3
&#x2014;
</p>

etc.

In orgmode 8.3beta this worked.  I got the html export file below

---
date: "2014-07-28"
title: "Testeight"
type: "page"
menu: "docs"
weight: 3
---

<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Hello</h2>
<div class="outline-text-2" id="text-1">
<p>
This is the first line
</p>
</div>
</div>


Also, is there any way to make "Body only:" on as the default in the exporter menu?  I do not want to use publish.

Thank you.

Larrabee

------------------------------------------
L. Larrabee Strow
UMBC Physics Department
Phone: 724-288-6933

reply via email to

[Prev in Thread] Current Thread [Next in Thread]