mirror of
https://github.com/zen-browser/docs.git
synced 2025-07-07 17:05:34 +02:00
commit
929df7aeed
6 changed files with 3 additions and 5 deletions
|
@ -15,8 +15,8 @@ export default (() => {
|
||||||
const path = url.pathname as FullSlug
|
const path = url.pathname as FullSlug
|
||||||
const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!)
|
const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!)
|
||||||
|
|
||||||
const iconPath = joinSegments(baseDir, "static/icon.svg")
|
const iconPath = joinSegments(baseDir, "static/icon.png")
|
||||||
const ogImagePath = `https://${cfg.baseUrl}/static/og-image.svg`
|
const ogImagePath = `https://${cfg.baseUrl}/static/og-image.png`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { i18n } from "../i18n"
|
||||||
const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzComponentProps) => {
|
const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzComponentProps) => {
|
||||||
const title = cfg?.pageTitle ?? i18n(cfg.locale).propertyDefaults.title
|
const title = cfg?.pageTitle ?? i18n(cfg.locale).propertyDefaults.title
|
||||||
const baseDir = pathToRoot(fileData.slug!)
|
const baseDir = pathToRoot(fileData.slug!)
|
||||||
const iconPath = joinSegments(baseDir, "static/icon.svg")
|
const iconPath = joinSegments(baseDir, "static/icon.png")
|
||||||
return (
|
return (
|
||||||
<h2 class={classNames(displayClass, "page-title")}>
|
<h2 class={classNames(displayClass, "page-title")}>
|
||||||
<a href={baseDir}>
|
<a href={baseDir}>
|
||||||
|
|
BIN
quartz/static/icon.png
Normal file
BIN
quartz/static/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
|
@ -1 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 80 80"><defs><style>.g{fill:none;stroke:#fff;stroke-linejoin:round;stroke-width:4.375px;}.h{fill:url(#e);}.h,.i{stroke-width:0px;}.i{fill:#70a0ff;}</style><linearGradient id="e" x1="40" y1="80" x2="40" y2="0" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#fff" stop-opacity="0"/><stop offset=".9" stop-color="#fff" stop-opacity=".1"/></linearGradient></defs><g id="c"><rect class="i" width="80" height="80" rx="18.25" ry="18.25"/></g><g id="d"><rect class="h" width="80" height="80" rx="18.25" ry="18.25"/></g><g id="f"><path class="g" d="M33.3917,50.625h22.5458c2.9642,0,5.3614,2.4276,5.3117,5.4032-.0486,2.9129-2.4859,5.2218-5.3992,5.2218h-31.7886"/><path class="g" d="M46.2859,29.375h-22.136c-2.9133,0-5.3506-2.3089-5.3992-5.2218-.0496-2.9756,2.3475-5.4032,5.3117-5.4032h31.8763"/><path class="g" d="M24.0615,61.25c-.6775,0-1.3659-.1303-2.0307-.4057-2.7105-1.1227-3.9977-4.2302-2.875-6.9406,1.7267-4.1686,4.2017-7.9058,7.3563-11.1076,3.268-3.3171,7.122-5.9089,11.4551-7.7038,5.956-2.4672,10.5947-7.1058,13.0615-13.0615,1.1227-2.7107,4.2303-3.9976,6.9406-2.875,2.7105,1.1227,3.9977,4.2302,2.875,6.9406-1.7267,4.1686-4.2017,7.9058-7.3563,11.1076-3.268,3.3171-7.122,5.9089-11.4551,7.7038-5.956,2.4672-10.5947,7.1058-13.0615,13.0615-.8473,2.0457-2.8255,3.2808-4.9099,3.2808Z"/></g></svg>
|
|
Before Width: | Height: | Size: 1.4 KiB |
BIN
quartz/static/og-image.png
Normal file
BIN
quartz/static/og-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
|
@ -1 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 80 80"><defs><style>.g{fill:none;stroke:#fff;stroke-linejoin:round;stroke-width:4.375px;}.h{fill:url(#e);}.h,.i{stroke-width:0px;}.i{fill:#70a0ff;}</style><linearGradient id="e" x1="40" y1="80" x2="40" y2="0" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#fff" stop-opacity="0"/><stop offset=".9" stop-color="#fff" stop-opacity=".1"/></linearGradient></defs><g id="c"><rect class="i" width="80" height="80" rx="18.25" ry="18.25"/></g><g id="d"><rect class="h" width="80" height="80" rx="18.25" ry="18.25"/></g><g id="f"><path class="g" d="M33.3917,50.625h22.5458c2.9642,0,5.3614,2.4276,5.3117,5.4032-.0486,2.9129-2.4859,5.2218-5.3992,5.2218h-31.7886"/><path class="g" d="M46.2859,29.375h-22.136c-2.9133,0-5.3506-2.3089-5.3992-5.2218-.0496-2.9756,2.3475-5.4032,5.3117-5.4032h31.8763"/><path class="g" d="M24.0615,61.25c-.6775,0-1.3659-.1303-2.0307-.4057-2.7105-1.1227-3.9977-4.2302-2.875-6.9406,1.7267-4.1686,4.2017-7.9058,7.3563-11.1076,3.268-3.3171,7.122-5.9089,11.4551-7.7038,5.956-2.4672,10.5947-7.1058,13.0615-13.0615,1.1227-2.7107,4.2303-3.9976,6.9406-2.875,2.7105,1.1227,3.9977,4.2302,2.875,6.9406-1.7267,4.1686-4.2017,7.9058-7.3563,11.1076-3.268,3.3171-7.122,5.9089-11.4551,7.7038-5.956,2.4672-10.5947,7.1058-13.0615,13.0615-.8473,2.0457-2.8255,3.2808-4.9099,3.2808Z"/></g></svg>
|
|
Before Width: | Height: | Size: 1.4 KiB |
Loading…
Add table
Add a link
Reference in a new issue