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

Rough starting template for month in WP #81

Merged
merged 6 commits into from
Dec 9, 2021
Merged

Commits on Nov 29, 2021

  1. Rough starting templates

    This is a starting point for the month-in-wordpress templates. There's no CSS changes yet, just the markup.
    
    Some notes:
    * The wp:query block has some limitations and oddities. I've set columns to 4 because otherwise it was only showing 2. Could be an off-by-one bug or just some quirky layout stuff.
    * I used perPage:10000. 0/-1 don't work like WP_Query. I'd prefer to set the limit to something like 60 (5 years per page), but it seems that the pagination block doesn't pay attention to the query block's page parameters and that would mean putting a magic number in two places. Probably there's a sensible way to handle that, but for now I've just removed the pagination altogether.
    tellyworth committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    73d06e9 View commit details
    Browse the repository at this point in the history
  2. Limit the query to the right category

    This uses the `category` pseudo-attribute from #88.
    tellyworth committed Nov 29, 2021
    Configuration menu
    Copy the full SHA
    ad25ed4 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Make headings links

    tellyworth committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    83d3f96 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5cc172 View commit details
    Browse the repository at this point in the history
  3. Workaround for an issue in query handling

    There's a weird bug or unexpected behaviour around setting the query vars in this context. This isn't right but it'll look better for the demo.
    tellyworth committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    1c5609f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1051936 View commit details
    Browse the repository at this point in the history