Skip to content

Commit

Permalink
Update url_debug_message.html
Browse files Browse the repository at this point in the history
  • Loading branch information
luost26 committed Oct 20, 2024
1 parent 8b8c6d3 commit 3bd9ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/widgets/url_debug_message.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ <h5><i class="fas fa-exclamation-triangle"></i> Warning</h5>
The name of your GitHub Pages repository ("<code class="repo-name-text"></code>") does not match your GitHub username.
<br>
<strong>Solution:</strong> Please consider renaming the repository to "<code class="domain-name-text"></code>".
If the current repository name is intended, you can ignore this message by removing {% raw %}"<code>{% include widgets/url_debug_message.html %}</code>"{% endraw %} in <code>index.html</code>.
</div>
</div>
</div>
Expand All @@ -40,7 +41,7 @@ <h5><i class="fas fa-exclamation-triangle"></i> Warning</h5>
element.textContent = location.hostname;
});

if (striped_pathname.search("github.io") != -1){
if (striped_pathname.search("github.io") != -1 && location.hostname.search("github.io") != -1){
document.getElementById("ghpages-domain-debug-message").classList.remove('d-none');
}

Expand Down

0 comments on commit 3bd9ae3

Please sign in to comment.