Skip to main content
Prime Direction

The Week Ahead

The Week Ahead is written as a page in the Ghost editor. Morrow reads its headings and lists and builds a strip of days, a large card for the key event with a countdown, and the other events by day.

Setup Instructions#

  1. Go to Pages and click New page
  2. Enter the heading as the title, for example The week ahead
  3. Open Page settings and change Page URL to agenda
  4. Optionally, add a feature image. It is the picture of the key event
  5. Optionally, write the dates of the week in the Excerpt field, for example Nov 23 to Nov 27. Without it, the first and last day are shown
  6. Write the agenda in the body, as shown in the next part
  7. Click Publish

Writing the Agenda#

Write a heading for each day and a bulleted list under it. Each item is one event.

PartHow to write itNeeded
DateIn bold, firstYes
TimeNormal text, as in 09:00No. Without it the event takes the whole day
DeskIn codeNo
EventNormal textYes
Key eventPut the event's text in italicsOne event at most
LinkA link on the event's textNo

The finished body reads like this, with bold in **, code in backticks and italics in *:

## Monday

- **Nov 23** 09:00 `Markets` Quarter-end desks reopen
- **Nov 23** 13:00 `Science` Control room publishes its log

## Wednesday

- **Nov 25** 07:00 `Cities` *Four cities move their heating peak by an hour*
- **Nov 25** `Business` The warehouse reports its first quarter

A date is a day and a month, in either order. The month can be in English or in the site's language, short or long, as in Nov 25, 25. November or 25 de noviembre. No year is needed. A date that lies more than half a year back is read as next year's.

Times are read in the site's timezone from ⛭ Settings → General, and the countdown and the calendar file use it too.

What Readers See#

  • The strip of days. One button per day with its date and number of events. Today and the day of the key event are marked, and days that are over are dimmed. A click on a day marks its cards and brings them into view. A day the column beside the key event does not show in full, such as a day that is over, takes the column's place with all of its events. When the strip is wider than the screen, two arrows move it a day at a time.
  • The key event. A large dark card with the page's picture, the day and time, the event and a countdown in days, hours and minutes. Without an event in italics, the next one to come takes the place, labelled Next up. Once the key event is over, the next event to come takes the card. When nothing is left to come, the card keeps the key event, marked Over.
  • The button of the key event. When the event has a link, the card shows a button. It reads Follow live when the link leads to your /live/ page and Follow the story otherwise.
  • What is still to come. Beside the key event, today's and the next days' events that are not over yet, four at most, grouped by day.
  • Add the week to your calendar. A link that saves the events still to come as an .ics file, which calendar apps open. An event with a time is entered as one hour long.

An event with a time is over an hour after it starts, and one without a time at the end of its day. An event that is over leaves the column.

After the Week#

Once every event is over, the section leaves the front page by itself. The page at /agenda/ keeps showing the week that passed until you write the next one.

Notes#

  • The theme looks for the page by its slug, not its title. The Page URL must be exactly agenda.
  • The page's link, All events, opens /agenda/, which shows the same section as a page of its own. Text that is not a heading or a list is not shown on either.
  • An event whose date cannot be read is still shown, but it is never counted as over. The section then stays on the front page until you remove it.