Coder Social home page Coder Social logo

Comments (5)

onweru avatar onweru commented on May 28, 2024 1

This behaviour is a feature and not a bug; I recently documented this here. Since the article is being read (open/in focus) anyway, it would seem redundant listing it as featured. Assuming the only reason you would like to tag an article as featured is to draw attention to it.

from hugo-clarity.

RobJohnston avatar RobJohnston commented on May 28, 2024 1

For consideration, set the active attribute and add some style to indicate which is the current page.

Similar to the example of the Clarity Sidenav component: https://clarity.design/documentation/sidenav

from hugo-clarity.

oskapt avatar oskapt commented on May 28, 2024 1

This behaviour is a feature and not a bug; I recently documented this here. Since the article is being read (open/in focus) anyway, it would seem redundant listing it as featured. Assuming the only reason you would like to tag an article as featured is to draw attention to it.

There's an argument that UI elements shouldn't appear and disappear in arbitrary context. The article is Featured 100% of the time. The heading doesn't say "Featured and Not Visible" - so when it disappears, it's easy for the reader to attribute that to a state change around "Featured" and not a state change around "Not Visible."

from hugo-clarity.

onweru avatar onweru commented on May 28, 2024 1

The article is Featured 100% of the time.

If there's only one unit of a product, you wouldn't re-advertise (feature) it to the guy who just bought it.

So when it disappears, it's easy for the reader to attribute that to a state change around "Featured" and not a state change around "Not Visible."

This falls under the realm of "trivia".

I think there's a case to be made that if an article is already being read, it should give up room for other featured articles to be noticed as well.

from hugo-clarity.

chipzoller avatar chipzoller commented on May 28, 2024

Thank you for pointing this out, and I agree. We will ensure the "Featured Posts" and "Recent Posts" lists on the side bar are consistent regardless of the current page being viewed.

from hugo-clarity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.