Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add anchors to community and index page #42

Merged
merged 1 commit into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add anchors to community and index page
  • Loading branch information
carlosgauci committed Nov 1, 2022
commit 8533bc8a46581e873f3c6f4511f3bf833b0fad2e
4 changes: 4 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ hero:

# Showcase
showcase:
anchor: showcase
title: Enabling Semantic Search
showcaseItems:
- title: Question Answering
Expand All @@ -45,6 +46,7 @@ showcase:

# Features
features:
anchor: features
featureItems:
- title: Latest Models
text: Pick any Transformer model from Hugging Face's Model Hub, experiment, find the one that works.
Expand All @@ -67,6 +69,7 @@ features:

# Github section
github:
anchor: github
title: Start exploring Haystack!
buttons:
- buttonText: Check on Github
Expand All @@ -76,6 +79,7 @@ github:

# Community
community:
anchor: community
discord:
title: Join our community
text: Our community on Discord is for everyone interested in NLP, using Haystack or even just getting started!
Expand Down
2 changes: 2 additions & 0 deletions content/pages/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ hero:

# Upcoming events
eventsSection:
anchor: events
title: Upcoming Events
events:
- title: Enabling NLP for Enterprise Applications
Expand All @@ -81,6 +82,7 @@ eventsSection:

# Open NLP Meetup section
meetupSection:
anchor: meetup
title: The Open NLP Meetup
text: The Open NLP Group is more than just high-quality talks from industry and research perspectives. It’s also the place to meet other NLP enthusiasts and to discuss and share ideas on how to integrate NLP techniques into your applications. We get together every three months and we welcome people from all kinds of backgrounds to join.
buttonText: Join Meetup
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/community-events.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{/* Upcoming events section on the Community page */}}
{{ with .Params.EventsSection}}
<section class="community-events">
<section class="community-events" {{ if .anchor }} id="{{ .anchor }}" {{ end }}>
<div class="container container-padded">
<div class="inner">
<h2>{{ .title }}</h2>
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/community-hero.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{/* Community page hero */}}
{{ with .Params.Hero }}
<section class="community-hero">
<section class="community-hero" {{ if .anchor }} id="{{ .anchor }}" {{ end }}>
<div class="container container-padded">
<section class="inner inner-top">
<div class="community-hero-top">
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/community-meetup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{/* Open NLP Meetup section on the Community page */}}
{{ with .Params.MeetupSection }}
<section class="community-meetup">
<section class="community-meetup" {{ if .anchor }} id="{{ .anchor }}" {{ end }}>
<div class="container container-padded">
<div class="inner">
<h2>{{ .title }}</h2>
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/index-community.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section class="index-community">
<section class="index-community" {{ if .Params.community.anchor }} id="{{ .Params.community.anchor }}" {{ end }}>
<div class="container">
<div class="inner">
{{ partial "discord-card" (dict "context" . "community" .Params.community) }}
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/index-features.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/* Homepage Features section */}}
<section class="index-features">
<section class="index-features" {{ if .Params.features.anchor }} id="{{ .Params.features.anchor }}" {{ end }}>
<div class="container">
<div class="inner">
{{/* Feature items */}}
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/index-github.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/* Homepage Github section */}}
<section class="index-github">
<section class="index-github" {{ if .Params.github.anchor }} id="{{ .Params.github.anchor }}" {{ end }}>
<div class="top-section">
<div class="container container-padded">
<div class="inner">
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/index-hero.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/* Homepage Hero */}}
<section class="index-hero">
<section class="index-hero" {{ if .Params.hero.anchor }} id="{{ .Params.hero.anchor }}" {{ end }}>

{{/* Hero bg image */}}
<div
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/index-showcase.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/* Homepage showcase section */}}
<section class="index-showcase">
<section class="index-showcase" {{ if .Params.showcase.anchor }} id="{{ .Params.showcase.anchor }}" {{ end }}>
<div class="container container-padded">
<div class="inner">
{{/* Title */}}
Expand Down