-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to use ads.txt in the root #509
base: dev
Are you sure you want to change the base?
Conversation
💥 No ChangesetLatest commit: 260ed0d Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂 If these changes should be published to npm, you need to add a changeset. This PR includes no changesetsWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Click here to learn what changesets are, and how to add one. Click here if you're a maintainer who wants to add a changeset to this PR |
This might be out of the scope of this PR but it would be great to check if there's an ads.txt file in the WP domain, that would allow users to leverage plugins like https://wordpress.org/plugins/ads-txt/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mdesignerco! Thanks for your contribution! 🙂
I think this PR would need a little bit of work to be merged still though.
Could you:
- Add a changeset by running
npx changeset
at the root of the repo? You can see examples of changesets in other (already merged) pull requests. More info: Add support to use ads.txt in the root #509 (comment) - Add a unit test / end to end test (I think that you can mostly copy the tests for the robots.txt file). Have a look at the pull request which added support for
robots.txt
files` to see how we did it there.
Once that's done I can add the TSDocs and open the issue in our documentation repo!
i'll see thanks! |
Hey guys, a couple of things. I think it makes sense to merge this, thanks @mdesignerco for the contribution 🙂 For deploys to Vercel, we also need to update our Now builder, the same way we did it here: https://github.com/frontity/now-builder/pull/23/files @mdesignerco would you mind doing a PR there as well?
That's definitely the way to go. We will accomplish these in different ways, depending on the mode:
We don't have yet a Feature Discussion for |
I've started the FD: https://community.frontity.org/t/ads-txt/2244 |
Sure, i'll see this PR and i'll try. =) |
Thanks for the But there's no need to close this PR, don't worry. We can also merge it for the people using Frontity in a NodeJS server. |
@luisherranz Do you think we can just merge it as is until we have server extensibility (after adding the TSDoc, changeset and link in the docs repo, of course)? |
Yeah, I think so. For single-site projects it's still very convenient, don't you think? |
@SantosGuillamot let us know what we should do with this 🙂 |
It seems it would already add value to the users, so we can merge this and work on the |
@SantosGuillamot Yes, this can be useful to some users. There are only some "bookkeeping" tasks left:
I ll take care of this when I have a moment after finishing the support for auth headers. |
Awesome, thanks Michal! |
Is this complete? How do we handle ads.txt in the root? |
Only a changeset and a unit test and e2e test, as Michal mentioned here. If you are willing to add those, I'll gladly review and merge this 🙂 You need to open another PR, though. |
What:
Added a check if an ads.txt exists in the root of the theme
Why:
Empowers creators of the content to add the support of ads.txt for google adsense
How:
I copied the line for favicon and i replaced with ads.txt
Tasks:
Unrelated tasks: