Skip to content

Commit 089c75f

Browse files
André DietrichAndré Dietrich
authored andcommitted
Upgrade landing page and update liascript v 2.0.0
1 parent 016028b commit 089c75f

14 files changed

Lines changed: 630 additions & 74 deletions

File tree

‎assets/css/custom.css‎

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
1-
/* Add your own custom styles here */
2-
@media screen and (min-width: 1280px) {
3-
.liveeditor {
4-
min-width: calc(100% + 260px);
5-
margin-left: -130px;
6-
}
1+
/* Self-hosted fonts (Heebo, Signika) — replaces the live fonts.googleapis.com/fonts.gstatic.com
2+
request from the theme, which sent visitor IPs to Google on every page load. */
3+
@font-face {
4+
font-family: "Heebo";
5+
font-style: normal;
6+
font-weight: 400 600;
7+
font-display: swap;
8+
src: url("/fonts/heebo-latin.woff2") format("woff2");
9+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
10+
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
711
}
8-
9-
.liveeditor {
10-
width: 100%;
11-
height: 80vh;
12-
border: 1px solid #000;
12+
@font-face {
13+
font-family: "Heebo";
14+
font-style: normal;
15+
font-weight: 400 600;
16+
font-display: swap;
17+
src: url("/fonts/heebo-latin-ext.woff2") format("woff2");
18+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
19+
U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
20+
U+2C60-2C7F, U+A720-A7FF;
1321
}
14-
15-
.circle-image {
16-
border-radius: 50%;
22+
@font-face {
23+
font-family: "Signika";
24+
font-style: normal;
25+
font-weight: 500 700;
26+
font-display: swap;
27+
src: url("/fonts/signika-latin.woff2") format("woff2");
28+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
29+
U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
30+
}
31+
@font-face {
32+
font-family: "Signika";
33+
font-style: normal;
34+
font-weight: 500 700;
35+
font-display: swap;
36+
src: url("/fonts/signika-latin-ext.woff2") format("woff2");
37+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
38+
U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
39+
U+2C60-2C7F, U+A720-A7FF;
1740
}

‎config/_default/menus.en.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,8 @@ weight = 5
131131
name = "Imprint"
132132
pageRef = "pages/imprint"
133133
weight = 6
134+
135+
[[footer]]
136+
name = "Privacy"
137+
pageRef = "pages/privacy"
138+
weight = 7

‎content/english/_index.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,40 @@ features:
134134
enable: true
135135
label: "Try the LiveEditor"
136136
link: "https://liascript.github.io/LiveEditor"
137+
138+
# How it works
139+
how_it_works:
140+
enable: true
141+
title: "How it works"
142+
steps:
143+
- title: "Write in Markdown"
144+
content: "Add LiaScript syntax where you want a quiz, a TTS voice, a runnable code block, or a chart. No template project, no dependencies to install."
145+
- title: "Host the file anywhere"
146+
content: "A GitHub repo, GitLab, Dropbox, IPFS, or a plain link. LiaScript doesn't care where the text lives, since it renders in the visitor's browser."
147+
- title: "Share the link"
148+
content: "Anyone opens it in a modern browser and gets the interactive course, no login and no server needed. Works offline once loaded, too."
149+
150+
# FAQ
151+
faq:
152+
enable: true
153+
title: "Frequently asked questions"
154+
items:
155+
- question: "Do I need to install anything to write a course?"
156+
answer: "No. A LiaScript course is a plain Markdown file. You can write it in any text editor; the browser based Live Editor adds live preview and autocompletion if you want it."
157+
- question: "Do I need to install anything to read a course?"
158+
answer: "No. Any modern browser renders the course directly from the Markdown file, no server or app required."
159+
- question: "Is LiaScript free?"
160+
answer: "Yes, and it stays that way. LiaScript is developed in the open on GitHub; there's no paid tier and no account requirement to create or run a course."
161+
- question: "Where do I host my courses?"
162+
answer: "Wherever you already store text: GitHub, GitLab, Dropbox, a plain web server, or IPFS. There's no LiaScript hosting service you're locked into."
163+
- question: "Can I use LiaScript without internet access?"
164+
answer: "Yes, once a course is loaded it keeps working offline, since everything runs client side in the browser."
165+
- question: "Can I add quizzes, simulations, or my own JavaScript?"
166+
answer: "Yes. LiaScript supports quizzes, surveys, executable code blocks, and a macro system for wrapping any JavaScript library into reusable, author friendly blocks."
167+
- question: "Can I use LiaScript courses in Moodle, ILIAS, or another LMS?"
168+
answer: "Yes, via the [LiaScript Exporter](/exporter/), which packages a course as SCORM for import into common LMS platforms."
169+
- question: "Can multiple people write a course together?"
170+
answer: "Yes, the [Live Editor](/live-editor/) supports real time, peer to peer collaborative editing (WebRTC + Yjs), with no account or central server involved."
171+
- question: "What if I already have a LiaScript file?"
172+
answer: "Paste its URL into the box on the homepage and it opens directly as a live course, no upload step needed."
137173
---

‎content/english/pages/privacy.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "Privacy"
3+
4+
meta_title: "LiaScript - Privacy"
5+
# save as draft
6+
draft: false
7+
---
8+
9+
**This page is a technical draft, not a legal document.** It lists what this site actually loads and processes, based on its current configuration. It has not been reviewed by a lawyer or a data protection officer and does not yet name a responsible controller, legal basis, or retention periods, see the [Imprint](/imprint/) for the publisher. Please have it reviewed, or replace it with the official Datenschutzerklärung of Technische Universität Bergakademie Freiberg, before relying on it.
10+
11+
#### What this site loads
12+
13+
- **YouTube embeds** — the demo video and "LiaScript Shorts" sections embed videos from `youtube.com`, which can set cookies and load trackers from Google once a video is played.
14+
- **Giscus comments** — every blog post automatically loads `giscus.app/client.js` and embeds a Giscus discussion thread, backed by GitHub Discussions on the `liascript/liascript` repository. This happens on page load, not only when you choose to comment. Reading comments does not require an account, but posting a comment or reaction does, via GitHub.
15+
16+
#### What this site does not use
17+
18+
- No analytics or tracking (Google Analytics, Matomo, GTM, and similar are present in the codebase only as disabled, commented out options).
19+
- No accounts, logins, or server side storage of your data by this site itself.
20+
- **No live Google Fonts request.** The page fonts (Heebo, Signika) are self hosted and served from this domain, not fetched from `fonts.googleapis.com` at page load, so your IP address is not sent to Google for that purpose.
21+
22+
#### Third parties
23+
24+
YouTube is operated by Google LLC. Giscus and GitHub Discussions are operated by GitHub, Inc. Each under their own privacy policies.
25+
26+
The LiaScript interpreter, LiveEditor, and course hosting run on a separate site (`liascript.github.io`) that is part of the LiaScript project itself, not this marketing site, and is not covered here.

‎content/english/sections/call-to-action.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
enable: true
3-
title: "Ready to build your next project with Hugo?"
4-
image: "/images/call-to-action.png"
5-
description: "Experience the future of web development with Hugoplate and Hugo. Build lightning-fast static sites with ease and flexibility."
3+
title: "Your next course starts as a text file"
4+
image: "/images/LiveEditor.png"
5+
description: "No installation, no build step, no account required. Write it in Markdown, drop in a quiz or a bit of JavaScript where you need it, and open the link in a browser."
66
button:
77
enable: true
8-
label: "Get Started Now"
9-
link: "https://github.com/zeon-studio/hugoplate"
8+
label: "Open the Live Editor"
9+
link: "/live-editor/"
1010

1111
# don't create a separate page
1212
build:

‎data/meta.json‎

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -138,60 +138,6 @@
138138
{ "@id": "https://liascript.github.io/#person-sebastian" }
139139
]
140140
},
141-
{
142-
"@type": "FAQPage",
143-
"@id": "https://liascript.github.io/#faq",
144-
"mainEntity": [
145-
{
146-
"@type": "Question",
147-
"name": "Where is the content stored?",
148-
"acceptedAnswer": {
149-
"@type": "Answer",
150-
"text": "With LiaScript, you store your content wherever you like — on your own webspace, GitHub, Nostr, or any static file host. You only share a reference (a URL) to the document, and LiaScript loads it dynamically in the browser."
151-
}
152-
},
153-
{
154-
"@type": "Question",
155-
"name": "Does LiaScript require a server?",
156-
"acceptedAnswer": {
157-
"@type": "Answer",
158-
"text": "No. LiaScript does not require any backend or server. It is a fully static JavaScript web application that fetches content directly and renders it live inside the user’s browser."
159-
}
160-
},
161-
{
162-
"@type": "Question",
163-
"name": "Who owns the content created with LiaScript?",
164-
"acceptedAnswer": {
165-
"@type": "Answer",
166-
"text": "You own your content entirely. LiaScript does not claim any rights — you decide the license, where to publish, and how to share your materials with your audience."
167-
}
168-
},
169-
{
170-
"@type": "Question",
171-
"name": "How is LiaScript different from Moodle or ILIAS?",
172-
"acceptedAnswer": {
173-
"@type": "Answer",
174-
"text": "LiaScript is not a centralized platform but an extensible language with a browser-based viewer. It runs directly in the user’s browser and can be hosted anywhere as static files — meaning it cannot go down or depend on any central server."
175-
}
176-
},
177-
{
178-
"@type": "Question",
179-
"name": "Can I export LiaScript content to SCORM or IMS?",
180-
"acceptedAnswer": {
181-
"@type": "Answer",
182-
"text": "Yes. LiaScript supports exporting your courses to SCORM and IMS formats, as well as to PDF, single-page web projects, and even Android APKs for offline learning."
183-
}
184-
},
185-
{
186-
"@type": "Question",
187-
"name": "Does LiaScript support text-to-speech and live coding?",
188-
"acceptedAnswer": {
189-
"@type": "Answer",
190-
"text": "Yes, and much more. LiaScript supports text-to-speech, live coding environments, interactive quizzes, animations, multimedia embedding, simulations, and narrative content creation with timelines, code execution, and collaborative course design."
191-
}
192-
}
193-
]
194-
},
195141
{
196142
"@type": "Organization",
197143
"@id": "https://liascript.github.io/#publisher",

0 commit comments

Comments
 (0)