Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _data/profile.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Homepage profile data for the Blog MVP redesign.
# Keep this file as the single source for the new homepage profile panel.
name: "Junbo Koh"
position: "Master's Student"
headline: "Ongoing learner, practitioner, and researcher"
affiliation: "Educational Technology, Seoul National University"
affiliation_url:
location: "Seoul, South Korea"
email: "gtkobo92@snu.ac.kr"

Expand Down
19 changes: 15 additions & 4 deletions _layouts/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
{%- assign profile = site.author -%}
{%- endunless -%}
{%- assign profile_name = profile.name | default: site.name | default: site.title -%}
{%- assign profile_headline = profile.headline | default: site.subtitle -%}
{%- assign profile_position = profile.position | default: profile.headline | default: site.subtitle -%}
{%- assign profile_avatar = profile.avatar -%}
{%- assign profile_avatar_alt = profile.avatar_alt | default: profile_name -%}
{%- assign profile_email = profile.email -%}
{%- assign profile_affiliation_url = profile.affiliation_url | default: profile.affiliation_link -%}

<!doctype html>
{% include copyright.html %}
Expand Down Expand Up @@ -37,12 +38,18 @@

<h1 class="homepage-name">{{ profile_name }}</h1>

{% if profile_headline %}
<p class="homepage-headline">{{ profile_headline }}</p>
{% if profile_position %}
<p class="homepage-position">{{ profile_position }}</p>
{% endif %}

{% if profile.affiliation %}
<p class="homepage-affiliation">{{ profile.affiliation }}</p>
<p class="homepage-affiliation">
{% if profile_affiliation_url %}
<a href="{{ profile_affiliation_url }}">{{ profile.affiliation }}</a>
{% else %}
{{ profile.affiliation }}
{% endif %}
</p>
{% endif %}

{% if profile.location %}
Expand Down Expand Up @@ -91,6 +98,10 @@ <h1 class="homepage-name">{{ profile_name }}</h1>

<main id="main" class="homepage-content" role="main">
{{ content }}

<footer class="homepage-footer">
<small>&copy; {{ site.time | date: "%Y" }} {{ profile_name }}. Powered by Jekyll.</small>
</footer>
</main>
</div>

Expand Down
Loading