-
Notifications
You must be signed in to change notification settings - Fork 47
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
How to modify automatically generated text #72
Comments
The reading time is always included in the HTML content, along with categories, tags, series, authors, title, description, content, etc. CSS IDs and classes for each of these are documented for hiding/transforming each of these things as needed. See, for example, https://github.com/willfaught/paige?tab=readme-ov-file#minimal-look. I'm not sure if I answered your question. |
The exampleSite uses the "minimal look" approach to hide the reading time, for example. |
Thank you for the response - it's much appreciated. I don't know CSS / I don't know how to use this nicely documented information. Here's what I've tried:
I also tried the same procedure but deleting the reading time line instead of trying to hide it. |
I'm not sure what this means. The minimal look CSS already sets display to none. Can you paste what you have here?
I'm not sure what this means. Do you mean the reading time value in the HTML templates (layouts/partials/paige/metadata.html and layouts/partials/paige/page.html, if I remember correctly)? |
(1) I see - so, if I understand correctly, I have not successfully instituted the minimal look. Here's a screenshot of my attempt to institute the minimal look. I'm working inside the exampleSite because that's the only place I can find a file called style-first.css. (2) No, I haven't modified any files in the partials folder. I was deleting anything that referred to reading-time in [my site]>public>[name of my page, or it might be called a post]>index.html. |
That looks correct. Does that not hide the reading time when you view the site with
I see. You should never have to edit generated files in the public or resources directories. Instead, the templates (and the data they use as input) should be modified to generate what you want. |
I tried the following:
|
I restarted site creation from a blank slate and it worked. Thanks for your time. |
Sorry for the delay replying. style-first.css goes in your site, not in the theme. From https://github.com/willfaught/paige?tab=readme-ov-file#include:
It looks like you've copied Paige into yoursite/themes/paige. So you would put style-first.css at yoursite/layouts/partials/paige/style-first.css, not yoursite/themes/paige/layouts/partials/paige/style-first.css. Hope that helps. |
Could you make a short set of instructions for how to modify the text that is generated by the theme? Specifically, I'd like to stop the paige-reading-time from being generated on every post every time I re-run the server.
The text was updated successfully, but these errors were encountered: