From 7ad8eeb5a730bba35846947da4d6f342621f9794 Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Fri, 9 Jan 2026 16:32:41 +0700 Subject: [PATCH] feat: add OG and Twitter meta tags to theme config --- public/images/logo-outlined.png | Bin 0 -> 5513 bytes public/sitemap.xml | 34 ++++++++++++++++---------------- theme.config.tsx | 33 +++++++++++++++++++++++++++---- 3 files changed, 46 insertions(+), 21 deletions(-) create mode 100644 public/images/logo-outlined.png diff --git a/public/images/logo-outlined.png b/public/images/logo-outlined.png new file mode 100644 index 0000000000000000000000000000000000000000..bceeee5aa086d0e1e1069caa30a9d4f103e1fd08 GIT binary patch literal 5513 zcmV;46?W>0P)YV%kuf6xO-~GOI-lNIKS?}{a>;F9K*=y~0?dM(7J|_o7si+7306mZ~ z5cBi%JCNs+cNM9v4u63DD7uB+)B|aO$jDPb4C4J9N#0eYwg!c5@2WP7+W7B=u0A^fn?^aSiNQ=X3brJ zp8cla{zoUUB!!BCF{L~H{E7=ie$DI1o-_)6I(r#|$3P*15@QHvv{7-ALaM=N0ffOM z&5SZ2THwmeXaFE7=yGZ^XD!2nz0!g)<(^PbDk}fC?tv%}wOMdqWWsw3-6#k~3JD4p z6_^Q`(?dvXEHX$JQvo%AiUAOV$xO(c9ztSM38af>e6|c9PG3TsCx1`gQUw0AJrD(= z|AONteGM>1NKjIcm<5`X6ePM(ipb87!i-8l)BvYS0HE0k=ReyI|zR?{BvbcYLzghUw#gn^^nsR1Yk$lshLs}rN zUHdEJLSbPrc7|BMB*=^zh*<>L%qR`SaLLSw#Q-6NNV*9GHUOrN984H4aRam2fdT}- zuD*zlnF=#~%eT;*pzUlcW2YDJ^>%1+miHg;o5J*~yN)-koLN>R-?ZnD7Kmny4A$o) zg;ZnE&;((ZQ48YIiwQ=F!K6XDm{_fAMIKlhXFm$!xKH4;*e?;0TWRW&=q1Z84RF839*EkkO?|Qc1aJ|dERit z4LJVzQ!2J4aZu(MN%vfj4J$rUR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xDoAvRnK7 zWvW&|n6jRF<&{^wpQi8(Q=k5F1j%-!4;eB93i{+I6;|l)Rl3%#k38}Sv_8}!wemaf zyi-M6W&Ht%+KE`N0Ta%emSy@vLad;V{FTcVV|{<`t2a6FiCAmZ2rIw#+G}H%!e2+D z#}7U9knbBUk60Fw_lXRd^0Yu?Y``oC3&{||_)!JYO@M4h6p$<3z)i`3A=B`W-jgt5 zTsr$7znCAse6cbHs9G zODQH`VT2gMj{(jG!1M_f0~3Xr$w~zvq!5KR6NXC$ew+h{00}eN2y%1z@)`vv3)Vw= zPJ*(-yM4Uws#Uk6Bz3`A0!mP&+C9S=6uY zh;z#IDkz|iG=E*QHBK85s~xa6U?O8?0x)J^GVmkCKol}{b6TV;m&F9YVh{n8W<&u| z13=wiP$I;ERVxT)#l~PHE3lXqNb>U!j1BnFuz&yli2t2oc+^4{PrX_DV6y69Rv^hQ z-j=I~R~1x8+I0n7ljg66wsB3G|2BMCltyXS7q&h5Z;jIevB4<^Gcn0P0nZbx1OAy!R>py0@lpcHRv6S|-yN(--0Uy_k@XqOh zC=fM_x)x5Zb0BIQwI3`D4g)`-V$K6FGw1^*LQo;eVgY6bCX>}UfC!Ke-h%9sd)VP$>ff-!C=gQ?l(*l|0LL7yU^FmB zM2;oQXafWhLKr`eEU<&gEKn#_1PPM>oK&%pY&B}^hi+HaLn5WzQ=)8pRUcs5T}G_G zpiWf0Gw&hM)L&b5foQ?>qXoI|ja#p4fUceEx&PS9&E*Eh6f)+@3882*3NbSgl%$)P zU|=IOGhz#D%E -https://docs.trustlab.dyzulk.com2026-01-09T09:09:34.013Zdaily0.7 -https://docs.trustlab.dyzulk.com/developer2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/developer/endpoints2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/certificates/download-install2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/certificates/renewal2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/certificates/request-new2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/certificates/revocation2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/certificates/view-details2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/concepts/pki-fundamentals2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/concepts/trust-architecture2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/getting-started/access-dashboard2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/getting-started/install-root-ca2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/integrations/smime2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/integrations/web-servers2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/troubleshooting/browser-errors2026-01-09T09:09:34.014Zdaily0.7 -https://docs.trustlab.dyzulk.com/guide/troubleshooting/developer-tools2026-01-09T09:09:34.014Zdaily0.7 +https://docs.trustlab.dyzulk.com2026-01-09T09:32:31.278Zdaily0.7 +https://docs.trustlab.dyzulk.com/developer2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/developer/endpoints2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/certificates/download-install2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/certificates/renewal2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/certificates/request-new2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/certificates/revocation2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/certificates/view-details2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/concepts/pki-fundamentals2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/concepts/trust-architecture2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/getting-started/access-dashboard2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/getting-started/install-root-ca2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/integrations/smime2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/integrations/web-servers2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/troubleshooting/browser-errors2026-01-09T09:32:31.279Zdaily0.7 +https://docs.trustlab.dyzulk.com/guide/troubleshooting/developer-tools2026-01-09T09:32:31.279Zdaily0.7 \ No newline at end of file diff --git a/theme.config.tsx b/theme.config.tsx index 50b3e8a..001cc22 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -26,17 +26,42 @@ const config: DocsThemeConfig = { docsRepositoryBase: 'https://github.com/dyzulk/trustlab-docs/tree/main', useNextSeoProps() { const { asPath } = useRouter() + const description = 'TrustLab - Private Certificate Authority' + const siteName = 'TrustLab Docs' + + let titleTemplate = '%s – ' + siteName if (asPath.includes('/index') || asPath.endsWith('/en/') || asPath.endsWith('/id/')) { - return { - titleTemplate: 'TrustLab - Private Certificate Authority' - } + titleTemplate = 'TrustLab - Private Certificate Authority' } + return { - titleTemplate: '%s – TrustLab Docs' + titleTemplate, + description, + openGraph: { + type: 'website', + locale: 'en_US', + url: `https://docs.trustlab.dyzulk.com${asPath}`, + siteName: siteName, + images: [ + { + url: 'https://docs.trustlab.dyzulk.com/images/logo-outlined.png', + width: 1200, + height: 630, + alt: 'TrustLab Logo', + }, + ], + }, + twitter: { + handle: '@trustlab', + site: '@trustlab', + cardType: 'summary_large_image', + }, } }, head: ( <> + + ),