-
Notifications
You must be signed in to change notification settings - Fork 34
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
Commits on Feb 11, 2022
-
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.
Configuration menu - View commit details
-
Copy full SHA for d15bc51 - Browse repository at this point
Copy the full SHA d15bc51View commit details -
* 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.
Configuration menu - View commit details
-
Copy full SHA for 3b5a370 - Browse repository at this point
Copy the full SHA 3b5a370View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bd7d74 - Browse repository at this point
Copy the full SHA 5bd7d74View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 518c043 - Browse repository at this point
Copy the full SHA 518c043View commit details -
Configuration menu - View commit details
-
Copy full SHA for e689859 - Browse repository at this point
Copy the full SHA e689859View commit details -
Configuration menu - View commit details
-
Copy full SHA for abeba32 - Browse repository at this point
Copy the full SHA abeba32View commit details -
Configuration menu - View commit details
-
Copy full SHA for b16addc - Browse repository at this point
Copy the full SHA b16addcView commit details -
Configuration menu - View commit details
-
Copy full SHA for e08deaf - Browse repository at this point
Copy the full SHA e08deafView commit details -
Make it look like listing page designs
* I might try to move some to template parts.
Configuration menu - View commit details
-
Copy full SHA for 9e0dfd8 - Browse repository at this point
Copy the full SHA 9e0dfd8View commit details -
Add some styles, inline group classes
* Starting to look pretty close to the design.
Configuration menu - View commit details
-
Copy full SHA for c49f1fc - Browse repository at this point
Copy the full SHA c49f1fcView commit details -
Add tag and p4-page-type templates
* Almost identical to the author template, will move shared parts to template parts later.
Configuration menu - View commit details
-
Copy full SHA for 3085322 - Browse repository at this point
Copy the full SHA 3085322View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb1698 - Browse repository at this point
Copy the full SHA 3bb1698View commit details