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

kit advanced layout #120

Merged
merged 8 commits into from
Sep 16, 2022
Merged

kit advanced layout #120

merged 8 commits into from
Sep 16, 2022

Conversation

indaco
Copy link
Member

@indaco indaco commented Sep 16, 2022

This PR brings the following changes:

Fixed Bug:

  • api endpoints were still on old sveltekit routing mechanism. Updated and fixed an issue when building the project due to prerender=true on those files. fallback: '200.html' on static adapter configuration made the magic.

Features:

  • new resource cmd allows to specify the group layout name according to the sveltekit Advanced layouts by passing the --group flag

     sveltin new resource testimonials --group marketing
  • new resource cmd allow to specify if a different layout for the slug pages must be created in addition to the one for the index page.

     sveltin new resource posts --slug

Chores:

  • sveltekit updated to next.483
  • go deps updated
  • uniform function names

Refactor:

  • config.TemplateData struct makes use of individual struct for each artifact template data
  • file templates updated accordingly
  • generate commands (menu, rss, sitemap) simplified and updated to work for grouped layout too

@indaco indaco merged commit f514b24 into main Sep 16, 2022
@indaco indaco deleted the kit-advanced-layout branch September 16, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant