generated from sylhare/Type-on-Strap
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from netz39/6-page-veranstaltungenkalender
Add built-in calender by using fullcalendar.io
- Loading branch information
Showing
9 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
layout: event | ||
title: "Stammtisch KW42" | ||
event_date: 2023-10-18 | ||
--- | ||
|
||
Heute ist Stammtisch! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: default | ||
--- | ||
<article {% if page.feature-img or page.color %}class="feature-image" {% endif %}> | ||
<header id="main" style=""> | ||
<div class="title-padder"> | ||
{% if page.hide_title %} | ||
<div class="feature-image-padding"></div> | ||
{% else %} | ||
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1> | ||
{% include blog/post_info.liquid author=page.author date=page.event_date %} | ||
{% endif %} | ||
</div> | ||
</header> | ||
|
||
<section class="post-content"> | ||
{% if page.bootstrap %} | ||
<div class="bootstrap-iso"> | ||
{% endif %} | ||
{{ content }} | ||
{% if page.bootstrap %} | ||
</div> | ||
{% endif %} | ||
</section> | ||
|
||
<!-- Social media shares --> | ||
{% include social/share_buttons.liquid %} | ||
|
||
<!-- Tag list --> | ||
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %} | ||
{% include default/tags_list.liquid tags=tag_list %} | ||
|
||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,7 +157,6 @@ table { | |
word-wrap: break-word; | ||
table-layout: fixed; | ||
width: 100%; | ||
display: inline-block; | ||
} | ||
|
||
td, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: | ||
title: | ||
permalink: /calendar-data/ | ||
--- | ||
|
||
[ | ||
{% for event in site.events %} | ||
{ | ||
"title":"{{event.title}}", | ||
"start": "{{event.event_date}}", | ||
"allDay":true, | ||
"url":"{{event.url}}" | ||
} | ||
{%unless forloop.last %},{%endunless%} | ||
{% endfor %} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
layout: default | ||
title: Events | ||
permalink: /events | ||
icon: "far fa-calendar" | ||
--- | ||
|
||
<center> | ||
<h2 class="title"> <i class="far fa-calendar"></i> Events </h2> | ||
</center> | ||
|
||
<html lang='de'> | ||
<head> | ||
<meta charset='utf-8' /> | ||
<script src='/assets/js/vendor/fullcalendar/index.global.min.js'></script> | ||
<script src='/assets/js/vendor/fullcalendar/de.global.min.js'></script> | ||
<script> | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
var calendarEl = document.getElementById('calendar'); | ||
var calendar = new FullCalendar.Calendar(calendarEl, { | ||
initialView: 'dayGridMonth', height: "auto", locale: 'de', events: '/calendar-data' | ||
}); | ||
calendar.render(); | ||
}); | ||
|
||
</script> | ||
</head> | ||
<body> | ||
<div id='calendar' style="width:80%; margin: auto;"></div> | ||
</body> | ||
</html> |
File renamed without changes.