Skip to content

Commit

Permalink
Merge pull request #195 from mortendk/calendarlinks
Browse files Browse the repository at this point in the history
calendarlinks removed clutter from
  • Loading branch information
mortendk authored Oct 12, 2022
2 parents c395478 + a835d71 commit 44eeefe
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/system/11ty/shortcode/calendarlinks.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
const { google, outlook, office365, yahoo, ics } = require("calendar-link");

module.exports = function (
linktype = "google",
date_start,
date_end,
allday = false,
title,
description
) {
module.exports = function (linktype = "google", date_start, date_end, allday = false, title, description, location) {
const event = {
title: title,
description: description,
start: date_start,
end: date_end,
allDay: allday,
url: "https://sage11.dev/foobar",
location: location,
};

switch (linktype) {
Expand Down

0 comments on commit 44eeefe

Please sign in to comment.