Skip to content

Commit

Permalink
Add featured speakers to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Apr 5, 2024
1 parent 0729425 commit 5c2a05f
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 20 deletions.
2 changes: 1 addition & 1 deletion content/speakers/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ page_header_bg: "images/background/page-title-bg.jpg"
description: "Texas Linux Fest 2024 - Speakers"
---

## Who is _Speaking?_
### Who is _Speaking?_
1 change: 1 addition & 0 deletions content/speakers/anita-zhang.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: "Texas Linux Fest 2024"
page_header_bg: "images/background/page-title-bg.jpg"
designation: "Software Engineering Manager"
image: "images/speakers/anita-zhang.png"
featured: true

social:
- name: "mastodon"
Expand Down
2 changes: 2 additions & 0 deletions content/speakers/elizabeth-k-joseph.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
title: "Elizabeth K. Joseph"
description: "Texas Linux Fest 2024"
page_header_bg: "images/background/page-title-bg.jpg"
designation: "Open Source Program Office Lead"
image: "images/speakers/elizabeth-k-joseph.png"
featured: true

social:
- name: "mastodon"
Expand Down
1 change: 1 addition & 0 deletions content/speakers/major-hayden.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: "Texas Linux Fest 2024"
page_header_bg: "images/background/page-title-bg.jpg"
designation: "Senior Principal Software Engineer"
image: "images/speakers/major-hayden.png"
featured: true

social:
- name: "mastodon"
Expand Down
1 change: 1 addition & 0 deletions content/speakers/thomas-cameron.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: "Texas Linux Fest 2024"
page_header_bg: "images/background/page-title-bg.jpg"
designation: "Red Hat Practice Lead"
image: "images/speakers/thomas-cameron.jpg"
featured: true

social:
- name: "mastodon"
Expand Down
11 changes: 6 additions & 5 deletions data/homepage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ about:

################# Speaker ###################
speakers:
enable : false
enable: true
cfp_open: false
cfp_link: https://www.papercall.io/txlf2024
cfp_label: "Submit a talk to our _Call For Papers_"
title : "Who is _Speaking?_"
title_cfp: "Our _Call for Papers_ is Closed!"
content : "Check out our speakers lined up!"
content_cfp_topics:
- "Linux kernel and system development"
- "Open-source software in enterprise environments"
Expand All @@ -56,6 +55,8 @@ speakers:
- "Linux in education and academia"
- "Introduction for new users to Linux, OSS Applications or Free Software"
content_cfp: "We invite you to be a part of this exceptional event by sharing your expertise and passion with the community. We are seeking engaging and insightful presentations that cover a broad range of topics related to Linux, open-source software, and the wider technology ecosystem. Whether you have hands-on experience, a new research breakthrough, or an inspiring vision for the future of Linux, we want to hear from you!"
more_button_text: "Other speakers"
more_button_link: "speakers/"

# speaker items are coming from "content/speakers" folder

Expand Down Expand Up @@ -506,13 +507,13 @@ registration:
button_text: "Register now!"

funfacts:
- name : "15 Speakers"
- name : "30 Speakers"
icon : "fa-microphone"

- name : "350 + Seats"
- name : "400+ Seats"
icon : "fa-flag"

- name : "350 tickets"
- name : "400+ tickets"
icon : "fa-ticket"

- name : "2 day event"
Expand Down
10 changes: 8 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,23 @@ hasChildren = true
url = "about/"
weight = 1

[[menu.main]]
parent = "About TXLF"
name = "Speakers"
url = "speakers/"
weight = 2

[[menu.main]]
parent = "About TXLF"
name = "Code Of Conduct"
url = "code_of_conduct/"
weight = 2
weight = 3

[[menu.main]]
parent = "About TXLF"
name = "FAQ"
url = "faq/"
weight = 3
weight = 4

# uncomment when call for papers is closed
#[[menu.main]]
Expand Down
Binary file modified static/images/speakers/anita-zhang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 16 additions & 3 deletions themes/eventre-hugo/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ <h3>{{.title_cfp | markdownify }}</h3>
{{ else }}
<div class="section-title white">
<h3>{{.title | markdownify }}</h3>
<p>{{ .content | markdownify }}</p>
</div>
{{ end }}
{{ end }}
</div>
</div>
{{ if ( not site.Data.homepage.speakers.cfp_open ) }}
<div class="row">
{{ range (where site.RegularPages "Section" "speaker") }}
{{ $speakers := where site.RegularPages "Section" "speakers" }}
{{ range where $speakers "Params.featured" "eq" true }}
<div class="col-lg-3 col-md-4 col-sm-6">
<!-- Speaker 1 -->
<div class="speaker-item">
Expand All @@ -125,9 +125,11 @@ <h3>{{.title | markdownify }}</h3>
<div class="primary-overlay"></div>
<div class="socials">
<ul class="list-inline">
{{ if .Params.social }}
{{ range first 4 .Params.social }}
<li class="list-inline-item"><a href="{{.link | safeURL }}"><i class="fa {{.icon}}"></i></a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
Expand All @@ -137,7 +139,18 @@ <h5><a href="{{ .Permalink }}">{{.Title }}</a></h5>
</div>
</div>
</div>
{{end}}
{{ end }}
</div>
<div class="row">
<div class="col-12">
{{ with site.Data.homepage.speakers }}
<div class="section-title white">
<div class="sponsor-btn text-center">
<a href="{{ .more_button_link | absURL }}" class="btn btn-main-md">{{ site.Data.homepage.speakers.more_button_text }}</a>
</div>
</div>
{{ end }}
</div>
</div>
{{ end }}
</div>
Expand Down
18 changes: 9 additions & 9 deletions themes/eventre-hugo/layouts/speakers/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<div class="container">
<div class="row">
<div class="col-12 section-title">
{{.Content}}
{{.Content}}
</div>
</div>
<div class="row">
{{ range .Data.Pages }}
{{ range .Data.Pages }}
<div class="col-lg-3 col-md-4 col-sm-6">
<!-- Speaker 1 -->
<div class="speaker-item">
Expand All @@ -17,11 +17,11 @@
<div class="primary-overlay"></div>
<div class="socials">
<ul class="list-inline">
{{ if .Params.social }}
{{ range first 4 .Params.social }}
<li class="list-inline-item"><a href="{{.link | safeURL }}"><i class="fa {{.icon}}"></i></a></li>
{{ end }}
{{ end }}
{{ if .Params.social }}
{{ range first 4 .Params.social }}
<li class="list-inline-item"><a href="{{.link | safeURL }}"><i class="fa {{.icon}}"></i></a></li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
Expand All @@ -30,8 +30,8 @@ <h5><a href="{{ .Permalink }}">{{.Title }}</a></h5>
<p>{{ .Params.Designation | markdownify }}</p>
</div>
</div>
</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
</section>
Expand Down

0 comments on commit 5c2a05f

Please sign in to comment.