Skip to content

Commit c0e9133

Browse files
Display project link on posts
1 parent 26cf735 commit c0e9133

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_layouts/page.html

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ <h1><a href="/">{{ site.name }}</a></h1>
2222
</nav>
2323
</header>
2424
<main>
25+
{% if page.category %}
26+
{% assign project_page = site.posts | find:"category",page.category %}
27+
<span class="project-link"><a href="{{ project_page.url }}">{{ project_page.title }}</a></span>
28+
{% endif %}
2529
<h1>{{ page.title }}</h1>
2630
{% include convert_img_urls.html content=content %}
2731
</main>

style.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)