Linking to Lia Courses without the preview #207
Replies: 3 comments 2 replies
-
This is an interesting comment which we are also discussing at the moment internally. We have colleagues who prefer to have individual chapters of a course in separate markdown files. The whole course information, exercises, small data sets are in the same github repo. If you have course overview page using Liascript, once you go to the chapters (i.e. different full-length link like above) you loose the context to the overview page. So, I would also be interested in hearing comments from others on this situation @tilman-schieber describes. Thank you! |
Beta Was this translation helpful? Give feedback.
-
One additional aspect: Having an overview course with lia-preview cards is a really nice way to show the chapters of a course. see the overview here for an example For larger projects, I find it extremely clumsy to have all course content in on markdown file. One big file complicates version management and gradually publishing course content for students. |
Beta Was this translation helpful? Give feedback.
-
We all agreed that the URL liascript.github.io will remain, since no one wants to pay ;-) ... To solve your issue, you could probably use something like a custom macro for this: <!--
@lia_link
<script modify="false" run-once="true">
`LIASCRIPT: [@0](${window.location.origin + window.location.pathname}?@1)`
</script>
@end
-->
# Back-link
@[lia_link(relative)](dir/french.md)
@[lia_link(absolute)](https://example.com/README.md) In this case the course can also be delivered from an exported web-project or scrom... It it will use the base URL as the origin and attach the markdown, when it is relative or absolute ... However ... Constructing larger projects from smaller files was also an issue for us, that we could not solve yet. One Idea would be to add such a functionality into the exporter, which we currently use to generate overview sites for the course, take look at here: https://tubaf-ifi-liascript.github.io/ Such sites can be automatically generated with the exporter ... We did not att something like summary.md from GitBook, since it breaks or makes the parsing process more complicated. One document is cached and updated, where we use the URL or URI as the unique identifier for indexeddb ... handling multiple files will break this ... How we internaly store content is described in the following section: you can use the Not sure, if this solves your issue??? However, your courses look great ... If you want to, we would be happy to mark them on the LiaScript-map: |
Beta Was this translation helpful? Give feedback.
-
I am using one md-File that is just a
<lia-preview>
of all the chapters in my course.Now I want to add a backlink on each course site, so students can navigate back to the overview page.
This should just be a normal link, not a preview card.
But....
liascript.github.io/course=fullpathtogithub
it works but will probably break in the future or if the course gets forkedIs there a way to do it with the current features?
Or what about a lia-link in addition to lia-preview?
Beta Was this translation helpful? Give feedback.
All reactions