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

Move SyllabusLink to learn content template where it belongs #233

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

frederickobrien
Copy link
Member

@frederickobrien frederickobrien commented Feb 16, 2024

This addresses a longstanding workaround where I was dropping in links between lessons in the learn content svx files rather than at the [slug] level.

The old, rather nasty duplicate approach was due to a bug/feature (see here for context: sveltejs/kit#552) where the links were getting all messed up. By wrapping the component in a #key logic block, ensuring it's recreated any time the slug changes, they don't any more. Best practice? Who knows, but it seems to work.

Tidier markdown, less code, everything in its right place.

Addresses a longstanding workaround where I was dropping in links between lessons in the svx files rather than at the [slug] level. This was due to a bug/feature (see here for context: sveltejs/kit#552) where the links were getting all messed up. By wrapping the component in a `#key` logic block, ensuring it's recreated any time the slug changes, they don't any more. Best practice? Who knows, but it seems to work
Copy link

netlify bot commented Feb 16, 2024

Deploy Preview for teeline-online ready!

Name Link
🔨 Latest commit c542f3b
🔍 Latest deploy log https://app.netlify.com/sites/teeline-online/deploys/65cf959fff58f50008e7a7b8
😎 Deploy Preview https://deploy-preview-233--teeline-online.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@frederickobrien frederickobrien merged commit 21a3e53 into main Feb 16, 2024
4 checks passed
@frederickobrien frederickobrien deleted the move-syllabus-links branch February 17, 2024 19:20
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.

1 participant