Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
linebreaks in readme.
  • Loading branch information
stefanfriedrich authored Sep 18, 2016
1 parent 60e4c58 commit 1bc5d60
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Go to Settings > Plugins from your Craft control panel and enable the Date2Calen

## Usage

Simple usage if your entryfields for the event are named like this:
entry.start
entry.end
entry.title
entry.description
entry.location
Simple usage if your entryfields for the event are named like this:
entry.start
entry.end
entry.title
entry.description
entry.location

If so, use this:
```jinja
Expand All @@ -38,8 +38,8 @@ In return you'll get an url that creates an entry in Google Calendar when called

## Options

{{ entry | date2calendar }} => returns the link for google calendar
{{ entry | date2calendar('GC') }} => returns the link for google calendar
{{ entry | date2calendar('ICS') }} => downloads an ics-file for outlook, ical, whatever..
{{ entry | date2calendar('GC', +2) }} => returns the link for google calendar with the date plus 2 hours
{{ entry | date2calendar('ICS', -2) }} => returns the link for google calendar with the date minus 2 hours
{{ entry | date2calendar }} => returns the link for google calendar
{{ entry | date2calendar('GC') }} => returns the link for google calendar
{{ entry | date2calendar('ICS') }} => downloads an ics-file for outlook, ical, whatever..
{{ entry | date2calendar('GC', +2) }} => returns the link for google calendar with the date plus 2 hours
{{ entry | date2calendar('ICS', -2) }} => returns the link for google calendar with the date minus 2 hours

0 comments on commit 1bc5d60

Please sign in to comment.