Closed peterfremlin closed 1 year ago
Sure. Can be doe either by matching the page slug to the tag slug, OR by applying the tag to the page. Your choice of options - the second one may be less fiddly, and gives you the option to have two tags show up together.
Do you want the existing styling for a tag page, just with the extra page content (using Dawn's existing styles) at the top, or something else?
Do you want the tag description displayed somewhere? What about the tag name, or will you use the page title?
I think your first question is about way to set it up with routes/etc.
On the styling question, I don't love the existing styling of a tag page, and I don't need tag description/title as essentially I would be making that page content. I think I want a regular page styling that I can totally adjust in the editor, then the posts underneath.
Got it. I was asking if the way the posts at the bottom should look matches something on the site already. :)
Done. See directions about author page setup.
Nice solution.
However the tags could easily have a page named by that by accident, so rather than defaulting to /{slug} can it check the page /tag-{slug} and load from there
Absolutely, no problem.
On Tue, Aug 29, 2023 at 11:40 AM peterfremlin @.***> wrote:
Nice solution.
However the tags could easily have a page named by that by accident, so rather than defaulting to /{slug} can it check the page /tag-{slug} and load from there
— Reply to this email directly, view it on GitHub https://github.com/peterfremlin/Disability-Debrief/issues/6#issuecomment-1697699534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKCXDVTJB4M2VKCBNBEEEEDXXYEQLANCNFSM6AAAAAA3C5HCJQ . You are receiving this because you commented.Message ID: @.***>
A visual issue on these pages is a bit of a coordination between the article list and what comes before.
see eg
Title added (in the HBS for both tag and author pages).
It's the same font, but a bit smaller. To my eye, the clash is coming from the difference in margin. Here's a tweak that makes the feed match the content margin:
What do you think about that? I can make the fonts be the same size, but then the feed section will definitely need to be wider to accommodate larger text.
Have adjusted the tag page to look for tag-something instead of just something as a page slug. Have added a "tag page" custom template that you can assign to these tag pages that'll automatically redirect the user to the correct page, in case they get there on accident.
The reduced margin looks good on the author pages. Not sure if it's in the tag pages yet?
The "articles" title on author/tag pages will be better in the style of h2 in the regular pages, rather than the styling used on home page
The author page template should use the same image style as the narrow feature image template.
adjusted. Tags and authors.
Oops, still looking at the h2 question. Here's the default h2 styling. Is this what you had in mind?
There is a different styling of the h2 in gh-content. But I think the solution is for me to make the title in the editor, rather than the template, as that will let me adjust things as necessary and change the titles for different pages.
The thing to do is to reduce the spacing between the list of articles and the text of the editor, so it can come with a natural space after an h2 made in the editor.
Doing this for tags now. Do you want the authors page the same way? Or just better match gh-content h2 and keep it hard-coded as "articles"?
Label created at the end of the tag-tagslug page, as an H2. I also added two carriage returns before the h2.
Do the same for authors please
completed.
A page template that will list the posts of the primary tag under the page text.
(i.e. so that the tag page can be changed in the editor).