Skip to content

Commit

Permalink
feat: series pages, more orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-curry committed May 18, 2023
1 parent a572798 commit d8f0091
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 27 deletions.
17 changes: 13 additions & 4 deletions archetypes/organizations.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
---
title: "{{ replace .Name "-" " " | title }}"
ref_icon: images/myicon.png
url_discord:
url: https://discord.gg/invite/yo
id: 109539086355261111
url_facebook: https://facebook.com/ok
links:
discord:
url: https://discord.gg/invite/yo
id: 109539086355261111
facebook:
url: https://facebook.com/ok
startgg:
url: https://start.gg/hubs
twitter:
url: https://twitter.com/
twitch:
url: https://twitch.tv/
url_codeofconduct: https://mywebsite.com/code-of-conduct
email: my@email.com
---

Talk about your organization here.
9 changes: 9 additions & 0 deletions assets/styles/theme/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ ul {
display: flex;
border-bottom: solid 1px $color-tertiary;

&.ml > :first-child {
margin-left: 1rem;
border-left: solid 1px $color-tertiary;
}

i {
margin-right: 0.25rem;
}
Expand Down Expand Up @@ -75,3 +80,7 @@ img.banner {
overflow: hidden;
object-fit: cover;
}

.p1 {
padding: 1rem;
}
2 changes: 0 additions & 2 deletions assets/styles/theme/events.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ main ul.events {

.block-date {
flex: 0 0 4rem;
border-left: solid 1px $color-tertiary;
margin-left: 1rem;
margin-right: 0.5rem;
}

Expand Down
7 changes: 6 additions & 1 deletion assets/styles/theme/orgs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main .organizations {
justify-content: space-between;
align-items: center;
width: 100%;
// border-bottom: solid 1px $color-tertiary;
border-bottom: solid 1px $color-tertiary;

.title {
height: 100%;
Expand Down Expand Up @@ -44,6 +44,7 @@ main .organizations {
padding-right: 1rem;
padding-left: 1rem;
text-align: center;
min-width: 3rem;

i {
margin-right: 0;
Expand All @@ -56,5 +57,9 @@ main .organizations {
max-height: 6rem;
}
}

summary {
padding: 1rem;
}
}
}
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ events = '/:section/:year/:month/:slug'
date = ['date', 'start_date']

[taxonomies]
# series = 'series' # To be enabled later, to generate lists of related events
event-series = 'series'
2 changes: 1 addition & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ sitemap:
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.
Welcome to the home of the KCFGC! This is a directory of events, organizations, and community-made content created for and organized by fighting game players in the greater Kansas City area.
1 change: 1 addition & 0 deletions content/events/2023-05-23-magic-pixel-weekly.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ref_banner: https://images.start.gg/images/tournament/549640/image-f8cedeef17b8a
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
series: Magic Pixel Weekly
---

Event will be hosted at a new location, right next to Game Cafe. Door says "Kreative Caviar".
Expand Down
24 changes: 20 additions & 4 deletions content/organizations/magic-pixel.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
---
title: Magic Pixel
ref_icon: images/mp_icon.png
url_discord:
url: https://discord.gg/jkmn6CVrrQ
id: 095390863552688268
url_facebook: https://ok.now
links:
discord:
url: https://discord.gg/invite/yo
id: 109539086355261111
facebook:
url: https://facebook.com/ok
startgg:
url: https://start.gg/hubs
twitter:
url: https://twitter.com/
twitch:
url: https://twitch.tv/
url_codeofconduct: ref . "magic-pixel-code-of-conduct.md"
email: magic.pixel@kcfgc.com
summary: Magic Pixel is a collective of fighting game players committed to providing an inclusive and welcoming place to play for everyone. We currently run the Magic Pixel Weekly event every Tuesday.
---

Magic Pixel is a collective of fighting game players committed to providing an inclusive and welcoming place to play for everyone.

## Events and Schedule

We currently run the [Magic Pixel Weekly]({{< ref "/series/magic-pixel-weekly" >}}) event every Tuesday.
2 changes: 1 addition & 1 deletion layouts/partials/events-li.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<li class="event content-item">
<li class="event content-item ml">
{{ partial "block-date.html" .Params.start_date }}
<div class="desc">
<a class="title" href="{{ .RelPermalink }}"><h3>{{ .Title }}</h3></a>
Expand Down
18 changes: 5 additions & 13 deletions layouts/partials/orgs-li.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,11 @@
<div class="title">
<a href="{{ .RelPermalink }}"><h1>{{ .Title }}</h1></a>
<div class="links">
{{ with .Params.url_discord }}
{{ $url := .url }}
{{ if $url }}
<a href="{{ $url }}">
<i class="fa-brands fa-discord" title="Discord"></i>
</a>
{{ end }}
{{ end }}
{{ with .Params.url_facebook }}
<a href="{{ . }}"><i class="fa-brands fa-facebook"></i></a>
{{ end }}
{{ with .Params.url_facebook }}
<a href="{{ . }}"><i class="fa-brands fa-facebook"></i></a>
{{ range $link_key, $link_value := .Params.links }}
{{ $title := humanize $link_key }}
<a href="{{ $link_value.url }}">
<i class="fa-brands fa-{{ $link_key }}" title="{{ $title }}"></i>
</a>
{{ end }}
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions layouts/series/term.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ define "main" }}
<main aria-role="main">
<h1>{{ .Title }}</h1>
<ul class="events">
{{ range (.Pages.ByParam "start_date") }}
{{ partial "events-li.html" . }}
{{ end }}
</ul>
</main>
{{ end }}
12 changes: 12 additions & 0 deletions layouts/series/terms.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ define "main" }}
<main aria-role="main">
<h1>Event Series</h1>
<ul>
{{ range .Pages }}
<li class="content-item ml">
<a class="p1" href="{{ .RelPermalink }}"><h3>{{ .Title }}</h3></a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

0 comments on commit d8f0091

Please sign in to comment.