Jekyll 更改GH页面上的GitHub配置文件链接
我想用GitHub页面和Jekyll创建一份在线简历。我用的是极简主义的主题 它附带了一个指向我的GitHub帐户的边栏链接。但是,因为我创建了一个组织以获取自定义地址(Jekyll 更改GH页面上的GitHub配置文件链接,jekyll,github-pages,Jekyll,Github Pages,我想用GitHub页面和Jekyll创建一份在线简历。我用的是极简主义的主题 它附带了一个指向我的GitHub帐户的边栏链接。但是,因为我创建了一个组织以获取自定义地址(myname.github.io而不是myusername.github.io)。这意味着它链接到该组织,但我希望它链接到我的帐户 我如何才能做到这一点?如项目中建议的那样,还包括更改链接的附加步骤: 从主题的存储库复制原始模板 (专业提示:单击“原始”以简化复制) 在站点中创建名为/_layouts/default.html的
myname.github.io
而不是myusername.github.io
)。这意味着它链接到该组织,但我希望它链接到我的帐户
我如何才能做到这一点?如项目中建议的那样,还包括更改链接的附加步骤:
<a href="{{ site.github.url }}"> <h1>{{ site.title | default: site.github.repository_name }}</h1> </a>
<p>{{ site.description | default: site.github.project_tagline }}</p>
{% if site.github.is_project_page %}
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
{% endif %}
{% if site.github.is_user_page %}
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
{% endif %}
{% if site.show_downloads %}
<ul>
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
</ul>
{% endif %}
{{site.description}默认值:site.github.project_tagline}
{%if site.github.is_project_page%}
{%endif%}
{%if site.github.is_user_page%}
{%endif%}
{%if site.show_downloads%}
{%endif%}
如项目中建议的,更改链接的附加步骤:
<a href="{{ site.github.url }}"> <h1>{{ site.title | default: site.github.repository_name }}</h1> </a>
<p>{{ site.description | default: site.github.project_tagline }}</p>
{% if site.github.is_project_page %}
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
{% endif %}
{% if site.github.is_user_page %}
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
{% endif %}
{% if site.show_downloads %}
<ul>
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
</ul>
{% endif %}
{{site.description}默认值:site.github.project_tagline}
{%if site.github.is_project_page%}
{%endif%}
{%if site.github.is_user_page%}
{%endif%}
{%if site.show_downloads%}
{%endif%}