From 6f21a426048be2c4848109242771545c10fe42b7 Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Sun, 16 Oct 2022 23:54:45 +0530 Subject: [PATCH] Fix relative links for previews to work --- .github/workflows/Deploy.yml | 2 +- _layout/head.html | 16 ++- _layout/navbar.html | 97 +++++++++++++++---- blogposts/2019-03-05-dp-vs-rl.md | 20 ++-- ...-09-11-simulating-the-motion-of-charges.md | 8 +- .../2020-06-29-acclerating-flux-torch.md | 4 +- blogposts/2020-12-20-Flux3D.md | 12 +-- blogposts/2021-12-1-flux-numfocus.md | 2 +- index.md | 26 ++--- tutorialposts/2021-10-08-dcgan-mnist.md | 6 +- 10 files changed, 131 insertions(+), 62 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 11703eab..4cc18f79 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false # NOTE: Python is necessary for the pre-rendering (minification) step diff --git a/_layout/head.html b/_layout/head.html index 1f29d624..8c9e35d5 100644 --- a/_layout/head.html +++ b/_layout/head.html @@ -50,8 +50,20 @@ - - + {{ispage index || ispage 404}} + + + {{end}} + + {{ispage blogposts/* || ispage tutorialposts/*}} + + + {{end}} + + {{ispage getting_started || ispage blog || ispage governance || ispage gsoc || ispage tutorials}} + + + {{end}} diff --git a/_layout/navbar.html b/_layout/navbar.html index f0ee46ec..e1113ef7 100644 --- a/_layout/navbar.html +++ b/_layout/navbar.html @@ -1,31 +1,88 @@