Create and edit Hugo-compatible markdown that works seamlessly with the existing Hugo + Obsidian workflow. This skill covers Hugo-specific extensions and the conversion between Obsidian and Hugo formats.
Workflow: Creating a Hugo Post
Add TOML frontmatter with title, date, tags, and draft status at the top of the file
Write content using standard Markdown for structure, plus Hugo-specific syntax below
Link related notes using Hugo wikilink shortcodes (Note) for internal vault connections
Add Hugo shortcodes for enhanced functionality (alerts, figures, etc.)
Test locally with hugo server to verify the post renders correctly
Deploy via GitHub Actions pipeline when ready
When choosing between wikilink shortcodes and standard links: use note for notes within the vault (maintains Obsidian compatibility) and [text](url) for external URLs only.
TOML Frontmatter
Hugo uses TOML frontmatter delimited by +++:
+++title = "My Blog Post"date = "2024-01-15T10:30:00"tags = ["blogging", "hugo", "static-sites"]
draft = false+++
Required fields:
title - Post title (quoted string)
date - Publication date (ISO format recommended)
draft - Boolean (false for published, true for drafts)
hugo server # Start dev serverhugo server -D # Include drafts
Deployment
Push to main branch - triggers GitHub Actions
Automatic build - Hugo processes all content
Wikilink conversion - obsidian-to-hugo.py runs
Deploy to GitHub Pages - via pages.yml workflow
Theme-Specific Features (hugo-bearblog)
Minimal Design
Focus on content over aesthetics
Fast loading (no JavaScript by default)
Clean typography
Configuration
Key settings in config.toml:
[params]
title = "Blog Title" description = "Blog description"# Hide "made with" line hideMadeWith = true
Portuguese Support
languageCode = "pt-BR"
Complete Example
+++
title = "Reflexões sobre Static Site Generators"
date = "2024-01-15T09:00:00"
tags = ["web", "hugo", "jamstack", "reflexão"]
draft = false
+++
# Reflexões sobre Static Site Generators
Depois de migrar de
WordPress para Hugo, algumas observações sobre o processo.
## Vantagens Descobertas
- **Performance**: Sites estáticos são naturalmente rápidos
- **Segurança**: Sem banco de dados, sem vulnerabilidades comuns
- **Versionamento**: Todo conteúdo no Git
## Integração com Obsidian
A combinação Hugo +
Obsidian permite:
1. Escrever em ambiente familiar
2. Manter links internos funcionais
3. Publicar automaticamente
Ver também:
meu workflow atual## Próximos Passos
- Explorar
Hugo Modules- Implementar
busca no site- Melhorar
SEO
Troubleshooting
Common Issues
Wikilinks not converting: Check that obsidian-to-hugo.py is running in the GitHub Actions workflow.
TOML syntax errors: Ensure all strings are properly quoted, especially titles with special characters.
Build failures: Check Hugo version compatibility and verify all shortcodes are properly closed.
Missing assets: Ensure images and files are in the correct bundle directory structure.
Validation
Local testing:
hugo server --navigateToChanged # Auto-refresh on changes
Build testing:
hugo --minify # Production build
Link checking: Manually verify wikilinks resolve correctly in the built site.