Skip to content

Timeline by days instead of years? #124

Answered by owikle
mjeleon asked this question in Q&A
Discussion options

You must be logged in to vote

@mjeleon the easiest way to do this is to go to _layouts > timeline.html. Change line 17 from this:

{%- capture clean-days -%}{% for date in raw-dates %}{% if date contains "-" %}{{ date | strip | split: "-" | first }}{% elsif date contains "/" %}{{ date | strip | split: "/" | last }}{% else %}{{ date | strip }}{% endif %}{% unless forloop.last %};{% endunless %}{%- endfor -%}{%- endcapture -%}

to this:

{%- capture clean-days -%}{% for date in raw-dates %}{{ date | strip }}{% unless forloop.last %};{% endunless %}{%- endfor -%}{%- endcapture -%}

Commit the change and you should see the items in your timeline now grouped by day instead of year. Good luck!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mjeleon
Comment options

Answer selected by mjeleon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants