diff --git a/.gitignore b/.gitignore index 75b2f595dfef5749f3e1e6a72eda3e4a4a70dcef..60fbc80d74aad09d30eb32b2fff1ed2c339783c1 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 67b3aa82e811f8a474e72847928c454730185512..8d2b890a12a7c0272a23e8bdfcd5d6f4d0a7bf0b 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 8e5a3b3de634d68b6d92455469ae056019b6a704..4939600ab300e401feda8ce1cc3ad44d5e2d9f2f 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 4474b6b7236c209382aad8d6dcc8b012fc492b53..ca181264d045cfa85a23ae54fbdd8e7579eee85f 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 ---