Skip to content

How to create multi-page course pages #193

Answered by andre-dietrich
cagix asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cagix ... could you try the following:

<!--
@open
<script modify="false" run-once>
const origin = window.location.origin;
const pathname = window.location.pathname;
`LIASCRIPT: [@0](${origin + pathname}?@1)`
</script>
@end
-->

# Course Main Title

This is a link to the first lesson of the course:
@[open(Title of the course)](course/lesson_1.md)

This will construct a new LiaScript link and put it out as a result. In my case it looks like this:

The @open macro is defined in the main-comment. It will inject a script to which the title is passed as the first argument and the relative URL is passed as the second. Since the LiaScript interpreter is used either from our website or from wit…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@cagix
Comment options

@SebastianZug
Comment options

@cagix
Comment options

@cagix
Comment options

Comment options

You must be logged in to vote
4 replies
@cagix
Comment options

@cagix
Comment options

@andre-dietrich
Comment options

@cagix
Comment options

Answer selected by cagix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants