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

✨ feat: allow showcasing featured projects on homepage #297

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

welpo
Copy link
Owner

@welpo welpo commented Apr 22, 2024

Summary

Allows showcasing a selection of n projects on the home page.

Related issue

Resolves #291.

Changes

To use this option, set the projects_path on your content/_index.md file:

[extra]
projects_path = "projects/_index.md"

It's possible to set the maximum number of projects with max_projects. By default, projects are shown after the posts. To reverse the sorting (show projects first), set show_projects_first = true.

  • Moves the logic to list blog posts to a partial html file, similar to the new listing projects html.
  • Adds some CSS.
  • Adds two i18n strings.

Accessibility

Uses semantic HTML and styling from the Projects section; keyboard navigation, colour contrast etc. was already OK.

Screenshots

projects

Type of change

  • Bug fix (fixes an issue without altering functionality)
  • New feature (adds non-breaking functionality)
  • Breaking change (alters existing functionality)
  • UI/UX improvement (enhances user interface without altering functionality)
  • Refactor (improves code quality without altering functionality)
  • Documentation update
  • Other (please describe below)

Checklist

  • I have verified the accessibility of my changes
  • I have tested all possible scenarios for this change
  • I have updated theme.toml with a sane default for the feature
  • I have made corresponding changes to the documentation:
    • Updated config.toml comments
    • Updated theme.toml comments
    • Updated "Mastering tabi" post in English
    • (Optional) Updated "Mastering tabi" post in Spanish
    • (Optional) Updated "Mastering tabi" post in Catalan

@welpo welpo added the enhancement New feature or request label Apr 22, 2024
@welpo welpo merged commit e7172a0 into main Apr 23, 2024
3 checks passed
@welpo welpo deleted the feat/featured-projects-on-main-page branch April 23, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blog and Projects on homepage
1 participant