A reddit-ish theme for Discourse

Odd, it works for me:


It’s not part of the site texts. It’s part of the theme.

Go below where all the related translations are located:

I understand it might be confusing!

1 Like

I feel so stupid now, been so used to using the site texts, didn’t even realise they were there. Thankyou so much :slight_smile:

1 Like

Awesome work! Is there any way I can add a image background to the theme at all?

1 Like

Hey - I really love the theme. I think it really works well for encouraging discussion and showing media.

Two things I’m trying to solve for (in attached image) and curious if anyone has suggestions. Keep in mind, I’m new to hosting a discourse community. I’m self-hosted.

  1. YouTube loads beautifully in the post itself, but I only get a thumbnail in the post preview on the homepage. I’m sure this is a performance play potentially but is there a way to make it to where it would actually load the video so you could watch directly from the home page on the topic preview? I understand the trade off that it’s less likely someone may click into the topic to engage in the discussion, so I can see why this was an intentional choice but wanted to see what the options are there.
  2. The top post in my screenshot has a poll as the first thing on the post, but the poll doesn’t get shown on the topic preview. Can this be changed to show polls just like images (or the Youtube thumbnail in the above example) - essentially make it a media type that would be displayed in the topic preview rather than having to click into the topic?

Thank you so much in advance for the guidance.

2 Likes

I would be interested in that too!! It seems to be possible here.

It’s somewhat possible, but has a lot of shortcomings… if a youtube video is posted as the featured link (i.e., the URL is entered as the title of the topic), which it appears it is in your screenshot, then the URL is available in the topic list and this can be used to embed the video (this will take some additional work in the theme)

The shortcoming is that if the link is simply posted in the body of the first post, it doesn’t get picked up as a featured link… and Discourse would still grab the thumbnail, but the video URL wouldn’t be available on the topic list. So it’s almost a hidden feature.

Also each video provider would need some custom logic in the theme to support embeds, so it wouldn’t work automatically for every video.

Generally this is something a custom plugin could do better. A plugin could check for video links in the original post and pull them out as the featured link automatically.

This is also fairly tricky because of similar issues, at the topic list level we have no idea if the original post has a poll… we don’t serialize any data about it. We could maybe check for poll in the excerpt, and then try to fetch the data from the topic as a separate request… but this would only work if the poll is at the top of the post and may have some performance issues.

A custom plugin would also be able to handle this better.

Thank you! This is a helpful response. I’ll look into some potential solutions for this based on what you suggested. Ultimately, may be too big of a lift for me to attempt on my own but I might give it a go.

If I come up with a solution that might help others on that, I’ll share it. I see the challenges for sure though, and it may be a “is the juice worth the squeeze?” sort of situation.


当设置有类别徽标时,最上方会只显示徽标图片。

If the topic post has code fences (triple backticks), the topic list preview has a rectangle that says ‘No Glyph’ in its place.

This happened here on Meta.

1 Like