V
V
Vladimir2019-03-27 02:19:12
GitHub
Vladimir, 2019-03-27 02:19:12

How to solve a problem with GitHub Pages?

I post my assembly using the gulp plugin gulp-gh-pages. The question is: since the path to the site looks like this in GH Pages username.github.io/repository-name/, then all my type paths /img/cat.jpgbreak. What are the solutions to the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-03-27
@Robur

Use relative paths. img/cat.jpgmight well work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question