Skip to content

Commit 5d732a0

Browse files
committed
fix hardcoded projects link and update workflow for deploy-ftp.yml
1 parent f7548f9 commit 5d732a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/deploy-ftp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
bundler-cache: true
2121

2222
- name: Build Jekyll
23-
run: bundle exec jekyll build
23+
run: bundle exec jekyll build --baseurl ""
2424
env:
2525
JEKYLL_ENV: production
2626

@@ -34,4 +34,4 @@ jobs:
3434
port: ${{ secrets.FTP_PORT }}
3535
local-dir: ./_site/
3636
server-dir: /
37-
dangerous-clean-slate: true
37+
dangerous-clean-slate: false

_layouts/home.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,18 @@ <h2 class="text-3xl font-bold text-center md:text-left">
9393
{% for project in site.projects limit:2 %} {% include project_card.html
9494
project=project%} {% endfor %}
9595
</div>
96+
{% assign projects_page = site.pages | where: 'layout', 'projects' | first %}
97+
{% if projects_page %}
9698
<div class="pt-4 text-center">
9799
<a
98100
class="font-mulish text-lg hover:text-sky-400 hover:underline font-bold"
99-
href="{{'/projects' | relative_url }}"
101+
href="{{ projects_page.url | relative_url }}"
100102
>
101103
{{ site.data[site.active_lang].strings.home.see_more_projects | default:
102104
site.data['en'].strings.home.see_more_projects }}
103105
</a>
104106
</div>
107+
{% endif %}
105108
</div>
106109
</section>
107110
{% endif %} {% assign trimmed_content = content | strip | replace: "\n", "" |

0 commit comments

Comments
 (0)