sync: import files in markdown, relative to theme/exercice dir
This commit is contained in:
parent
8c95782eff
commit
87471acf98
6 changed files with 75 additions and 8 deletions
|
|
@ -3,6 +3,7 @@ package fic
|
|||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// exportedExercice is a structure representing a challenge, as exposed to players.
|
||||
|
|
@ -63,7 +64,7 @@ func ExportThemes() (interface{}, error) {
|
|||
theme.URLId,
|
||||
theme.Authors,
|
||||
theme.Headline,
|
||||
theme.Intro,
|
||||
strings.Replace(theme.Intro, "$FILES$", FilesDir, -1),
|
||||
imgpath,
|
||||
exos,
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue