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

POC Use WordPress's new template mechanism #1594

Closed
wants to merge 12 commits into from
Closed

Commits on Feb 11, 2022

  1. Allow inserting raw HTML in base template

    * This way we can generate the inner HTML using core blocks and output
    it where it needs to be.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    d15bc51 View commit details
    Browse the repository at this point in the history
  2. Add author template

    * First test with the new block-templates feature in WordPress. The
    naming is terrible so here's a full description: templates added to the
    block-templates directory are assigned by name to a certain type of
    dynamic content pages.
    * I created the page in the block editor and set the Query Loop block to
    use "inherit query from template". It's unclear exactly how things such
    as how many items per page need to be configured.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    3b5a370 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5bd7d74 View commit details
    Browse the repository at this point in the history
  4. Exclude page header if raw content is passed

    * The post title it gets on the author page is the author's latest
    post's title. This is because WordPress uses some weird global
    variables.
    * Instead for now I'll make it use the author bio block, which is the
    closest available.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    518c043 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e689859 View commit details
    Browse the repository at this point in the history
  6. Add post links

    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    abeba32 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b16addc View commit details
    Browse the repository at this point in the history
  8. Show avatar

    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    e08deaf View commit details
    Browse the repository at this point in the history
  9. Make it look like listing page designs

    * I might try to move some to template parts.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    9e0dfd8 View commit details
    Browse the repository at this point in the history
  10. Add some styles, inline group classes

    * Starting to look pretty close to the design.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    c49f1fc View commit details
    Browse the repository at this point in the history
  11. Add tag and p4-page-type templates

    * Almost identical to the author template, will move shared parts to
    template parts later.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    3085322 View commit details
    Browse the repository at this point in the history
  12. Don't show post type on post type page

    * It's all the same.
    Inwerpsel committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    3bb1698 View commit details
    Browse the repository at this point in the history