-
I wanted elements in my home sections to have different specifications to elements in my installation section. Is there a way to do as the title says? I know that I could just put all elements in the page to one class and all elements in the installation page to another, and then add any page-specific specification to those classes, but is there a more elegant way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, you can use HTML in Markdown: <link rel="stylesheet" href="link/to/stylesheet" />
<style>
/* Inline styles */
</style> Note that the stylesheet link probably has to be absolute, or it won't work correctly. Alternatively, you can use theme extension, as Material for MkDocs does itself for the homepage, and provide a separate template for each site, which adds the relevant stylesheets. mkdocs-material/src/overrides/main.html Lines 25 to 33 in 619d47f |
Beta Was this translation helpful? Give feedback.
Yes, you can use HTML in Markdown:
Note that the stylesheet link probably has to be absolute, or it won't work correctly.
Alternatively, you can use theme extension, as Material for MkDocs does itself for the homepage, and provide a separate template for each site, which adds the relevant stylesheets.
mkdocs-material/src/overrides/main.html
Lines 25 to 33 in 619d47f