From b17bf9e263a96aed618ebc2c169055c2f5ba2f4c Mon Sep 17 00:00:00 2001
From: Kwangjin Lee <K.Lee-5@student.tudelft.nl>
Date: Fri, 27 Sep 2024 15:35:14 +0200
Subject: [PATCH] add detailed hyper link, and add gitignore public directory

---
 .gitignore                |  1 +
 _layouts/staffer.html     | 11 ++++++-----
 _sass/custom/staffer.scss |  9 +++++++++
 _staffers/ronald.md       |  1 +
 4 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 75b2f59..60fbc80 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ Gemfile.lock
 _site/
 node_modules/
 vendor/
+public/
\ No newline at end of file
diff --git a/_layouts/staffer.html b/_layouts/staffer.html
index 67b3aa8..8d2b890 100644
--- a/_layouts/staffer.html
+++ b/_layouts/staffer.html
@@ -4,11 +4,7 @@
   {%- endif -%}
   <div>
     <h3 class="staffer-name" id="{{ page.name | slugify }}">
-      {%- if page.website -%}
-      <a href="{{ page.website }}">{{ page.name }}</a>
-      {%- else -%}
       {{ page.name }}
-      {%- endif -%}
       {%- if page.pronouns -%}
       <span class="staffer-pronouns">{{ page.pronouns }}</span>
       {%- endif -%}
@@ -23,5 +19,10 @@
     <p class="staffer-meta">Office Hours: {{ page.office-hours | markdownify | strip_html }}</p>
     {%- endif -%}
     {{ content }}
+    {% capture staff_page_url %}{{ site.url }}/staff/{{ page.detail }}{% endcapture %}
+    {% assign current_page_url = site.url | append: page.url %}
+    {%- if page.detail and current_page_url != staff_page_url -%}
+    <p><a href="{{ staff_page_url }}" class="staff-details-link">More about me!</a></p>
+    {%- endif -%}
   </div>
-</div>
+</div>
\ No newline at end of file
diff --git a/_sass/custom/staffer.scss b/_sass/custom/staffer.scss
index 8e5a3b3..4939600 100644
--- a/_sass/custom/staffer.scss
+++ b/_sass/custom/staffer.scss
@@ -23,4 +23,13 @@
   .staffer-meta {
     @extend .text-grey-dk-000;
   }
+  
+  a.staff-details-link {
+    color: #f44336 !important;  /* Red color */
+    text-decoration: none;  /* Removes the underline */
+    
+    &:hover {
+      text-decoration: underline;  /* Adds underline on hover */
+    }
+  }
 }
\ No newline at end of file
diff --git a/_staffers/ronald.md b/_staffers/ronald.md
index 4474b6b..ca18126 100644
--- a/_staffers/ronald.md
+++ b/_staffers/ronald.md
@@ -4,4 +4,5 @@ role: Instructor
 pronouns: Associate Professor
 email: R.B.J.Brinkgreve@tudelft.nl
 photo: Ronald.jpg
+detail: ronald
 ---
-- 
GitLab