Importing a .svx file in another .svx file overwrites frontmatter data
See original GitHub issueI am trying to use one .svx
page as a component in another one, but then the frontmatter data defined in the imported one (even if it doesn’t have any) removes any frontmatter data defined in the page that imports it. What should I do to properly import a svx
file in another?
Using Sapper v0.28.0, MDsveX v0.8.6, Svelte v3.24, and Rollup v2.18.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Contents of .svx files: How do I? - Survex
This data demonstrates a number of useful features of Survex: Legs can be measured either way round, which allows the use of techniques...
Read more >MDsveX - Adding Interactivity with Svelte Components in ...
The Svelte component code should be saved in a .svx file to be recognized as a mdsvex file – that default choice can...
Read more >rollup-plugin-mdsvex-pages - npm package - Snyk
mdsvex-pages will automatically generate svelte-spa-router routes and convert the markdown files into parseable svelte files to be bundled.
Read more >mdsvex docs!
Combine svelte and markdown in the same file. ... Using mdsvex with other things ... and tell the Svelte plugin or loader to...
Read more >Obsidian Plugin Stats
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements. favorite. share.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, that fixed it! Thank you very much. Your help and response time is highly appreciated! 😄
Wow, that was extremely helpful. Thanks for taking the time and effort to explain all of this! I tried to go with the last of the options you mentioned since it’s the most relevant (as having
layout: false
in themd
file defeats the purpose of wanting to remove the frontmatter from it, and addinglayout: docs
in all other files is not really feasible), but it didn’t work. All I did was remove the frontmatter fromCHANGELOG.md
and make the layout option an object exactly as you suggested:but then it doesn’t get applied anywhere, except if I explicitly specify
layout: docs
in the frontmatter of thesvx
files. I tried other options for the layout name (likesrc
,routes
,components
, …), but they all only work if I explicitly specify the layout in thesvx
and not through the folder name. Is this exactly how you tested it? You can see exactly what I have on this branch: https://github.com/illright/attractions/tree/docs/hotfix/styles Again, I’m very grateful for your dedication to trying it on my app 😄