HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

experiences: sort by end date #841

Closed ghost closed 5 years ago

ghost commented 5 years ago

I love the experiences section! I think it would help to have experiences sorted by end date rather than start date though, just as in a standard resume/CV. I tried editing layouts>partials>widgets>experiences.html myself and it didn't like what I was doing.

gcushen commented 5 years ago

LinkedIn sorts experience by start date. Academic is consistent with LinkedIn's approach.

Feel free to reach out on the support forum for support customizing widgets.

anirbanbasu commented 5 years ago

There are situations such as sabbaticals where an experience X starts after an experience Y but finishes before the date_end of Y. To offer more flexibility, how about the following?

  1. Parameterize the sorting order, including a manual_sort option.
  2. If the manual_sort option is chosen, the sorting order will be the order in which the experiences are written in Markdown.
  3. Display nested experiences, although this may look ugly depending on the amount of text and the nesting level.
nheeren commented 5 years ago

I would also like to suggest to either allow sorting manually or prioritise ongoing experiences. For instance, I have a little side-kick that I started many years ago. It is completely buried in the list although it is still ongoing and relevant. Keep up the great work!

nheeren commented 5 years ago

LinkedIn sorts experience by start date. Academic is consistent with LinkedIn's approach.

LinkedIn does the same thing by the way...

gcushen commented 5 years ago

@nheeren ordering by multiple variables would be the ideal solution however Hugo only has very basic support for it. Unfortunately, I don't believe that Hugo's ByParam would work in this context unless someone requests Hugo team to improve that functionality.

nheeren commented 5 years ago

@gcushen I appreciate the feedback! Sorting by end date (first) might already do the trick. Would something like this work? (Sorry still learning how Hugo works.)

{{ range ($.Site.RegularPages.ByParam "enddate").ByParam "startdate" }}
kristianeschenburg commented 4 years ago

Has these been worked on recently? I'm interested in sorting my experience by end date (for example, I'm a graduate student -- I want my graduate student experience to be the top-most in my list).

nheeren commented 3 years ago

Newer issue discussing this: #1761