Comments (5)
Hi!
So, there is _custom.scss
file, whoch is empty by default, you can put your css styles there.
This file defines all styles for markdown page, highlighted lines are heading styles
https://github.com/alex-shpak/hugo-book/blob/master/assets/_markdown.scss#L11-L47
Here are styles for navigation lists, includes both left and right
https://github.com/alex-shpak/hugo-book/blob/master/assets/_main.scss#L45
but you can put your styles for TOC in #TableOfContents
as it is what hugo generates
from hugo-book.
as for levels you will have to go with nesting rules in CSS
here is some inspiration with numbered lists
https://github.com/alex-shpak/hugo-book/blob/master/assets/plugins/_numbered.scss
from hugo-book.
Thank you for the pointers and help. I will have a look and play around a bit.
from hugo-book.
I have tried to follow your example and hints given in other issues, but I can't seem to get it to work. Am I missing something?
from hugo-book.
I found my mistake.
I compiled with hugo -D serve
which doesn't work. But compiling with hugo server --disableFastRender
makes it work.
from hugo-book.
Related Issues (20)
- Highlighting Color Scheme and Adding Line Numbers to Expand Shortcodes
- Expand shortcode is deprecated. Use 'details' instead. HOT 1
- no such template "_internal/google_analytics_async.html" HOT 1
- IsMultiLingual error on build HOT 5
- Odd menu issue w/ Book upgrade
- youtube in tab broken
- Strange issues on build...
- Edit Page (BookEditPath) function not working for multilanguage projects
- where to hide categories and tages and these three dots?
- blog
- Example for menu with subdirectories
- The table of contents in the Hugo book theme use to much space HOT 2
- It is possible to display more titles in the blog main page? HOT 1
- No Bash syntax highlighting
- Remove persistent "#" symbol on Headers HOT 2
- Why do page titles hyperlink to the very same page?
- Code block line numbers are misaligned
- What if I have more than one book?
- HelloGitHub Badge
- failed to extract shortcode: template for shortcode "hint" not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-book.