Comments (5)
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.
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.
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.
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.
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)
- [Bug] CORS error when using www. subdomain, .css and .js files not loading HOT 4
- [Bug] Mobile rendering display problem HOT 2
- [Bug] `-webkit-appearance: none` breaks embedded form styling HOT 3
- [Bug] CORS error when using multilingual sites, .css and .js files not loading
- [Bug] CORs error when publishing to Gitlab Pages HOT 3
- [Feature] Mastodon profile support HOT 4
- [Bug] Inline MathJax/Katex doesn't work HOT 1
- [Bug] Caret icon path is incorrect if iconsDir is changed. HOT 1
- [Bug] `blog_search_field_placeholder` i18n key does not seem to be used. HOT 1
- [Bug] Path to thumbnail images incorrect on second and higher page
- [Bug] ReadingTime broken after git submodule update HOT 1
- [Bug] Related posts in series not displayed in example site
- [Docs] HOT 3
- [Feature]
- [Feature] Tabs for code blocks
- [Bug] [Feature Request] tags, categories & series items use posts' layout
- [Bug] Posts that have today's date but no time get first published at the end of the day HOT 4
- [Feature] Multipage Blog Post
- [Bug] featured: true / featured: false not working as expected HOT 5
- [Bug] If an image is scalable or not is not determined correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-clarity.