fongandrew / hydeout

A refreshed version of Hyde for Jekyll 3.x and 4.x
https://fongandrew.github.io/hydeout/
Other
591 stars 744 forks source link

Archive Page using jekyll-archives? #59

Closed twhite96 closed 5 years ago

twhite96 commented 5 years ago

Trying to work with the jekyll-archives gem and trying to build a layout. It isn't working currently: nothing is displayed in the archive page. I haven't pushed this to my repo.

My current archive page layout is;

---
layout: default
---
<!DOCTYPE html>
<html lang="en">
<body>
  <header>
    <h1 class="page-title">{{ page.title }}</h1>
  </header>
  <div class="content">
    <h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>

    <ul class="posts-lists">
    {% for post in page.posts %}
      <li>
        <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
        <a class="post" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
      </li>
    {% endfor %}
    </ul>
  </div>
</html>

The page in dev:

screenshot-2018-10-10_05-24-44_pm

Can you help me out or implement this is some way into Hydeout?

fongandrew commented 5 years ago

I'm not very familiar with how jekyll-archives works unfortunately. But a couple of things come to mind:

eifinger commented 5 years ago

@fongandrew Do you have another idea on how to implement an Archive?

twhite96 commented 5 years ago

I figured out how to get this to work. I created an archive page which you can find here that accomplishes what I need. @eifinger maybe this will work for you. In the meantime, I am going to close this.