Skip to content

Commit

Permalink
Added skills to Renato
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Jul 23, 2024
1 parent d0b9fb2 commit 4df21f3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 30 deletions.
8 changes: 7 additions & 1 deletion data/team.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ skills = [
active = true
years = [2023, 2022]
role = "Member and Speaker"
category = "speaker"

[[members]]
name = "Eyad Issa"
Expand Down Expand Up @@ -100,11 +101,16 @@ active = false


[[members]]
nickname = "renny"
nickname = "Marspiter"
name = "Renato Eugenio Maria Marziano"
active = true
role = "Member, Ulisse Team @ CyberChallenge.IT 2024"
email = "[email protected]"
website = "https://marziano.top/"
years = [2023, 2024]

skills = ["Crypto", "Web", "Blockchain"]

[[members]]
name = "Alan Davide Bovo"
nickname = "Hecker404"
Expand Down
25 changes: 16 additions & 9 deletions layouts/partials/member.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
<div>
<h3>
{{- if and .name .nickname -}}
<code>{{- .nickname -}}</code> ({{- .name -}})
<span>{{- .name -}}</span> ({{- .nickname -}})
{{- else if .name -}}
{{- .name -}}
{{- else if .nickname -}}
<code>{{- .nickname -}}</code>
{{- .nickname -}}
{{- end -}}

{{- if .email }} | <a href="mailto:{{ .email }}" title="{{ .nickname }}'s email address">📧</a> {{- end -}}
{{- if .website }} | <a href=" {{ .website }}" title="{{ .nickname }}'s website">🌐</a> {{- end }}
</h3>
<p>
<div>
{{ with .role}}
<strong>Role: </strong>
<strong>Roles: </strong>
{{ . }}
{{ end }}

{{- if .email }} | <a href="mailto:{{ .email }}" title="{{ .nickname }}'s email address">📧</a> {{- end -}}

{{- if .website }} | <a href=" {{ .website }}" title="{{ .nickname }}'s website">🌐</a> {{- end }}

<br />

{{ with .skills }}
<strong>Skills: </strong>
<span> {{ delimit . ", " }} </span>
<div style="margin-top: 10px">
<strong>Skills: </strong>
<ul>
{{ range . }}
<li style="margin-top: 0;"> {{ . }} </li>
{{ end }}
</ul>
</div>
{{ end }}

</p>
</div>
</div>
36 changes: 16 additions & 20 deletions layouts/shortcodes/team.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,25 @@
{{- $inactive := where $team "active" false -}}

<div>
<h2>
Active members
</h2>
<h2 style="display: inline;"> Active members </h2>

<ul>
<div style="display: grid; grid-template-columns: 1fr 1fr;">
{{ range $active }}
<li> {{ partial "member.html" . }} </li>
{{ partial "member.html" . }}
{{ end }}
</ul>
</div>
</div>

<div style="margin-top: 2rem">
<details>
<summary>
<h2 style="display: inline; cursor: pointer; text-decoration: underline;">
Former members
</h2>
</summary>

<ul>
{{ range $inactive }}
<li> {{ partial "member.html" . }} </li>
{{ end }}
</ul>
</details>
</div>
<details style="margin-top: 2rem">
<summary>
<h2 style="display: inline; cursor: pointer; text-decoration: underline;">
Former members
</h2>
</summary>
<div style="display: grid; grid-template-columns: 1fr 1fr;">
{{ range $inactive }}
{{ partial "member.html" . }}
{{ end }}
</div>
</details>

0 comments on commit 4df21f3

Please sign in to comment.