that's pretty meta

This commit is contained in:
object-Object 2023-08-06 20:37:28 -04:00
parent c309086389
commit 4e3449ed37
3 changed files with 14 additions and 5 deletions

View file

@ -2,6 +2,7 @@
modid = "hexcasting"
book_name = "thehexbook"
url = "https://gamma-delta.github.io/HexMod"
is_0_black = false
# NOTE: _Raw means "don't apply variable interpolation to this value"

View file

@ -1,13 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ description }}">
<meta name="author" content="{{ author }}">
<title>{{ title }}</title>
<link rel="icon" href="{{ icon_href }}">
<title>{{ title }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="{{ description }}" />
<meta name="author" content="{{ author }}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:image" content="{{ props.url }}/{{ icon_href }}" />
<meta property="og:url" content="{{ props.url }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="og:site_name" content="{{ mod_name }}" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

View file

@ -45,6 +45,7 @@ class I18nProps(HexDocModel[Any], extra="ignore"):
class Properties(HexDocModel[Any], extra="ignore"):
modid: str
book_name: str
url: NoTrailingSlashHttpUrl
is_0_black: bool
"""If true, the style `$(0)` changes the text color to black; otherwise it resets
the text color to the default."""