Current Behavior
The sidebar of the https://layer5ng.netlify.app/blog contains a Latest Post section. It is not populated currently
Desired Behavior
Populate the section with 4 latest blog post.
Note - This is to be done dynamically using graphql query.
[Optional] Alternatives
[Optional] Additional context
Contributor Resources
The layer5 repo contains two websites. The current generation and the next-generation of the layer5.io site.
If the layer5-ng label is absent on this issue, then this issue pertains to the current generation of the layer5.io website, which uses Jekyll and GitHub Pages. Site content is found under the master branch.
If the layer5-ng label is present on this issue, then this issue pertains to the next-generation of the layer5.io website, which uses Gatsby, Strapi, and GitHub Pages. Site content is found under the layer5-ng branch.
Hi @Tanuj22
I'm new to GraphQL, but will try this out
Let me look around the repo. I may bore you with few questions soon 馃槄
@OmkarPh please do bore me :laughing: . I will be happy to help!
Hi @leecalcote and @Tanuj22
I am almost done, but wanted to share a few things before making PR.
Following is the output on blogs page:

On single blog page:

For post images, i gave width of 80 px and height gets automatically adjusted as per aspect ratio.
I talked about irrelevant use of latest blogs section on all blogs page with @Tanuj22 . This page already shows latest blogs, so you might want to think of removing it from there.
What are your thoughts?
.... Ignore Activate windows watermark :)
@OmkarPh Can you also check these out https://github.com/layer5io/layer5/pull/1155#pullrequestreview-531146315
Hi @leecalcote and @Tanuj22
Can you tell me how this looks, I made images bigger and used Image component.
Bigger thumnails look better according to me.
Checkout these and tell me if I it's Ok:
Service Mesh (Istio) patterns for Multitenancy _ Layer5 - The Service Mesh Company.pdf
Umm...not so sure about keeping bigger thumbnails as maybe it's taking too much attention from the user. @Nikhil-Ladha what do you think?
The Latest post section can be removed in the blogs page, it's just redundant.
And, for the bigger thumbnails part I agree with @Tanuj22 it draws too much attention. But, the way of showing the posts in the latest update looks better than the one in this comment.
Also, do we really need the search bar in this page?
On all blogs page, latest post section is ultimately getting deleted,
Is this ScreenShot of latest post section on single blog good or should I keep it as it is here: https://layer5ng.netlify.app/blog/performance-benchmarking-using-meshery-and-nighthawk
Use the design in the pdf but, place it in the position listed in the preview.
I didn't understand; What 'listed in preview' refers to?
Means the way it is in the netlify preview.
Oh, yes
Can you suggest what to put in place of this section in all blogs page
If i remove Sidebar, the search bar and categories will also get erased, can I use a boolean prop for sidebar
If true, show latest posts also, otherwise don't...
Can you share a demo of what you are trying to say, I didn't get that clearly :thinking:
Also, for the single blog page simply remove the sidebar and move the latest post section at the end of the content.
This is how the all blog page looks without sidebar:
Blog _ Layer5 - The Service Mesh Company.pdf
To avoid this empty space on right, we can remove the container 'Col' component, but i think the search bar and categories included in sidebar are important, so I've kept that space empty for now.
Okay. So, finally what you can do is:

Can you share a demo of what you are trying to say, I didn't get that clearly 馃
Also, for the single blog page simply remove the sidebar and move the latest post section at the end of the content.
It doesn't look good at the bottom though :(
If they're catching attention, then I'd rather reduce their size rather than moving entire section to bottom.
Okay. So, finally what you can do is:
- Remove the sidebar completely in the single blog page, which is for example this page (https://layer5ng.netlify.app/blog/performance-benchmarking-using-meshery-and-nighthawk) and shift the lates blogs section at the end in which each blogs should have this design
- For the all blogs page, just remove the latest post section and keep everything else which is the serach bar, categories and tags.
But the tags and search bar are in sidebar component itself
But the tags and search bar are in sidebar component itself
Move the latest post section code out of that component, and make it a new one.
But the tags and search bar are in sidebar component itself
Move the latest post section code out of that component, and make it a new one.
Ok I'll do that
It doesn't look good at the bottom though :(
If they're catching attention, then I'd rather reduce their size rather than moving entire section to bottom.
Checkout this page https://www.hashicorp.com/blog/hashicorp-boundary. This looks pretty good and decent. I was talking about something similar to that.
@Nikhil-Ladha we need to add a related post section at the bottom of each page
Yup, but that would require us to have the categories ready and working. So, for the time being we can work with this one, what say?
What if I make a new component as Related posts which uses latest post graphql query for now, later we can change the query?
What if I make a new component as Related posts which uses latest post graphql query for now, later we can change the query?
Sure, please do that :+1:
Can you explain me how these 'Col' components work,

I removed one col, so want the first one to span over more area horizontally
I think you can sort this out with @Tanuj22 or @Jashpatel1 on slack. Please join the workspace if you haven't yet.
Hi @Nikhil-Ladha and @Tanuj22
Can you see why the deployment fails in above PR :(
Everything worked fine on my local machine and I haven't changed any config file yet there's some build error.
Hi @Nikhil-Ladha and @Tanuj22
Can you see why the deployment fails in above PR :(
Everything worked fine on my local machine and I haven't changed any config file yet there's some build error.
Maybe an error with the cache. I have re run the deployment. Should work now
Most helpful comment
Hi @Tanuj22
I'm new to GraphQL, but will try this out
Let me look around the repo. I may bore you with few questions soon 馃槄