aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--_includes/common/header.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/_includes/common/header.html b/_includes/common/header.html
index fc99302..a41b26e 100644
--- a/_includes/common/header.html
+++ b/_includes/common/header.html
@@ -7,8 +7,17 @@
{% assign project_name = site.settings.project.name %}
{% unless project_name %}
- {% if site.github && site.github.is_project_page %}
- {% assign project_name = site.github.repository_name %}
+ {% if site.github %}
+ {% comment %}
+ What the damn hell? site.github.is_project_page is set to true even
+ for my root user site (the one with the .github.io suffix).
+ TODO: remove the following workaround and replace with a simple check
+ site.github.is_project_page above when this is fixed?
+ {% endcomment %}
+ {% capture assumed_user_name %}{{ site.github.owner_name }}.github.io{% endcapture %}
+ {% if site.github.repository_name != assumed_user_name %}
+ {% assign project_name = site.github.repository_name %}
+ {% endif %}
{% endif %}
{% endunless %}
{% assign author_name = site.settings.author.name %}