2
0

Improve linking.

This commit is contained in:
Maarten Billemont
2018-04-21 11:42:24 -04:00
parent 475cb61d52
commit a710dd6f91
9 changed files with 73 additions and 80 deletions

View File

@@ -4,10 +4,12 @@
<div>
<h4>Navigation</h4>
<ul>
<li><a href="{{ site.baseurl }}">Home</a></li>
<li><a href="{{ site.baseurl }}/why.html">Why do I need it?</a></li>
<li><a href="{{ site.baseurl }}/what.html">What does it do?</a></li>
<li><a href="{{ site.baseurl }}/how.html">How do I use it?</a></li>
{% assign pages = site.pages | sort: 'order' %}
{% for aPage in pages %}
{% if aPage.order %}
<li><a href="{{ aPage.url }}">{{ aPage.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
@@ -29,21 +31,21 @@
<li><a href="http://help.masterpasswordapp.com/">Support</a></li>
<li><a href="https://github.com/Lyndir/MasterPassword/">Source Code</a></li>
<li><a href="https://github.com/Lyndir/MasterPassword/issues">Report an Issue</a></li>
<li><a href="masterpassword-algorithm.pdf">Master Password: An Algorithm For Freedom (PDF)</a></li>
<li><a href="masterpassword-primer.pdf">A Primer on Passwords (PDF)</a></li>
<li><a href="{% link masterpassword-algorithm.pdf %}">Master Password: An Algorithm For Freedom (PDF)</a></li>
<li><a href="{% link masterpassword-primer.pdf %}">A Primer on Passwords (PDF)</a></li>
</ul>
</div>
</div>
<p>
Master Password is a security product and algorithm by <a href="http://www.lhunath.com/">Maarten Billemont</a>, Lyndir (&copy; 2011-2018).<br>
Usage implies agreement with our <a href="{{ site.baseurl }}/privacy.html">privacy policy and disclaimer</a>.
Usage implies agreement with our <a href="{% link privacy.html %}">privacy policy and disclaimer</a>.
</p>
<p><a href="http://guide.bash.academy/">The Bash Guide</a><a href="http://gorillas.lyndir.com">Gorillas</a><a href="https://github.com/Lyndir">GitHub</a><a href="http://thanks.lhunath.com">Send Thanks</a></p>
</footer>
<script src="{{ site.baseurl }}/js/jquery-3.3.1.min.js"></script>
<script src="{{ site.baseurl }}/js/jquery.paroller.min.js"></script>
<script src="{{ site.baseurl }}/js/main.js"></script>
<script src="{% link js/jquery-3.3.1.min.js %}"></script>
<script src="{% link js/jquery.paroller.min.js %}"></script>
<script src="{% link js/main.js %}"></script>

View File

@@ -3,12 +3,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<title>{{ site.title | escape }}: {{ page.title | escape }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<meta name="apple-itunes-app" content="app-id=510296984" />
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
<link rel="stylesheet" href="{{ site.baseurl | append: '/css/main.css' }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="shortcut icon" href="img/favicon.png" type="image/x-png" />
<link rel="icon" href="img/favicon.png" type="image/x-png" />
<link rel="shortcut icon" href="{% link img/favicon.png %}" type="image/x-png" />
<link rel="icon" href="{% link img/favicon.png %}" type="image/x-png" />
</head>

View File

@@ -1,6 +1,6 @@
<header class="{{ page.header }}">
<nav>
<a href="{{ site.baseurl }}" data-hero="main">Master Password</a>
<a href="{% link index.html %}" data-hero="main">Master Password</a>
<div class="flex-auto">
<a href="https://itunes.apple.com/app/id510296984" data-hero="ios">iOS.</a>
<a href="https://ssl.masterpasswordapp.com/masterpassword-android.apk" data-hero="android">Android.</a>
@@ -17,8 +17,11 @@
<div class="flex-auto"></div>
<nav>
<a href="{{ site.baseurl }}/why.html"{% if page.nav == "why" %} class="active"{% endif %}>Why</a>
<a href="{{ site.baseurl }}/what.html"{% if page.nav == "what" %} class="active"{% endif %}>What</a>
<a href="{{ site.baseurl }}/how.html"{% if page.nav == "how" %} class="active"{% endif %}>How</a>
{% assign pages = site.pages | sort: 'order' %}
{% for aPage in pages %}
{% if aPage.nav %}
<a href="{{ aPage.url }}"{% if page.url == aPage.url %} class="active"{% endif %}>{{ aPage.nav }}</a>
{% endif %}
{% endfor %}
</nav>
</header>