Skip to content

Commit

Permalink
Add iconography to list pages
Browse files Browse the repository at this point in the history
haydenmc committed Aug 4, 2024
1 parent 5507c7d commit 0384a2f
Showing 5 changed files with 28 additions and 22 deletions.
10 changes: 9 additions & 1 deletion _sass/main.scss
Original file line number Diff line number Diff line change
@@ -245,7 +245,15 @@ body {
}

> header {
> h1 {
display: flex;
flex-direction: row;
align-items: center;

svg {
margin-right: 8px;
}

> div > h1 {
margin: 0;
font-size: 24px;
font-weight: 700;
14 changes: 0 additions & 14 deletions blog.html

This file was deleted.

6 changes: 4 additions & 2 deletions posts.html
Original file line number Diff line number Diff line change
@@ -9,8 +9,10 @@ <h1>Posts</h1>
{% for post in site.posts %}
<article>
<header>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<time>{{ post.date | date: "%Y-%m-%d" }}</time>
<div>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<time>{{ post.date | date: "%Y-%m-%d" }}</time>
</div>
</header>
{{ post.excerpt }}
</article>
9 changes: 7 additions & 2 deletions projects.html
Original file line number Diff line number Diff line change
@@ -11,8 +11,13 @@ <h1>Projects</h1>
{% for project in sorted_projects %}
<article>
<header>
<h1><a href="{{ project.url }}">{{ project.title }}</a></h1>
<time>{{ project.date | date: "%Y" }}</time>
{% if project.icon %}
{% include {{ project.icon | prepend: 'svg/' }} %}
{% endif %}
<div>
<h1><a href="{{ project.url }}">{{ project.title }}</a></h1>
<time>{{ project.date | date: "%Y" }}</time>
</div>
</header>
<p>{{ project.description }}</p>
</article>
11 changes: 8 additions & 3 deletions work.html
Original file line number Diff line number Diff line change
@@ -7,12 +7,17 @@
<h2><a href="{% link index.html %}">Hayden/</a></h2>
<h1>Work</h1>
</header>
{% assign sorted_work = site.work | sort: 'year' | reverse %}
{% assign sorted_work = site.work | reverse %}
{% for work in sorted_work %}
<article>
<header>
<h1><a href="{{ work.url }}">{{ work.title }}</a></h1>
<time>{{ work.year }}</time>
{% if work.icon %}
{% include {{ work.icon | prepend: 'svg/' }} %}
{% endif %}
<div>
<h1><a href="{{ work.url }}">{{ work.title }}</a></h1>
<time>{{ work.start_year }}—{{ work.end_year }}</time>
</div>
</header>
{{ work.description }}
</article>

0 comments on commit 0384a2f

Please sign in to comment.