[PAID] Convert discourse topics(forum) to Google AMP automatically

What would you like done?

I want to convert all my discourse forum topic pages (my entire forum including home page) to Google AMP automatically.

Have you or some one else has done this already in a plugin ?

if not, I’m happy to pay for this. let me know please. you can inbox me as well.

The solution must follow all AMP https://amp-dev.cdn.ampproject.org/v/s/amp.dev/?amp_js_v=a2&amp_gsa=1&usqp=mq331AQFKAGwASA%3D#aoh=15924979196851&referrer=https%3A%2F%2Fwww.google.com&amp_tf=From%20%1%24s&ampshare=https%3A%2F%2Famp.dev%2F best practices and be compatible with all future discourse updates and or theme updates.

When do you need it done?
Whenever it is possible.

What is your budget, in $ USD that you can offer for this task?

I am open to offers, please let me know.


Here’s something to read about it.

Secondly, this if done in a plugin would be a massive template override. I would love to know more about discourse AMP if there’s an expert here. Feasibility is in question here. As an AMP dummy, I would say try to go ahead incrementally using plugin outlets as much as possible.


@fzngagan thanks for your response . I have checked related topics on metadiscourse related AMP. I do see alot of people are indeed interested in this. Is it possible somehow to create an AMP version of topic page and keep it somewhere on my siteas a file.

and I can include a line in my html topic template of discourse to show where is the amp version of this page.

e.g this will be added to current html discourse topic pages

<link rel="amphtml" href="https://www.example.com/url/to/amp/document.html">

and this will be added to the amp page

<link rel="canonical" href="https://www.example.com/url/to/full/document.html">

source Make your pages discoverable - amp.dev

But how and where can I host that AMP file so that I can serve it from my site.

Is there anyone in discourses team or marketplace who can do this for me? As I’m not fully familiar with discourse working structure of template and where would I host the amp version of my topic pages. it needs to be a file and needs to be placedsomewhere on my site.

we can create a new AMP file and if we pass a topic name and ID, using discourse API, we can dynamically populate the values of that topic and get its posts and insert inthe AMP version of the page. but where can I host this custom AMP file in my discourse forum? I’m running discourse standalone on my site, not on subdomain.

Can anyone help me with this? happy to pay for this. @staff @team who should i tag so that my topic gets more visibility with the right people who can help me?


Hi @Faizan_Zahid, I’d recommend converting only questions’ pages, so they be indexed by Google/AMP cache, so when the user came from an AMP cache’s version, this AMP page will preload your existing PWA, then when the user clicks a link to another page, your PWA takes place.


@eduardogoncalves Thanks, but i still haven’t figured out the way on how to support my discourse topic pages to support AMP and have an alternate AMP version of a topic page. I am still finding somebody who can do this as a paid project or paid plugin for me.

1 Like

Hello :slight_smile:

I’ll download Discourse’s Docker image and play with it to see if I can help.

I think we have two options:

  • try to parse emberjs output to an AMP compatible format
  • or create a new template from scratch for AMP pages.

Can someone confirm if the version that loads when js is disabled is the one at discourse/app/views/topics at master · discourse/discourse · GitHub


@eduardogoncalves Many thanks for finally taking the initiative in trying support AMP for topics pages. May be somebody from @pfaffman or @angus can answer your question. :slight_smile:

That view seems to contain files for google structure data, i think you could put a generic AMP supported topic layout page on it and populate the topic dynamically it with discourse API to feed in topic title, meta content, posts etc

Also, does anyone know how can i enable the google structure data feature on my discourse topics especially questions so that Google shows them in a nice snippet form like it does for other Q/A sites.

1 Like

Hello, sorry for the delay… These last weeks are been so busy at work.

As I told Faizan at Linkedin’s chat, I have no experience with Discourse and Ruby.
Can someone point me how to add a route with "/amp " in the end of the url, ex.:“https://meta.discourse.org/t/paid-convert-discourse-topics-forum-to-google-amp-automatically/155244/7/amp” and load a custom template file.


@eduardogoncalves have a look at Creating Routes in Discourse and Showing Data it will help you.

thanks to @pfaffman for his help


It looks like it’s not working.


Hi there, just wanted to clarify — is this still an open job or a discussion about implementing AMP? If the latter, I’d be happy to move to #dev. If still an open job, please keep conversation limited to that.

Thanks a bunch!


This is an open job, we are trying to find someone who can do this as paid project (support AMP on all pages of discourse). if you know someone or could refer, please get in touch @justindirose on faizan.zad@gmail.com

thanks alot

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.