-
Notifications
You must be signed in to change notification settings - Fork 375
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
fix(gnoweb): template and md style #2223
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2223 +/- ##
=======================================
Coverage 49.93% 49.93%
=======================================
Files 576 576
Lines 77827 77827
=======================================
Hits 38864 38864
Misses 35839 35839
Partials 3124 3124
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…o fix/global-md-styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Played around with this, deployed all blogs locally. Blogs look awesome 💯
This PR is a hotfix to markdown style. fixes: gnolang#1967 fixes: gnolang#2166 Maybe not the best way to handle it, but as we are gonna refactor gnoweb and pages are rendered as blog, what is not very clean, this is a quick fix before a better refactor. It create a `Kind` variable for rendered pages in `gnoweb`, that is used as CSS classname to wrap the body content. This is made to separate `Section` and `Page` contents: while first ones are created with a detailed architecture of sub-sections (invisible list, columns etc), the second kind is made for generic content. This separation allow to create different styles for the two kinds of structure we have on gno.land website: "page" one will have bullet lists, centered images etc by default and "section" one will be more transparent regarding the style. To achieve this, the PR creates a dedicated package for "events" instead of a blog rendered page (because this page is a `section`) and adds a default `page` CSS classname in blog content. In the future, we should use dedicated md / web components to display elements whatever the page type. --------- Co-authored-by: Morgan Bazalgette <morgan@morganbaz.com>
This PR is a hotfix to markdown style.
fixes: #1967
fixes: #2166
Maybe not the best way to handle it, but as we are gonna refactor gnoweb and pages are rendered as blog, what is not very clean, this is a quick fix before a better refactor.
It create a
Kind
variable for rendered pages ingnoweb
, that is used as CSS classname to wrap the body content. This is made to separateSection
andPage
contents: while first ones are created with a detailed architecture of sub-sections (invisible list, columns etc), the second kind is made for generic content.This separation allow to create different styles for the two kinds of structure we have on gno.land website:
"page" one will have bullet lists, centered images etc by default and "section" one will be more transparent regarding the style.
To achieve this, the PR creates a dedicated package for "events" instead of a blog rendered page (because this page is a
section
) and adds a defaultpage
CSS classname in blog content.In the future, we should use dedicated md / web components to display elements whatever the page type.