···11# leaflet-hugo-sync
2233-WIP
33+Syncs Leaflet blog posts from the AT Protocol network to Hugo-compatible markdown files.
44+55+## Configuration
66+77+Create a `.leaflet-sync.yaml` file in your `hugo` project:
88+99+```yaml
1010+source:
1111+ handle: "username.bsky.social"
1212+ collection: "pub.leaflet.document"
1313+ publication_name: "optional-publication-name"
1414+1515+output:
1616+ posts_dir: "content/posts/leaflet"
1717+ images_dir: "static/images/leaflet"
1818+ image_path_prefix: "/images/leaflet"
1919+2020+template:
2121+ frontmatter: |
2222+ ---
2323+ title: "{{ .Title }}"
2424+ date: {{ .CreatedAt }}
2525+ original_url: "{{ .OriginalURL }}"
2626+ ---
2727+```
2828+2929+## How it works
3030+3131+The tool resolves your Bluesky handle to find your personal data server, fetches your Leaflet documents, converts them to markdown, downloads embedded images, and writes Hugo-compatible markdown files to your specified output directory.