Shift in Relative vs. Absolute Path Mentality #1916
Replies: 3 comments
-
From #1914 (comment)
|
Beta Was this translation helpful? Give feedback.
-
Claude Sonnet analysis: There are pros and cons to both approaches: Relative links:
Absolute links:
In general, using relative links within a static site is often preferred for maintainability and portability reasons. However, the best choice can depend on your specific use case. Some static site generators offer options to use relative links internally but output absolute URLs in feeds and sitemaps. This gives you the benefits of both approaches. |
Beta Was this translation helpful? Give feedback.
-
I think that sitemaps, RSS feeds, and metadata (where specs require it) should use absolute URLs; otherwise, we stick with relative. It's a nice feature of Hyde that we resolve these so well. Later once the Asset API (#1904) is finalized, we can add a configurable option to override this on a global project level. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Abstract
Historical Context
Proposed Improvements
Provide a smoother, less complex way to compile locally:
--local
option to the build command.Consider moving towards more absolute URLs:
--local
flag locally could potentially break saved previews (which are being phased out).Considerations
Beta Was this translation helpful? Give feedback.
All reactions