Mayo commited on
docs: open graph
Browse files- docs/index.md +2 -0
- docs/overrides/main.html +68 -0
- zensical.toml +11 -7
docs/index.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
---
|
| 2 |
title: Overview
|
|
|
|
|
|
|
| 3 |
hide:
|
| 4 |
- navigation
|
| 5 |
- toc
|
|
|
|
| 1 |
---
|
| 2 |
title: Overview
|
| 3 |
+
social_title: Koharu
|
| 4 |
+
description: Koharu is a local-first manga translator built in Rust with OCR, inpainting, local and remote LLM support, a Web UI, and MCP automation.
|
| 5 |
hide:
|
| 6 |
- navigation
|
| 7 |
- toc
|
docs/overrides/main.html
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% extends "base.html" %}
|
| 2 |
+
|
| 3 |
+
{% block extrahead %}
|
| 4 |
+
{{ super() }}
|
| 5 |
+
{% set favicon_href = config.theme.favicon | d("assets/images/favicon.png") | url %}
|
| 6 |
+
{% if page.meta and page.meta.social_title %}
|
| 7 |
+
{% set social_title = page.meta.social_title %}
|
| 8 |
+
{% elif page.is_homepage %}
|
| 9 |
+
{% set social_title = config.site_name %}
|
| 10 |
+
{% elif page.meta and page.meta.title %}
|
| 11 |
+
{% set social_title = page.meta.title ~ " - " ~ config.site_name %}
|
| 12 |
+
{% elif page.title %}
|
| 13 |
+
{% set social_title = page.title | striptags ~ " - " ~ config.site_name %}
|
| 14 |
+
{% else %}
|
| 15 |
+
{% set social_title = config.site_name %}
|
| 16 |
+
{% endif %}
|
| 17 |
+
|
| 18 |
+
{% if page.meta and page.meta.social_description %}
|
| 19 |
+
{% set social_description = page.meta.social_description %}
|
| 20 |
+
{% elif page.meta and page.meta.description %}
|
| 21 |
+
{% set social_description = page.meta.description %}
|
| 22 |
+
{% else %}
|
| 23 |
+
{% set social_description = config.site_description %}
|
| 24 |
+
{% endif %}
|
| 25 |
+
|
| 26 |
+
{% if page.meta and page.meta.social_image %}
|
| 27 |
+
{% set social_image = page.meta.social_image %}
|
| 28 |
+
{% elif page.meta and page.meta.image %}
|
| 29 |
+
{% set social_image = page.meta.image %}
|
| 30 |
+
{% else %}
|
| 31 |
+
{% set social_image = config.extra.og_image %}
|
| 32 |
+
{% endif %}
|
| 33 |
+
|
| 34 |
+
{% if social_image %}
|
| 35 |
+
{% if "://" in social_image %}
|
| 36 |
+
{% set social_image_url = social_image %}
|
| 37 |
+
{% else %}
|
| 38 |
+
{% set social_image_url = config.site_url ~ social_image %}
|
| 39 |
+
{% endif %}
|
| 40 |
+
{% endif %}
|
| 41 |
+
|
| 42 |
+
<meta property="og:type" content="website">
|
| 43 |
+
<meta property="og:site_name" content="{{ config.site_name }}">
|
| 44 |
+
<meta property="og:title" content="{{ social_title }}">
|
| 45 |
+
<meta name="twitter:card" content="{{ config.extra.twitter_card | d('summary_large_image', true) }}">
|
| 46 |
+
<meta name="twitter:title" content="{{ social_title }}">
|
| 47 |
+
<link rel="shortcut icon" href="{{ favicon_href }}">
|
| 48 |
+
<link rel="apple-touch-icon" href="{{ favicon_href }}">
|
| 49 |
+
|
| 50 |
+
{% if social_description %}
|
| 51 |
+
<meta property="og:description" content="{{ social_description }}">
|
| 52 |
+
<meta name="twitter:description" content="{{ social_description }}">
|
| 53 |
+
{% endif %}
|
| 54 |
+
|
| 55 |
+
{% if page.canonical_url %}
|
| 56 |
+
<meta property="og:url" content="{{ page.canonical_url }}">
|
| 57 |
+
<meta name="twitter:url" content="{{ page.canonical_url }}">
|
| 58 |
+
{% endif %}
|
| 59 |
+
|
| 60 |
+
{% if social_image_url %}
|
| 61 |
+
<meta property="og:image" content="{{ social_image_url }}">
|
| 62 |
+
<meta name="twitter:image" content="{{ social_image_url }}">
|
| 63 |
+
{% if config.extra.og_image_alt %}
|
| 64 |
+
<meta property="og:image:alt" content="{{ config.extra.og_image_alt }}">
|
| 65 |
+
<meta name="twitter:image:alt" content="{{ config.extra.og_image_alt }}">
|
| 66 |
+
{% endif %}
|
| 67 |
+
{% endif %}
|
| 68 |
+
{% endblock %}
|
zensical.toml
CHANGED
|
@@ -41,8 +41,11 @@ nav = [
|
|
| 41 |
]},
|
| 42 |
]
|
| 43 |
|
| 44 |
-
[project.extra]
|
| 45 |
-
generator = false
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
[[project.extra.social]]
|
| 48 |
icon = "fontawesome/brands/github"
|
|
@@ -56,11 +59,12 @@ link = "https://x.com/mayo_irl"
|
|
| 56 |
icon = "fontawesome/brands/discord"
|
| 57 |
link = "https://discord.gg/mHvHkxGnUY"
|
| 58 |
|
| 59 |
-
[project.theme]
|
| 60 |
-
language = "en"
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
| 64 |
font.code = "Fira Code"
|
| 65 |
features = [
|
| 66 |
"navigation.sections",
|
|
|
|
| 41 |
]},
|
| 42 |
]
|
| 43 |
|
| 44 |
+
[project.extra]
|
| 45 |
+
generator = false
|
| 46 |
+
og_image = "assets/koharu-screenshot-en.png"
|
| 47 |
+
og_image_alt = "Koharu manga translator interface"
|
| 48 |
+
twitter_card = "summary_large_image"
|
| 49 |
|
| 50 |
[[project.extra.social]]
|
| 51 |
icon = "fontawesome/brands/github"
|
|
|
|
| 59 |
icon = "fontawesome/brands/discord"
|
| 60 |
link = "https://discord.gg/mHvHkxGnUY"
|
| 61 |
|
| 62 |
+
[project.theme]
|
| 63 |
+
language = "en"
|
| 64 |
+
custom_dir = "docs/overrides"
|
| 65 |
+
logo = "assets/Koharu_Halo.png"
|
| 66 |
+
favicon = "assets/Koharu_Halo.png"
|
| 67 |
+
font.text = "Nunito"
|
| 68 |
font.code = "Fira Code"
|
| 69 |
features = [
|
| 70 |
"navigation.sections",
|