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

Create template and template part samples that aren't part of the theme #9

Open
bobbingwide opened this issue Apr 28, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Apr 28, 2021

I started with an almost completely empty theme and have been building up the templates and template parts in the Site Editor.
Now I need to be able to save the intermediary stages of the theme development.
I don't want to save the files as template and template part .html files since these would be automatically loaded as part of the theme. Is this a silly idea?

Alternatives:

  1. Deliver the minimal part of thisis as a new theme called minimal. Similar to emptytheme but even less.
  2. Store the exported templates and template parts as .htm files
  3. As 2. but provide a mechanism to load them as patterns.
  4. Store the exported templates and template parts as .html files anyway

Consideration

  • I'm already storing screenshots which make the theme rather large
@bobbingwide
Copy link
Owner Author

Is this a silly idea?

Actually, it's a good idea to store the latest version of the templates and template parts in the theme's folders since I'm going to need them when I move the site to live.

My latest ideas are:

  1. If you really want the minimal theme checkout version 0.0.0 or 0.1.0. There are styling problems if experimental-theme.json is empty.
  2. Discarded / abandoned templates and template parts can be saved as .htm files.
  3. The https://github.com/bobbingwide/oik-patterns plugin can be used to load them.
  4. Store the exported templates and template parts as .html files, as expected for an FSE theme.
  5. Move the screenshots to an assets folder... once the video's complete.

@bobbingwide
Copy link
Owner Author

bobbingwide commented Jan 21, 2022

For bobbingwide/oik-patterns#4 I've moved the .htm files to the patterns directory and renamed them to .html. Some of them are OK. But most should be trashed and replaced with more appropriate patterns.
These can be extracted from existing content. Examples being:

  1. Images with duotone applied. See https://sneak-peek.me/2021/06/11/call-7-polished-portfolios/
  2. Row groups for post meta data. See fizzie metadata.html template part
  3. Some of the Query loop examples. See https://sneak-peek.me/2021/05/01/how-do-i-use-css-grid-to-style-query-output/
  4. Row groups for block info displayed in tabular form. See https://sneak-peek.me/2021/05/13/can-i-use-grid-to-wrap-divs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant