Skip to content

feat: Introduce bento grid with quick links#64

Merged
bhansa merged 1 commit into
masterfrom
feat/bento-grid-page
Jul 10, 2025
Merged

feat: Introduce bento grid with quick links#64
bhansa merged 1 commit into
masterfrom
feat/bento-grid-page

Conversation

@bhansa
Copy link
Copy Markdown
Contributor

@bhansa bhansa commented Jul 7, 2025

Implement Config-Driven Bento Grid for Quick Links

This PR refactors the bento grid on the Quick Links page (/bento) to be fully configuration-driven using Jekyll's data files. Now all bento grid cards are managed through a single YAML configuration file, making the grid more maintainable and easier to update.

Changes

  • Created a new data-driven approach for the bento grid using _data/bento_grid.yml
  • Refactored the bento.html template to render cards from the configuration
  • Added support for different card sizes through configuration (large, tall, wide)
  • Applied BEM naming conventions consistently throughout the codebase

How to use

To add or modify bento cards:

  1. Edit the _data/bento_grid.yml file
  2. Each card is defined as a YAML object with properties like title, description, icon, etc.
  3. Cards appear in the same order as defined in the YAML file

Example card configuration:

- title: "HydPy Hack 2025"
  url: "/hydpyhack-2025.html"
  icon: "fas fa-calendar-alt"
  background: "bg-primary"
  text_color: "text-white"
  description: "Join us for the biggest Python hackathon in Hyderabad"
  button_text: "Learn More"
  button_class: "btn-light btn-lg"
  external: false
  size: "large"  # Optional: large, tall, wide

@bpkapkar
Copy link
Copy Markdown

Looks great! Refactored /bento grid is now clean, fully config-driven, and much easier to maintain. Approved

Copy link
Copy Markdown

@bpkapkar bpkapkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oks great! Refactored /bento grid is now clean, fully config-driven, and much easier to maintain. Approved

Copy link
Copy Markdown

@bpkapkar bpkapkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@bhansa bhansa merged commit 8d16d9d into master Jul 10, 2025
@bhansa bhansa deleted the feat/bento-grid-page branch July 10, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants