Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky post for frontpage #128

Open
willwade opened this issue Mar 16, 2017 · 4 comments
Open

Sticky post for frontpage #128

willwade opened this issue Mar 16, 2017 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@willwade
Copy link

A while ago I was suggesting a sticky item for a frontpage display for hexo. To be honest it doesn't really work nicely with hexo (LouisBarranqueiro/hexo-theme-tranquilpeak#304) - on closer inspection many of the static site generators are so heavily focused on blogs that doing this kind of thing is a fudge. However it does fit better with Hugo whose design principles are more (focused on this kind of flexibility)(http://gohugo.io/content/using-index-md/). TL;DR: I would like a way of choosing a single post (no "continue reading") as the frontpage matter.

@kakawait
Copy link
Owner

Today i have no idea how to achieve that I have to check more on Hugo feature.

Because to be sticky you wanted a way to choose a single single post without continue reading but also to be always on top regardless it's publication date

@willwade
Copy link
Author

willwade commented Mar 17, 2017

I'll try and mock something up in my fork.

I'm an idiot. Its already doable with a _index.md file in your /content/ dir as noted here

@willwade
Copy link
Author

willwade commented Mar 17, 2017

Actually not quite. Do this:

  • Add a _index_md file to your content (e.g. /posts/ )
  • Note how now you don't get anything showing on the frontpage using tranquilpeak.

Need a little while to figure this out. My guess, as the docs suggest here is that we haven't got a way of displaying the {{ .Content }}

@willwade
Copy link
Author

willwade commented Apr 3, 2017

OK - I just remembered I would post to this and I haven't..

I now remember why - I'm being lazy:

https://github.com/openassistive/hugo-tranquilpeak-theme/blob/master/layouts/index.html#L12

(see result at http://openassistive.org)

@kakawait kakawait added this to the 0.5.0 milestone Apr 10, 2017
@kakawait kakawait self-assigned this Jul 5, 2019
@kakawait kakawait modified the milestones: 0.5.0, 0.6.0 Mar 29, 2020
@kakawait kakawait added enhancement New feature or request and removed feature request labels Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants