This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
Make layout know if it's in error page or home page #948
Labels
Projects
Comments
On a side note, the |
There’s a pull request #962 |
4 tasks
4 tasks
PR #1250 may be the solution to this. It separates the |
4 tasks
4 tasks
|
featherbear
added a commit
to featherbear/CTF2-client
that referenced
this issue
Sep 28, 2020
Updated Sapper to 0.28.9 --- sveltejs/sapper#948 sveltejs/sapper#1498
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
I asked this question on SO, but doesn't get much attentions.
I want to style the page differently in home and error page, but
segment
isundefined
in both pagas.Describe the solution you'd like
Either make segment return different values (e.g.,
""
vsundefined
), or another variable saying if the current is error or not.I lean toward the former.
How important is this feature to you?
Giving different layouts to home and error page layout is pretty common I think, and given there doesn't seem to be a workaround, I feel it's pretty important.
The text was updated successfully, but these errors were encountered: