Spliting an archetype and using style-first.css #64
-
I have a file +++
title = 'Find Median From Data Stream'
description = 'Brief description for find median from data stream'
date = 2024-05-28T13:47:02-07:00
authors = ['yangshun-tay', 'navdeep-singh']
categories = ['heap']
tags = ['min-heap', 'max-heap']
weight = 90
[paige]
style = """
#paige-authors,
#paige-keywords,
#paige-toc,
#paige-date,
.paige-authors,
.paige-keywords,
.paige-date,
"""
[paige.file_link]
disable = false
+++ When I move the part containing the styling ( Is there a way I can use an archetype and For example, single pages have the previous and next pages displayed at the bottom. If I want to disable this feature, I can add the below Paige styling to
Is there a better way of doing this ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I can split the configuration in the archetype and
|
Beta Was this translation helpful? Give feedback.
-
Sure. See the exampleSite, which inherits Paige's archetype (https://github.com/willfaught/paige/blob/master/archetypes/default.md) and also defines a style-first.css (https://github.com/willfaught/paige/blob/master/exampleSite/layouts/partials/paige/style-first.css).
Nope. Put that in style-first.css too.
There's no class for this, only the ID #paige-prev-next.
That looks good to me. Note that you can combine all the |
Beta Was this translation helpful? Give feedback.
I can split the configuration in the archetype and
style-first.css
in the following manner to achieve the desired results:archetypes/default.md
style-first.css