Open bendichter opened 5 months ago
I'm sorry, but it looks like an error has occurred due to a planning failure. Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://discord.gg/sweep.
For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: 04294bcef7
).
Please look at the generated plan. If something looks wrong, please add more details to your issue.
File Path | Proposed Changes |
---|---|
layouts/_default/team.html |
Modify layouts/_default/team.html with contents: • For each social media icon rendering block (GitHub, Facebook, Twitter, Personal Website, and LinkedIn), modify the existing "{{ with .social_link }}" condition to also check if the link is not equal to "/" or "#". This can be achieved by replacing the "{{ with .social_link }}" directive with an "{{ if and .social_link (not (in .social_link "/ #")) }}" condition. This ensures that the icon is only rendered if a valid URL is provided and it is not one of the placeholders. • Specifically, for each social media block (lines 42-46 for GitHub, 47-51 for Website, 52-56 for Facebook, 57-61 for Twitter, and 62-66 for LinkedIn), replace the "{{ with .social_link }}" directive with the new conditional check as described above. • Example modification for GitHub (lines 42-46): - Before: "{{ with .github }}" - After: "{{ if and .github (not (in .github "/ #")) }}" • Repeat similar modifications for the website, Facebook, Twitter, and LinkedIn blocks, replacing ".github" with the appropriate field name (".website", ".facebook", ".twitter", ".linkedin") in the conditional statement. • These changes ensure that social media icons are only displayed if a valid, non-placeholder URL is provided for each team member, fulfilling the issue's requirements. |
💡 To recreate the pull request edit the issue title or description.
This is an automated message generated by Sweep AI.
Checklist
- [X] Modify `layouts/_default/team.html` ! No changes made [Edit](https://github.com/catalystneuro/catalystneuro-website/edit/sweep/on_the_team_page_make_the_socials_option/layouts/_default/team.html) - [X] Running GitHub Actions for `layouts/_default/team.html` ✗ [Edit](https://github.com/catalystneuro/catalystneuro-website/edit/sweep/on_the_team_page_make_the_socials_option/layouts/_default/team.html)