Next: LaTeX, Previous: Ikiwiki, Up: Publishing Styles
The module facilitates the keeping and publication of a journal. When publishing to HTML, it assumes the form of a web log, or blog.
The input format for each entry is as follows.
* 20040317: Title of entry
text for the entry.
<qotd>
"You know who you are. It comes down to a simple gut check: You
either love what you do or you don't. Period." -- P. Bronson
</qotd>
The "qotd", or Quote of the Day, is entirely optional. When generated to HTML, this entry is rendered as the following.
<div class="entry">
<div class="entry-qotd">
<h3>Quote of the Day:</h3>
<p>"You know who you are. It comes down to a simple gut
check: You either love what you do or you don't. Period."
-- P. Bronson</p>
</div>
<div class="entry-body">
<div class="entry-head">
<div class="entry-date">
<span class="date">March 17, 2004</span>
</div>
<div class="entry-title">
<h2>Title of entry</h2>
</div>
</div>
<div class="entry-text">
<p>Text for the entry.</p>
</div>
</div>
</div>
The plurality of "div" tags makes it possible to display the entries in any form you wish, using a CSS style.
Also, an .RDF file can be generated from your journal by publishing it with the "rdf" style. It uses the first two sentences of the first paragraph of each entry as its "description", and auto-generates tags for linking to the various entries.
If you wish to publish an RDF or RSS feed, it is important to include
the :base-url attribute in your muse-project-alist entry
for your Journal projects. An example follows.
(setq muse-project-alist
'(("Journal" ("~/Journal/"
:default "journal")
(:base "journal-rss"
:base-url "http://example.org/journal/"
:path "~/public_html/journal"))))
journal-htmljournal-xhtmljournal-latexjournal-pdfjournal-book-latexjournal-book-pdfjournal-rdfjournal-rssjournal-rss-entryjournal-rss and journal-rdf for
publishing individual entries.
muse-journal-heading-regexpParen group 1 is the ISO date, group 2 is the optional category, and
group 3 is the optional heading for the entry.
muse-journal-date-formatmuse-journal-html-heading-regexpParen group 1 is the ISO date, group 2 is the optional category, and
group 3 is the optional heading for the entry.
muse-journal-html-entry-templateThis may be text or a filename.
muse-journal-latex-sectionmuse-journal-latex-subsectionmuse-journal-markup-tagsSee muse-publish-markup-tags, for more information.
This is used by journal-latex and its related styles, as well as
the journal-rss-entry style, which both journal-rdf and
journal-rss use.
muse-journal-rdf-extensionmuse-journal-rdf-base-urlmuse-journal-rdf-headerThis may be text or a filename.
muse-journal-rdf-footerThis may be text or a filename.
muse-journal-rdf-date-formatmuse-journal-rdf-entry-templateThis may be text or a filename.
muse-journal-rdf-summarize-entriesThe default is nil, because this annoys some subscribers.
muse-journal-rss-heading-regexpParen group 1 is the ISO date, group 2 is the optional category,
and group 3 is the optional heading for the entry.
muse-journal-rss-extensionmuse-journal-rss-base-urlmuse-journal-rss-headerThis may be text or a filename.
muse-journal-rss-footerThis may be text or a filename.
muse-journal-rss-date-formatmuse-journal-rss-entry-templateThis may be text or a filename.
muse-journal-rss-enclosure-types-alistThis is an alist that maps file extension to content type.
Useful for podcasting.
muse-journal-rss-summarize-entriesThe default is nil, because this annoys some subscribers.
muse-journal-rss-markup-regexpsFor more information on the structure of this list,
See muse-publish-markup-regexps.
muse-journal-rss-markup-functionsFor more on the structure of this list, See muse-publish-markup-functions.