Skip to content

Commit

Permalink
update header and footer info
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkdancer committed Aug 24, 2024
1 parent 5b4e2c8 commit 8017f67
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
10 changes: 8 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
<div class="container">
<p class="copy">
&copy; {{ site.time | date: '%Y' }}
<a href="http://thinkdancer.net">thinkdancer</a> Powered by
<a href="http://jekyllrb.com">Jekyll</a>
<a href="http://thinkdancer.net">thinkdancer</a>, Powered by
<a href="http://jekyllrb.com">Jekyll</a>, customized
<a href="https://github.com/brianmaierjr/long-haul"> Long Haul.</a>

<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span></span>, powered by
<a href="http://busuanzi.ibruce.info/"> busuanzi</a>

</p>

<div class="footer-links">
Expand Down
1 change: 0 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ <h1 class="logo"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
<a href="{{ link.url | relative_url }}">{{ link.title }}</a>
</li>
{%- endfor -%}
<li> <a href="https://github.com/thinkdancer" target="_blank">GitHub</a></li>
</ul>
</nav>
</div>
Expand Down
15 changes: 15 additions & 0 deletions _includes/header.html.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="header {% if site.header == 'large' %}header--large{% endif %}">
<div class="container">
<h1 class="logo"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
<nav class="nav-collapse">
<ul class="noList">
{%- for link in site.navigation -%}{%- assign current = nil -%}{%- if page.url contains link.url or forloop.first and page.url == '/' or page.url == 'index.html' -%}{%- assign current = 'current' -%}{%- endif -%}
<li class="element {%- if forloop.first -%}first{%- endif -%} {{ current }} {%- if forloop.last -%}last{%- endif -%}">
<a href="{{ link.url | relative_url }}">{{ link.title }}</a>
</li>
{%- endfor -%}
<li> <a href="https://github.com/thinkdancer" target="_blank">GitHub</a></li>
</ul>
</nav>
</div>
</div><!-- end .header -->

0 comments on commit 8017f67

Please sign in to comment.