-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make header and footer of layout configurable
- Loading branch information
Showing
17 changed files
with
150 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<footer class="Page-footer Footer"> | ||
<div class="{% if site.data.local.repos[page.repo] %}container-fluid{% else %}container{% endif %}"> | ||
{% assign utm_params = "utm_source=" | append: site.ksio.meta.url | append: "&utm_medium=common-footer" %} | ||
<div class="Footer-description"> | ||
{% if site.ksio.footer.links and site.ksio.footer.links.size > 0 %} | ||
<nav class="Footer-navs"> | ||
<ul>{% for link in site.ksio.footer.links %}<li>{% include ksio/components/link.html link=link wrap=true utm=utm_params %}</li>{% endfor %}</ul> | ||
</nav> | ||
{% endif %} | ||
<div class="Footer-copyright"> | ||
<p>{% include ksio/components/copyright.html utm=utm_params %}</p> | ||
<p>由 <a href="https://linxoid.com/ourai/?{{ utm_params }}" target="_blank" rel="external ">欧雷</a> 用 ♥ 设计与开发</p> | ||
</div> | ||
<div class="Footer-licenses"> | ||
<p>本站通过 <a href="https://knosysio.github.io/?{{ utm_params }}" target="_blank" rel="external ">KnoSys</a> 借助 <a href="https://jekyllrb.com" target="_blank" rel="external ">Jekyll</a> 生成</p> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% assign _inc_cr = site.ksio.copyright %}{% if _inc_cr %}{% assign _inc_current = site.time | date: "%Y" %}{% assign _inc_start = _inc_cr.period.start | default: _inc_current %}{% assign _inc_site_url = "/" | prepend: site.baseurl | prepend: site.url %}{% assign _inc_url = _inc_cr.owner.url | default: _inc_site_url %}{% if _inc_url contains "http" %} | ||
{% assign _inc_external = true %}{% if include.utm %} | ||
{% assign _inc_url = _inc_url | append: "?" | append: include.utm %} | ||
{% endif %} | ||
{% else %} | ||
{% assign _inc_external = false %} | ||
{% endif %}© {% if _inc_start != _inc_current %}{{ _inc_start }}-{% endif %}{{ _inc_current }} <a href="{{ _inc_url }}"{% if _inc_external %} target="_blank" rel="external "{% endif %}>{{ _inc_cr.owner.text | default: site.title }}</a> 版权所有 | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ <h3>多种支持</h3> | |
</section> | ||
</article> | ||
</main> | ||
{% include ksio/footer.html %} | ||
{% include footer.html %} |