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

Split css server templates #8234

Merged
merged 2 commits into from
Apr 4, 2017
Merged

Conversation

aileen
Copy link
Member

@aileen aileen commented Mar 27, 2017

closes #8126
needs e3acd3c

This is a replacement PR of #8217 (thanks @TienSFU25 for the work 🤗), because these changes are needed urgently and blocking other work.

Adds a new ghost.css file in /core/shared/ to be used for server side template rendering (error.hbs, subscribe.hbs and private.hbs).

@kirrg001 kirrg001 self-assigned this Mar 27, 2017
@@ -15,7 +15,7 @@
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
<meta http-equiv="cleartype" content="on">

<link rel="stylesheet" href="{{asset "ghost.css" ghost="true" minifyInProduction="true"}}" />

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@aileen aileen force-pushed the split-css-server-templates branch 2 times, most recently from 7375dca to 185d957 Compare March 28, 2017 07:29
@aileen
Copy link
Member Author

aileen commented Mar 28, 2017

I added some logic to getAssetUrl(), to not add /assets/ to the URL, when the ghost.css stylesheet is requested. BUT, I'm not sure if this is the right approach...

@ErisDS
Copy link
Member

ErisDS commented Mar 29, 2017

I don't think there was any need to add extra logic here. This is a shared file, so the path passed to the asset helper should be /shared/ghost.css - the line of code in getAssetUrl() that was edited already has logic for this.

See Issue TryGhost#8126

Adds these files under /shared
- normalizer.css
- error.css
- extracted.css (for subscribers.css and private.css)

Also makes these files available as public static content
@aileen aileen force-pushed the split-css-server-templates branch 2 times, most recently from 24619b8 to ebc436a Compare April 4, 2017 04:57
closes TryGhost#8126
needs e3acd3c

This is a replacement PR of TryGhost#8217 (thanks @TienSFU25 for the whole work 🤗), because these changes are needed urgently and blocking other work.

Adds a new `ghost.css` file in `/core/shared/` to be used for server side template rendering (`error.hbs`, `subscribe.hbs` and `private.hbs`).
@aileen aileen force-pushed the split-css-server-templates branch from ebc436a to 6dccfda Compare April 4, 2017 05:01
@aileen
Copy link
Member Author

aileen commented Apr 4, 2017

This is ready for review and merge 🎉

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LTGM now 👍

@ErisDS ErisDS merged commit e06547a into TryGhost:master Apr 4, 2017
@aileen aileen deleted the split-css-server-templates branch October 13, 2017 08:31
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.

Split out the CSS for default templates
3 participants