mirror of
https://github.com/olehomelchenko/olehomelchenko.com.git
synced 2026-02-04 18:44:36 +00:00
2.9 KiB
2.9 KiB
Quick Start Guide
✅ Setup is Complete!
The Quarto site infrastructure is ready. Here's how to work with it:
🚀 Preview the Site
quarto preview
Opens at http://localhost:4848 with live reload.
🎨 Theme & Styling
- Theme: Cosmo (clean, minimal Bootstrap theme)
- Custom CSS:
styles.css(minimal - just Vega chart centering) - To change theme, edit
_quarto.ymland try: cosmo, flatly, litera, minty, etc.
📝 Adding Your First Real Post
-
Create post directory:
mkdir posts/your-post-slug -
Create
posts/your-post-slug/index.qmd:--- title: "Your Post Title" date: "2024-03-15" lang: uk # or 'en' categories: - dataviz - showcase # Include for portfolio items description: "Brief description" --- Your content here... -
Preview changes (posts auto-discovered!):
quarto preview✅ Your new post will automatically appear in the listing - no manual updates needed!
📊 Using Vega-Lite Visualizations
Important: This project uses vega-lite.lua filter for Vega-Lite support.
Hugo shortcode (OLD):
{{</* vega-lite id="chart1" */>}}
{vega spec}
{{</* /vega-lite */>}}
Quarto with Lua filter (NEW):
```{vega-lite}
{vega spec}
```
With options:
```{vega-lite}
#| echo: false
#| code-fold: true
{vega spec}
```
See VEGA-LITE-SETUP.md for complete documentation and examples.
🔧 Common Commands
# Preview with live reload
quarto preview
# Build the site
quarto render
# Check for issues
quarto check
# Clean build cache
quarto clean
📂 Where Things Go
- Blog posts:
posts/post-slug/index.qmd - TILs:
til/post-name.qmd - Projects:
projects/project-name/index.qmd(or just list inprojects/index.qmd) - About page:
about/index.qmd - Homepage:
index.qmd
⚠️ Important Notes
- Use
lang: ukorlang: en(notlanguage:- that's reserved by Quarto) - Update listing pages when you add real content (see MIGRATION-README.md)
- Posts with
showcasecategory automatically appear in portfolio - Delete sample files after migrating your real content
🆘 Troubleshooting
Error: "list needs to have at least one item"
- Update the listing
contents:in the index page to reference actual files/directories
Vega chart not showing:
- Check the JSON is valid
- Ensure you're using ````{vega-lite}
code fence (not{json}`) - Check browser console for errors
Styles look wrong:
- Run
quarto clean && quarto renderto rebuild from scratch - Check
styles.csshasn't been corrupted
📚 Next Steps
- Test by migrating one post from Hugo
- Verify it displays correctly
- Batch migrate the rest
- Update all listing pages
- Delete sample placeholders
- Deploy!
See MIGRATION-README.md for detailed migration instructions.