'404 page over multiple repositories

I have a GitHub Pages site (in spanish, sorry for that) divided into multiple repositories and I want to display the custom 404 page for all the directories (different repos) without copypasting the 404 html file for every repo.

Is there any way to do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source