Next: , Previous: Publishing Planner pages, Up: Publishing


6.9.2 Publishing Calendars

To publish calendars in your day pages, it is necessary to do two steps.

To display a calendar based on a different day (given here as DAYPAGE), use <calendar page="DAYPAGE">.

To get arrows to previous and next months to show up, use <calendar arrows="t">. The text in planner-calendar-prev-month-button and planner-calendar-next-month-button will be used for the arrows to the previous and next months, respectively.

By default, Muse will not display the arrows properly, due to limitations in the special-escaping algorithm. To work around this, remove the ‘&’ rule from muse-xml-markup-specials, or from muse-html-markup-specials if you are using the 3.02.6 version of Muse.

It is also possible to create a symlink from the current day page to the page name specified by planner-calendar-today-page-name. To accomplish this, add the following to your configuration.

     (eval-after-load "muse-publish"
       '(add-hook 'muse-after-publish-hook
                  'planner-calendar-create-today-link))

Options

— User Option: planner-calendar-prev-month-button

HTML text used for previous month buttons.

— User Option: planner-calendar-next-month-button

HTML text used for next month buttons.

— User Option: planner-calendar-day-header-chars

Number of characters to use for day column header names.

— User Option: planner-calendar-today-page-name

Default name for published today page link.

Functions

— Function: planner-calendar-create-today-link

Add this function to muse-after-publish-hook to create a “today” soft-link to the newest published planner day page, on operating systems that support POSIX ln.