From: Ian Barton <lists@manor-farm.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Html Exporter Suppressing Blank Lines at Start
Date: Sat, 21 Nov 2009 18:42:54 +0000 [thread overview]
Message-ID: <4B0834AE.4070804@manor-farm.org> (raw)
In-Reply-To: <0A60C9E6-922F-44A7-9FD0-6D71BA828E23@gmail.com>
> Hmmm, when I do this export, I get a full html file, with header and
> all, and he first "---" as the <h1> title of the document.
>
> Could you please tell in more detail what you mean?
>
> Thanks.
>
> - Carsten
>
> On Nov 21, 2009, at 5:12 PM, Ian Barton wrote:
>
>> I am playing with Jekyll as a possible blogging solution for org. So
>> far it looks good, but there is one small problem. You can use yaml in
>> your html, but it has to be the very first thing in the file:
>>
>> In my org file I have:
>>
>> #+STARTUP: showall indent
>> #+STARTUP: hidestars
>> #+BEGIN_HTML
>> ---
>> layout: default
>> title: Benighted on the Ben.
>> ---
>> #+END_HTML
>>
>> It was early January when six of us travelled up to
>>
>>
>> When I export to html I end up with two blank lines at the top of the
>> file above the first ---. Is there a way to get the html exporter not
>> to insert those two blank lines?
>>
Sorry, I should have provided more detail. Here is the relevant part of
my org-publish-project-alist.
("org-ianbarton"
:base-directory "~/devel/ianbarton/org/"
:base-extension "org"
:publishing-directory "~/devel/ianbarton/jekyll/"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this
project.
:html-extension "html"
:body-only t
)
("org-static-ian"
:base-directory "~/devel/ianbarton/org/"
:base-extension
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
:publishing-directory "~/devel/ianbarton/"
:recursive t
:publishing-function org-publish-attachment)
("ian" :components ("org-ianbarton" "org-static-ian"))
Ian.
next prev parent reply other threads:[~2009-11-21 18:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-21 16:12 Html Exporter Suppressing Blank Lines at Start Ian Barton
2009-11-21 17:58 ` Carsten Dominik
2009-11-21 18:42 ` Ian Barton [this message]
2009-11-21 19:53 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0834AE.4070804@manor-farm.org \
--to=lists@manor-farm.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).