Skip to content

Commit

Permalink
Include link to Authors page on each Post
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoonen committed Aug 13, 2024
1 parent d89471e commit 88365d5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
7 changes: 6 additions & 1 deletion _includes/post_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
{% if include.type == "post-card-meta" %}
<span class="meta-pre"></span>
{% endif %}
{% if document.author %}
{% if document.author and include.hyperlink == "true" %}
<!-- Clickable hyperlink -->
by&nbsp;<a href="authors.html#{{document.author}}">{{document.author}}</a>
<span class="meta-sep"></span>
{% elsif document.author and include.hyperlink != "true" %}
<!-- Plain text -->
by {{document.author}}
<span class="meta-sep"></span>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="page-content">
<div class="header-page">
<h1 class="page-title">{{ page.title }}</h1>
{% include post_meta.html type="post-page-meta" %}
{% include post_meta.html type="post-page-meta" hyperlink="true" %}
</div>
{% include sidebar.html context="post" class="side" id="sidebar" %}
{% if page.toc %}{% include sidebar-toc.html %}{% endif %}
Expand Down
14 changes: 2 additions & 12 deletions _pages/our-authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<div class="authors-container">
<section class="authors-header">
<div class="author-image-container">
<a id="Maarten Coonen"></a> <!-- Named anchor for this author -->
<img src="{{ relativebase }}/assets/img/authors/mcoonen.jpg" alt="Maarten Coonen">
</div>
<h3>Maarten Coonen</h3>
Expand All @@ -35,19 +36,14 @@ <h3>Maarten Coonen</h3>
torquent per conubia nostra, per inceptos himenaeos. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Pellentesque habitant morbi tristique senectus et netus et malesuada
fames ac turpis egestas.

Suspendisse sem ligula, venenatis ac mi quis, aliquet pharetra risus. Nunc tristique congue rhoncus. Nulla
euismod lectus sit amet facilisis euismod. Nam malesuada posuere sem, ac fermentum tortor mollis eu. Nam
tincidunt bibendum eros et ultricies. Mauris facilisis non magna vitae aliquet. Ut non ligula lorem. Ut
cursus fermentum dolor, at dictum mauris tempus a. Mauris elit metus, laoreet ac elit non, congue malesuada
ipsum. In vulputate purus neque, vitae convallis nisl vehicula at.
</p>
</section>
</div> <!-- End authors-container -->

<div class="authors-container">
<section class="authors-header">
<div class="author-image-container">
<a id="Maryam Mazaheri"></a> <!-- Named anchor for this author -->
<img src="{{ relativebase }}/assets/img/authors/mmazaheri.jpg" alt="Maryam Mazaheri">
</div>
<h3>Maryam Mazaheri</h3>
Expand All @@ -73,12 +69,6 @@ <h3>Maryam Mazaheri</h3>
torquent per conubia nostra, per inceptos himenaeos. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Pellentesque habitant morbi tristique senectus et netus et malesuada
fames ac turpis egestas.

Suspendisse sem ligula, venenatis ac mi quis, aliquet pharetra risus. Nunc tristique congue rhoncus. Nulla
euismod lectus sit amet facilisis euismod. Nam malesuada posuere sem, ac fermentum tortor mollis eu. Nam
tincidunt bibendum eros et ultricies. Mauris facilisis non magna vitae aliquet. Ut non ligula lorem. Ut
cursus fermentum dolor, at dictum mauris tempus a. Mauris elit metus, laoreet ac elit non, congue malesuada
ipsum. In vulputate purus neque, vitae convallis nisl vehicula at.
</p>
</section>
</div> <!-- End authors-container -->
2 changes: 1 addition & 1 deletion _posts/2024-07-24-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Welcome to the first post
date: 2024-07-24
img: posts/world.jpg
tags: [general]
author: Maarten Coonen
author: Maryam Mazaheri
---

### Hello world
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<h2>WORKING TITLE Tech Talk</h2>
<p>
Read first-hand stories and experiences by developers in Maastricht University Library's Tech Talk (WORKING TITLE).
Read first-hand stories and experiences by developers from Maastricht University Library in Tech Talk (WORKING TITLE).
</p>

<ol class="post-card-box clearfix">
Expand Down

0 comments on commit 88365d5

Please sign in to comment.