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

Handle ordering of pages correctly #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ and then enable it in your `config.toml`:
theme = "hyde"
```

You will also need a file at `content/_index.md` with at least the following content:

```
+++
sort_by = "date"
+++
```

## Options

### Sidebar menu
Expand Down
3 changes: 3 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
+++
sort_by = "date"
+++
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="content container">
{% block content %}
<div class="posts">
{% for page in section.pages | reverse %}
{% for page in section.pages %}
<div class="post">
<h1 class="post-title">
<a href="{{ page.permalink }}">
Expand Down