# How to pin an article?

**URL:** <https://discourse.gohugo.io/t/how-to-pin-an-article/23777>\
**Category:** Using Themes\
**Created:** [March 2, 2020, 6:08am UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777 "2020-03-02T06:08:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtdsj](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mtdsj](https://discourse.gohugo.io/u/mtdsj)\
**Post date:** [March 2, 2020, 6:08am UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/1 "2020-03-02T06:08:40Z")

</div>

hugo how to pin the article

hugo0.64.1

I try to use this method: weight: 1

invalid!

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [March 2, 2020, 4:21pm UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/2 "2020-03-02T16:21:41Z")

</div>

‘Pinning’ an article depends on how a theme is implemented.

You’re right in that `weight` will put an article at the top. But if a theme uses different ordering, then it ignores the weight.

What kind of theme are you using?

---

<div class="post-metadata">

**Author:** ![mtdsj](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mtdsj](https://discourse.gohugo.io/u/mtdsj)\
**Post date:** [March 3, 2020, 12:35am UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/3 "2020-03-03T00:35:22Z")

</div>

Thank you

The theme I use is: nuo

> **[laozhu/hugo-nuo](https://github.com/laozhu/hugo-nuo)**
>
> 🎨 A responsive light & clean hugo theme for blogger. - laozhu/hugo-nuo

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [March 3, 2020, 8:16am UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/4 "2020-03-03T08:16:47Z")

</div>

This question is a bit OT and too generic, since “pinning an article” can be done in a number of ways.

I suggest that you open a GitHub issue in the theme repo of hugo-nuo with a feature request.

---

<div class="post-metadata">

**Author:** ![mtdsj](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mtdsj](https://discourse.gohugo.io/u/mtdsj)\
**Post date:** [March 3, 2020, 11:42pm UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/5 "2020-03-03T23:42:16Z")

</div>

In GitHub, there is no answer; the answer using Google search is invalid, so I have to ask here, I hope to find the simplest answer

---

<div class="post-metadata">

**Author:** ![funkydan2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/funkydan2/32/5636_2.png) [@funkydan2](https://discourse.gohugo.io/u/funkydan2)\
**Post date:** [March 4, 2020, 2:20am UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/6 "2020-03-04T02:20:18Z")

</div>

I don’t think this theme supports _pinning_ articles.

So bring this feature to the theme, you’d start by modifying the order posts are displayed on the front page

> <https://github.com/laozhu/hugo-nuo/blob/0be94f0dfad9ea5aa94574303f6c759ea776dbf4/layouts/index.html#L8>

---

<div class="post-metadata">

**Author:** ![mtdsj](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mtdsj](https://discourse.gohugo.io/u/mtdsj)\
**Post date:** [March 4, 2020, 8:32am UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/7 "2020-03-04T08:32:24Z")

</div>

Thank you! How to add this feature?

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [March 4, 2020, 4:00pm UTC](https://discourse.gohugo.io/t/how-to-pin-an-article/23777/8 "2020-03-04T16:00:07Z")

</div>

Closed on March 4, 2020, 4:00pm UTC

This topic was automatically closed after 31 hours. New replies are no longer allowed.
