I was able to deal with archiving comments in a satisfactory manner. The old Drupal comments will be integrated in the blog posts within Lektor as HTML. This markup is styled appropriately for the new version of the site. Using redirects, we'll avoid breaking comment permalinks.
The caveat with maintaining permalinks for comments is that in building the site, Lektor will need to generate several thousand small HTML files under /comment. This is likely to impact the time it takes to build the site, but how much remains to be seen.
I was attempting to test the Embedding feature on our staging Lektor site (for comments), however the forum still being private at the moment is blocking:
Embedding comments from a private site
For private Discourse instances, if Discourse is on a subdomain of the blog’s domain, comments will be displayed for users who are logged into Discourse. Users who are not logged into Discourse will see a ‘refused to connect’ message. If Discourse and the blog are on completely separate domains, no comments will be displayed for private forums.
We're on completely different domains, (torproject.net vs torproject.org) so nothing is displayed, rather I get a Firefox error message in the iframe resulting from a 400 Bad Request reply on Discourse's side.
There's not built-in "Draft" feature in Lektor but one can set _discoverable: no in a contents.lr file to hide the page from the index, sidebar and feeds. If we use a merge-request style workflow, however, we probably won't need it.
I need help when it comes to step 10, as I don't know how to upload / add an asset. Just not something I have done before.
Here is my best bet:
When you are in your project, navigate to the assets/static/images/blog folder. Click on the + icon which has an arrow pointing down next to it (see the image), then click on the option to upload a file.
Making a note here that an automated site rebuild will be required at least once per day, otherwise the contents of "Upcoming events" eventually becomes outdated.
On 2021-10-04 14:19:27, Jérôme Charaoui (@lavamind) wrote:
Jérôme Charaoui commented:
Making a note here that an automated site rebuild will be required at least once per day, otherwise the contents of "Upcoming events" eventually becomes outdated.
--
Antoine Beaupré
torproject.org system administration
Lately I've been testing embedding blog posts into the forum for the comment area. This works, but the challenge is making the posts on the forum look good. I've opened a channel with the Discourse team to find ways to improve this and will report my findings here.
With the help of the Discourse team I've been able to work it out. When a new blogpost will be added to the blog, the first visitor will trigger the creation of the topic on the forum. The post will be imported in full and appear immediately in the topic list on the forum as a new topic. Example: https://forum.torproject.net/t/global-encryption-day-maketheswitch/232
Important to note, posts imported from Drupal will not trigger the creation of a forum topic, and a read-only copy of the old comment section will be displayed under the post.
We're on track to deploy the new blog this Wednesday. A working copy of the site is already available on the static mirror system, responding to queries for https://blog.torproject.org.
There's still a few issues to iron out, mainly related to implementing Review Apps to support the publishing workflow.
I had it on the schedule to make a blog post tomorrow, but the blog transition is happening, which I imagine means no new posts for the day, at least. When do you expect we should be able to make new posts to the blog?
@smith While @anarcat and I set up the new publishing workflow, you can open an issue in this project which includes your markdown-formatted text and any accompanying assets, and I'll make the commit(s). You'll be able to review the result on the staging site before we push to prod.