Skip to content

Commit

Permalink
updated nav bar to include mastodon link, github link, and rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
401matthall committed Feb 11, 2024
1 parent 72cc563 commit 7eaa6f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 1 addition & 2 deletions _data/intro.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"title": "Matt Hall",
"intro": "Hi. I'm Matt Hall. I've been writing software for about eight years. I've been exploring solving problems my entire life. I enjoy the arts of story crafting, writing, and communicating. I am excited to share some of that with you. You may find yourself less excited upon the sharing.",
"cover_intro": "I write syntax, and words. I have opinions.",
"cover_image": "https://avatars.githubusercontent.com/u/7205256?v=4",
"cover_link_1": {"http" : "https://mastodon.xyz/@401matthall", "text" : "401matthall on mastodon"}
"cover_image": "https://avatars.githubusercontent.com/u/7205256?v=4"
}
20 changes: 19 additions & 1 deletion _includes/layouts/widget/nav.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@
{%- for entry in collections.all | eleventyNavigation %}
<a class="p-1 nav-item{% if entry.url == page.url %} nav-item-active{% endif %} text-light linki" href="{{ entry.url | url }}">{{ entry.title }}</a>
{%- endfor %}
<div>
<a class="p-1 nav-item text-light linki" href="https://mastodon.xyz/@401matthall">
<svg class="bi" fill="currentColor" width="16" height="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xml:space="preserve">
<path d="M21.327 8.566c0-4.339-2.843-5.61-2.843-5.61-1.433-.658-3.894-.935-6.451-.956h-.063c-2.557.021-5.016.298-6.45.956 0 0-2.843 1.272-2.843 5.61 0 .993-.019 2.181.012 3.441.103 4.243.778 8.425 4.701 9.463 1.809.479 3.362.579 4.612.51 2.268-.126 3.541-.809 3.541-.809l-.075-1.646s-1.621.511-3.441.449c-1.804-.062-3.707-.194-3.999-2.409a4.523 4.523 0 0 1-.04-.621s1.77.433 4.014.536c1.372.063 2.658-.08 3.965-.236 2.506-.299 4.688-1.843 4.962-3.254.434-2.223.398-5.424.398-5.424zm-3.353 5.59h-2.081V9.057c0-1.075-.452-1.62-1.357-1.62-1 0-1.501.647-1.501 1.927v2.791h-2.069V9.364c0-1.28-.501-1.927-1.502-1.927-.905 0-1.357.546-1.357 1.62v5.099H6.026V8.903c0-1.074.273-1.927.823-2.558.566-.631 1.307-.955 2.228-.955 1.065 0 1.872.409 2.405 1.228l.518.869.519-.869c.533-.819 1.34-1.228 2.405-1.228.92 0 1.662.324 2.228.955.549.631.822 1.484.822 2.558v5.253z"/>
</svg> Mastodon
</a>
<a class="p-1 nav-item text-light linki" href="https://github.com/401matthall">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg> Github
</a>
</a>
<a class="p-1 nav-item text-light linki" href="https://401matthall.com/feed.xml">
<svg width="16" height="16" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd">
<g id="Dribbble-Light-Preview" transform="translate(-65.000000, -3644.000000)" fill="currentColor">
<g id="icons" transform="translate(56.000000, 160.000000)">
<path d="M9.01405871,3491.9522 L9.01405871,3492.95455 C9.01405871,3493.50785 9.46393743,3493.9569 10.0182523,3493.9569 L11.0224458,3493.9569 C11.0224458,3492.8493 10.1236926,3491.9522 9.01405871,3491.9522 M9,3487.94279 L9,3489.94749 C11.215251,3489.94749 13.0167743,3491.9953 13.0167743,3494 L15.0251614,3494 C15.0251614,3490.99295 12.3278975,3487.94279 9,3487.94279 M18.9937344,3492.85231 C19.0600112,3493.45071 18.592057,3494 17.9895408,3494 L17.0476073,3494 C17.0476073,3489.99059 13.0167743,3485.93809 9,3485.93809 L9,3484.99788 C9,3484.39647 9.53623937,3483.9394 10.1347387,3484.00656 C14.7801382,3484.52477 18.4745663,3488.21643 18.9937344,3492.85231" id="rss-[#1028]"></path>
</g>
</g>
</g>
</svg> Feed
</a>
</div>
</nav>

0 comments on commit 7eaa6f4

Please sign in to comment.