question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blog: add more useful content to the sidebar (tags, authors, feeds, links...)

See original GitHub issue

🚀 Feature

Make the feeds, tags page, archive page, authors page (if the last ever gets implemented) directly visitable from the index page.

Have you read the Contributing Guidelines on issues?

Yes

Has this been requested on Canny?

No

Motivation

  • Currently, to visit the tags page, the user has to click on a tag, then click “view all tags”—that’s two layers of Indirection.
  • For the feeds, afaik there’s currently no way to access them (besides typing in the URL, of course, given that you know where the file lives), or any indication that they even exist.
  • From the current status of #5428 (I understand it’s still underdeveloped), it’s unlikely that a link will be provided on the index page.

I propose we have a “links group” on the blog index page providing access to all these pages.

API Design

The only place where these links can be tucked in is probably the blog sidebar. The links group can be added below the sidebar title or below the list of post titles. We can even add little icons like “feeds” and “tag” 😃

Not sure if it’s worth providing options to toggle these links on or off; I guess keeping them won’t distort the appearance of the page much anyways

Have you tried building it?

Because I have a swizzled blog page, I directly added the links group below the blog title: https://joshcena.com/blog/

This is actually pretty easy to achieve in the userland (just wrap the existing BlogSidebar, doesn’t even require swizzling), but from a design perspective I find it inadequate for this to be missing from the theme itself.

Edit. I was a bit naïve when I believed we could wrap the sidebar. Turns out that the sidebar has fixed position, but the wrapped one doesn’t, so for this code:

export default function BlogSidebar(props) {
  return (
    <>
      <OriginalBlogSidebar {...props} />
      <div>Links</div>
    </>
  );
}

The “Links” text just scrolls up when the page is scrolled while the sidebar is fixed. Therefore the user still has to swizzle the Sidebar component, which is undesirable.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

2reactions
slorbercommented, Sep 21, 2021

We should avoid putting too much data into the global data layer as it increases the site site globally.

In case you want to consume blog data on non-blog pages (like your homepage) I’d like to introduce something new later, allowing individual pages to declare their data requirements. A bit like Gatsby/Next.js already do, but something simpler. But this is not really related to the current issue, and will not be worked on very soon.

1reaction
bzp2010commented, Sep 21, 2021

Yes, putting all the data into GlobalData is just an expedient measure. I look forward to the new content you will introduce.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 tips for creating a blog sidebar that informs ... - Novel Publicity
1. Only include content that is relevant to your blog—Don't include every widget in the world just because it exists. So you really...
Read more >
How To Use Sidebars On Your Author Website - LinkedIn
Many websites have at least one sidebar. Sidebars are a great way to supplement site content by drawing attention to important links, ...
Read more >
What You Can Put on Your Blogs Sidebar to Generate More ...
Your blogs sidebar is the ideal place to promote popular posts, subscribe options and more. Here's what you should include to generate more...
Read more >
Creating A Blogroll For Your Sidebar - The Edublogger
Your Edublog blog automatically comes with a blogroll in it's sidebar. · On your blog dashboard, go to Write > Links · Insert...
Read more >
'Must Have' Sidebar Features - ProBlogger
I'm not anti blogrolls but would rather link to other blogs from within my content as they write quality/link worthy posts. I do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found