Re-theme site
This commit is contained in:
24
_includes/header.html
Normal file
24
_includes/header.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!-- Header -->
|
||||
<header id="header">
|
||||
<img src="https://mgrove.uk/logo-clear-square.png" class="logo" />
|
||||
<a class="logo" href="/">Matthew Grove</a>
|
||||
<nav>
|
||||
<a href="#menu">Menu</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Nav -->
|
||||
<nav id="menu">
|
||||
<ul class="links">
|
||||
<li><a href="/" {% if page.url == "/" or page.url == "/index.html" %} class="current-page-link"
|
||||
{% endif %}>Home</a></li>
|
||||
|
||||
{% assign all_pages = site.pages | sort: "title" %}
|
||||
{% for project in all_pages %}
|
||||
{% if project.url != "/" and project.url != "/index.html" and project.url != "/sitemap.xml" %}
|
||||
<li><a href="{{ project.url | relative_url }}" {% if project.url == page.url %} class="current-page-link"
|
||||
{% endif %}>{{ project.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user