Skip to content

Commit 8bb2c15

Browse files
authored
ITP: Link to Piscine instead of mounting it (#1522)
1 parent edab92a commit 8bb2c15

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

common-theme/layouts/partials/card.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
{{ $BaseURL := .Page.Parent.Permalink }}
2-
<a class="c-card" href="{{ relURL .Page.RelPermalink }}">
1+
{{ $url := relURL .Page.RelPermalink }}
2+
{{ if .Page.Params.external_url }}
3+
{{ $url = .Page.Params.external_url }}
4+
{{ end }}
5+
6+
<a class="c-card" href="{{ $url }}">
37
<h3 class="c-card__title">{{ .Name }}</h3>
48
{{ with .Page.Description }}
59
<p class="c-card__description">{{ . }}</p>

org-cyf-itp/content/piscine/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = 'Piscine'
3+
description = 'In teams and on your own, build working software with tests. Explain your work to others.'
4+
emoji= '🐠'
5+
menu = ['next steps']
6+
external_url = "https://piscine.codeyourfuture.io"
7+
+++

org-cyf-itp/hugo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ baseURL = "https://programming.codeyourfuture.io/"
44
[module]
55
[[module.imports]]
66
path = "github.com/CodeYourFuture/curriculum/org-cyf-theme"
7-
[[module.imports]]
8-
path = "github.com/CodeYourFuture/curriculum/org-cyf-piscine"
9-
[[module.imports.mounts]]
10-
source = "content"
11-
target="content/piscine"
127
[[module.imports]]
138
path = "github.com/CodeYourFuture/curriculum/org-cyf-guides"
149
[[module.imports.mounts]]

0 commit comments

Comments
 (0)