Welcome to My Hugo Blog
This is my first post using the Hugo Narrow theme. The theme supports many features including:
Features Configured
- Recent Posts: Shows the 5 most recent posts on the homepage
- Related Posts: Displays 3 related posts at the bottom of each post
- Reading Progress: Shows a progress bar while reading posts
- License Information: CC BY-NC-SA 4.0 license displayed on posts
- Multiple Themes: Support for various color schemes
- Dark/Light Mode: Toggle between dark and light themes
Code Example
JAVASCRIPT
function helloHugo() {
console.log("Hello from Hugo Narrow theme!");
return "Welcome to my blog";
}Math Support
The theme supports KaTeX for mathematical expressions:
$$E = mc^2$$
Mermaid Diagrams
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> B
This post demonstrates various features of the Hugo Narrow theme. Check out the navigation menu and theme switcher in the header!