Skip to content

Commit

Permalink
feat: generate sitemap and robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-curry committed May 18, 2023
1 parent 22aeced commit c9a2bf5
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 13 deletions.
20 changes: 18 additions & 2 deletions assets/styles/theme/events.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@ main ul.events {
}
}

summary {
summary,
details {
padding-top: 0.5rem;
padding-bottom: 0.5rem;

& > summary {
padding-top: 0;
padding-bottom: 0;
}
}

footer {
Expand Down Expand Up @@ -115,6 +121,11 @@ main#event-single {
display: flex;
align-items: center;
padding: 1rem;

@media screen and (min-width: 1025px) {
flex: 1;
border-right: solid 1px $color-tertiary;
}
}
}

Expand All @@ -138,6 +149,7 @@ main#event-single {

@media screen and (min-width: 1025px) {
grid-column: 1 / 7;
border-right: solid 1px $color-tertiary;
}
}

Expand All @@ -161,11 +173,15 @@ main#event-single {
}

& > li {
height: 100%;
min-height: 2rem;
padding: 0.5rem;
border-bottom: solid 1px $color-tertiary;
border-left: solid 1px $color-tertiary;

@media screen and (min-width: 1025px) {
border-left: none;
}

&,
& > span {
display: flex;
Expand Down
6 changes: 6 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
baseURL = 'https://kcfgc.github.io/'
enableGitInfo = true
enableRobotsTXT = true
languageCode = 'en-us'
summaryLength = 30
title = 'Kansas City Fighting Game Community Resources'

[permalinks]
events = '/:section/:year/:month/:slug'

[frontmatter]
date = ['date', 'start_date']

[taxonomies]
# series = 'series' # To be enabled later, to generate lists of related events
3 changes: 3 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Home
menu:
main:
weight: 1
sitemap:
changefreq: daily
priority: 1
---

The KCFGC Resources directory contains events, organizations, and community-made content created for and organized by fighting game players in the greater Kansas City area.
3 changes: 3 additions & 0 deletions content/events/2023-05-15-magic-pixel-weekly.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
# TEST EVENT
title: Magic Pixel Weekly 1
series: Magic Pixel Weekly
ref_org: /organizations/magic-pixel.md
ref_banner: images/mp_banner.png
ref_icon: images/mp_icon.png
url_startgg: https://start.gg/tournament
# address: 1234 Local St, Kansas City, MO 64111
start_date: 2023-05-18T19:00:00-0500
end_date: 2023-05-19T00:00:00-0500
expiryDate: 2023-04-19T00:00:00-0500
---

Description of event 1
3 changes: 3 additions & 0 deletions content/events/2023-05-22-magic-pixel-weekly.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# TEST EVENT
title: Magic Pixel Weekly 2
event_series: Magic Pixel Weekly
ref_org: /organizations/magic-pixel.md
ref_icon: https://images.start.gg/images/tournament/549640/image-0575d4021ce125beefcfaf7b0998087b.png?ehk=%2F0dtM6T0PFQogR%2Fzwp2T8Fx5oRHlMWJ5q%2BdfHwn4068%3D&ehkOptimized=FhJt9E2lHRd5rfW1cgn9NrWZHgaqxrsIojx8WOIGlXI%3D
ref_banner: https://images.start.gg/images/tournament/549640/image-f8cedeef17b8a77b39d19d470dd7a936.png?ehk=HyMONy3HK3j7N9oT2FxE7LJeQYx5a4c1783CE8i3CwM%3D&ehkOptimized=ZvqVgskgkvGmskZanCK55gMJCSG91rZhuonlgdI1xXs%3D
Expand All @@ -8,6 +10,7 @@ participant_count: 20
address: 1234 Local St, Kansas City, MO 64111
start_date: 2023-05-22T19:00:00-0500
end_date: 2023-05-23T00:00:00-0500
expiryDate: 2023-04-19T00:00:00-0500
---

Description of event 2
15 changes: 15 additions & 0 deletions content/events/2023-05-23-magic-pixel-weekly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
# TEST EVENT
title: Magic Pixel Weekly
ref_org: /organizations/magic-pixel.md
# url_startgg: https://start.gg/tournament
ref_icon: https://images.start.gg/images/tournament/549640/image-0575d4021ce125beefcfaf7b0998087b.png?ehk=%2F0dtM6T0PFQogR%2Fzwp2T8Fx5oRHlMWJ5q%2BdfHwn4068%3D&ehkOptimized=FhJt9E2lHRd5rfW1cgn9NrWZHgaqxrsIojx8WOIGlXI%3D
ref_banner: https://images.start.gg/images/tournament/549640/image-f8cedeef17b8a77b39d19d470dd7a936.png?ehk=HyMONy3HK3j7N9oT2FxE7LJeQYx5a4c1783CE8i3CwM%3D&ehkOptimized=ZvqVgskgkvGmskZanCK55gMJCSG91rZhuonlgdI1xXs%3D
address: 109 W Lexington Ave, Independence, MO 64050, USA
start_date: 2023-05-23T19:00:00-0500
end_date: 2023-05-24T00:00:00-0500
---

Event will be hosted at a new location, right next to Game Cafe. Door says "Kreative Caviar".
Brackets will be run for posted main games, with a payout for top 3. Free side brackets will be run some weeks, depending on interest/availability (if you're interested in running a side bracket, come talk to a TO!).
Please bring a setup if you're able! Casual matches are welcome all night, but bracket matches will be prioritized.
4 changes: 3 additions & 1 deletion content/events/2023-05-29-magic-pixel-weekly.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
# TEST EVENT
title: Magic Pixel Weekly 3
ref_org: /organizations/magic-pixel.md
url_startgg: https://start.gg/tournament
address: 1234 Local St, Kansas City, MO 64111
start_date: 2023-05-29T19:00:00-0500
end_date: 2023-05-30T00:00:00-0500
expiryDate: 2023-04-19T00:00:00-0500
---

Description of event 3
Description of event 3
4 changes: 3 additions & 1 deletion content/events/2023-06-03-magic-pixel-weekly.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
# TEST EVENT
title: Magic Pixel Weekly 4
ref_org: /organizations/magic-pixel.md
url_startgg: https://start.gg/tournament
address: 1234 Local St, Kansas City, MO 64111
start_date: 2023-06-03T19:00:00-0500
end_date: 2023-06-04T00:00:00-0500
expiryDate: 2023-04-19T00:00:00-0500
---

Description of event 4
Description of event 4
3 changes: 3 additions & 0 deletions content/events/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Events
menu:
main:
weight: 20
sitemap:
changefreq: daily
priority: 0.8
---

# All Events
9 changes: 1 addition & 8 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,4 @@
{{ end }}
</ul>
</main>
{{ end }}
{{ define "footer" }}
<footer id="main-footer">
<div>
Site operated by <a href='{{ (.Site.GetPage "/organizations/magic-pixel.md").RelPermalink }}'>Magic Pixel</a>...
</div>
</footer>
{{ end}}
{{ end }}
3 changes: 3 additions & 0 deletions layouts/events/single.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{{ define "title" }}
{{ .Title }} - {{ time.Format ":date_short" .Params.start_date }}
{{ end }}
{{ define "main" }}
<main aria-role="main" id="event-single">
{{ with .Params.ref_banner }}
Expand Down
9 changes: 8 additions & 1 deletion layouts/partials/events-li.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
{{ partial "block-date.html" .Params.start_date }}
<div class="desc">
<a class="title" href="{{ .RelPermalink }}"><h3>{{ .Title }}</h3></a>
<summary>{{ .Summary }}</summary>
{{ if .Truncated }}
<details>
<summary>{{ .Summary }} (more...)</summary>
{{ replace (plainify .Content) .Summary "" | plainify | safeHTML }}
</details>
{{ else }}
<summary>{{ .Summary }}</summary>
{{ end }}
<footer>
{{ with (.Params.address) }}<a class="address" href='https://www.google.com/maps/search/{{ . }}'><i class="fa-solid fa-location-dot"></i><span>{{ . }}</span></a>{{else}}<span></span>{{ end }}
{{ with (.Params.url_startgg) }}<a href="{{ . }}" class="start-gg"><img src="/images/start-gg-icon.svg" alt="start.gg" width="16px" /></a>{{ end }}
Expand Down

0 comments on commit c9a2bf5

Please sign in to comment.