Features
Features of the KSUCS Hugo Theme
Features of the KSUCS Hugo Theme
This site supports a “dark mode” CSS feature. It is implemented through the variant selector in the menu to the left
This site also creates two additional outputs of each page, also accessible from the upper toolbar:
tele.html
to the URL)embed.html
to the URL)The teleprompter view is intended to be used on a mirrored teleprompter. It uses some customized CSS in custom.css
.
It also includes JavaScript code to handle automatically scrolling the page by clicking the mouse, and mirroring/unmirroring the output using the m
button. Other buttons are programmed to match an IKAN bluetooth remote. See tele-scroll.js
for details.
It also uses an override for the Hugo YouTube shortcode to hide any embedded YouTube videos. See /layouts/shortcodes/youtube.tele.html
.
The embedded view renders the page without any additional navigation elements. This view is meant to be embedded in an <iframe>
directly in another site, such as an LMS. It also removes any noiframe
notices. See custom.css
for details.
Some code line numbering and highlighting can be enabled directly through the Highlight shortcode.
|
|
This theme now contains the PyScript libraries. This is a work in progress.
Example:
{{< pyscript >}}
print("Hello World")
name = input("What is your name? ")
print(f"Hello {name}!")
{{< /pyscript >}}
Renders as follows below
<script type="py" terminal worker > print("Hello World") name = input("What is your name? ") print(f"Hello {name}!") < /script >
print("Hello World")
name = input("What is your name? ")
print(f"Hello {name}!")