Skip to content

Commit

Permalink
Add an Events page (#81)
Browse files Browse the repository at this point in the history
* Add basic event page

* Update layout and CSS

* Add Events main page

* Add unitedctf file

* Add support to events logos

* Add unitedctf logo

* Add an empty line at the end of css file
  • Loading branch information
ctmbl authored Sep 17, 2024
1 parent 21da5e8 commit 5e39432
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@
height: 1.1em;
order: 2;
}

.iscsc-lastmod {
color: gray; /* Not great... TO BE CHANGED */
font-style: italic;
font-size: 0.8rem;
}

.iscsc-event-logo {
display: inline-block;
max-width: 20rem;
}
1 change: 1 addition & 0 deletions src/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ capitalizelisttitles = false # respect list title case; ex with author: ctmbl s
# Limit: If the files should be listed, how many should be shown.
menu = [
{Name = "About", URL = "/about/", HasChildren = false},
{Name = "Events", URL = "/events/", HasChildren = false},
{Name = "Resources", URL = "/resources", HasChildren = false},
{Name = "Posts", URL = "/posts/", Pre = "Recent", HasChildren = true, Limit = 5},
]
Expand Down
47 changes: 47 additions & 0 deletions src/content/events/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: "Events"
date: 2024-09-11T11:24:43+0000
lastmod: 2024-09-11T11:24:43+0000
draft: false
---

> :hammer_and_wrench: **WIP** :hammer_and_wrench: :
> This page is still a **W**ork-**I**n-**P**rogress
> More events, finer look and chronological order should come soon...
> (hopefully :heart:)
CTFs, conferences, forums, etc: basically every online or on-site event we attended or plan to attend to!

<!--more-->

## Other events

- THCon:
- https://thcon.party/
- https://discord.gg/gH9tErEy
- 404CTF:
- https://www.404ctf.fr/
- https://discord.com/invite/j8KECppcGw
- FCSC:
- https://france-cybersecurity-challenge.fr/
- https://discord.com/invite/P8rpVNZ
- Breizh CTF
- all HTB CTF
- Deadface
- niteCTF
- Break The Code
- Midnight Flag
- Midnight Sun
- HS’R:
- https://www.hacksecureims.eu/
- WOCS’Hack
- Stranger Case
<!--
- SECCON CTF
- ENISA ?
- ECSC ?
- Cracks CTF ?
-->

a link is down? an information is incorrect?
please open an issue on https://github.com/iScsc/blog.iscsc.fr/issues/new
Binary file added src/content/events/unitedctf-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/content/events/unitedctf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "UnitedCTF"
image: "unitedctf-logo.png"
---

| Type | Name | Date | Details | Links |
| ----------- | ----------- | --- | --- | --- |
| CTF | UnitedCTF | 13-20 Septembre 2024 | online, solo, beginner / intermediate | [Discord](https://discord.gg/ENtN9zyP) / [Website](https://unitedctf.ca/) |

29 changes: 29 additions & 0 deletions src/layouts/events/events.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{ define "main" -}}
<div class="post">
{{ with .Site.GetPage "/events" }}
<h1 class="post-title">{{ .Title }}</h1>
<span class="iscsc-lastmod">updated on {{ .Lastmod | time.Format ":date_medium" }}</span>
{{ .Summary }}

{{ if .Pages }}
{{ range .Pages }}
<h2 class="post-title">{{ .Title }}</h2>
{{ if .Params.image }}
<p>
<img src="{{.Params.image}}" class="iscsc-event-logo"><br>
</p>
{{ end }}
{{ .Content }}
{{ end }}
{{ end }}

{{ (replace .Content .Summary "") | safeHTML }} <!-- VERY HACKY -->
<!-- HUGO v0.134 add .ContentWithoutSummary https://gohugo.io/methods/page/contentwithoutsummary/
which is better and should be used when updating HUGO-->

{{ end }}
{{ if (.Site.Params.listmonk) }}
{{ partial "post/listmonk_email_newsletters.html" . }}
{{ end }}
</div>
{{ end }}

0 comments on commit 5e39432

Please sign in to comment.