# OneBox for embedded comment post

**URL:** https://meta.discourse.org/t/onebox-for-embedded-comment-post/238405
**Category:** Support
**Created:** [September 8, 2022, 4:56am UTC](https://meta.discourse.org/t/onebox-for-embedded-comment-post/238405 "2022-09-08T04:56:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scouten](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scouten/32/273277_2.png) [@scouten](https://meta.discourse.org/u/scouten)
#### Post date: [September 8, 2022, 4:56am UTC](https://meta.discourse.org/t/onebox-for-embedded-comment-post/238405/1 "2022-09-08T04:56:35Z")

</div>

I’m experimenting with using Discourse as (among other things) a commenting engine for my sites, which are all generated with static site generators.

I’m looking for a way to have OneBox previews for the automatically-generated Discourse posts that correspond to the original posts, but that doesn’t seem to be possible.

I was hoping a solution such as was suggested here ([Embed Discourse comments on another website via Javascript - #370 by JimPas](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963/370)) would work, but it did not. When I attempted to put the link on a line by itself, Discourse replaced my new lines with traditional spaces and thus the line-by-itself was lost. No OneBox joy.

I’m testing the integration here: [Deploying a Custom Build of Zola to Netlify](https://ericscouten.dev/2021/custom-zola-build/)

And the resulting Discourse page is here: [https://community.ericscouten.com/t/deploying-a-custom-build-of-zola-to-netlify/19](https://community.ericscouten.com/t/deploying-a-custom-build-of-zola-to-netlify/19)

Since the source site is statically-generated, what is rendered is entirely under my control. Except that I can’t render differently based on user agent.

Any suggestions to get OneBox joy in my Discourse site?
