Skip to content
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

Webfiles and Metatags: Generate robots.txt #219

Open
AZholtkevych opened this issue Apr 27, 2023 · 3 comments
Open

Webfiles and Metatags: Generate robots.txt #219

AZholtkevych opened this issue Apr 27, 2023 · 3 comments
Labels
area:content Related to Content API and Content Management enhancement New feature or request help wanted Extra attention is needed

Comments

@AZholtkevych
Copy link

AZholtkevych commented Apr 27, 2023

Generate robots.txt for sites.

Each site will have its own robots.txt which must be resolved dynamically by adding a route /robots.txt to

defmacro beacon_site(path, opts) do

A request to that route should call Beacon.Lifecycle.generate_robots_txt/1 which will provide a default implementation that should work for most scenarios:

# http://www.robotstxt.org
User-agent: *
Sitemap: #{endpoint.url()}/sitemap.xml

generate_robots_txt/1 should receive site as argument and call Elixir.Beacon.Config.fetch!(site).endpoint.url() to fetch current site url to be used as prefix for sitemap.xml location.

Then that content should be served as txt.

Depends on #169

Refs

@AZholtkevych AZholtkevych added the proposal Idea in research phase label Apr 27, 2023
@AZholtkevych
Copy link
Author

Depends on #95

@AZholtkevych AZholtkevych mentioned this issue May 1, 2023
29 tasks
@AZholtkevych AZholtkevych changed the title Core -> Webfiles and Metatags: Generate robots.txt Core -> Webfiles and Metatags: Generate 'robots.txt' May 1, 2023
@AZholtkevych AZholtkevych changed the title Core -> Webfiles and Metatags: Generate 'robots.txt' Core -> Webfiles and Metatags: Generate robots.txt May 1, 2023
@AZholtkevych
Copy link
Author

AZholtkevych commented May 2, 2023

Generating the file itself is trivial but we need to research how to serve it on multiple domains

@leandrocp
Copy link
Contributor

@AZholtkevych we can remove the dependency of #95 and add dependency on #169

@leandrocp leandrocp added enhancement New feature or request help wanted Extra attention is needed and removed proposal Idea in research phase labels May 4, 2023
@AZholtkevych AZholtkevych mentioned this issue Jun 9, 2023
18 tasks
@AZholtkevych AZholtkevych added this to the Version 0.1.0 milestone Sep 15, 2023
@AZholtkevych AZholtkevych changed the title Core -> Webfiles and Metatags: Generate robots.txt Webfiles and Metatags: Generate robots.txt Oct 23, 2023
@leandrocp leandrocp removed this from the v0.1.0 milestone Nov 1, 2023
@AZholtkevych AZholtkevych mentioned this issue Apr 21, 2024
45 tasks
@leandrocp leandrocp added the area:content Related to Content API and Content Management label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:content Related to Content API and Content Management enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

2 participants