mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +02:00
feat: support i18n description meta tag
This commit is contained in:
parent
67cc90f744
commit
137d79f273
13 changed files with 29 additions and 43 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
# 重新编排
|
||||
|
||||
Retypeset 是一款基于 [Astro](https://astro.build/) 框架的静态博客主题,设计灵感来自 [Typography](https://astro-theme-typography.vercel.app/)。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。
|
||||
Retypeset,中文名为重新编排,是一款基于 [Astro](https://astro.build/) 框架的静态博客主题,设计灵感来自 [Typography](https://astro-theme-typography.vercel.app/)。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。
|
||||
|
||||
## 预览
|
||||
|
||||
|
|
|
@ -1,17 +1 @@
|
|||
<svg width="179" height="32" viewBox="0 0 179 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_8_30)">
|
||||
<path d="M173 0H6C2.68629 0 0 2.68629 0 6V26C0 29.3137 2.68629 32 6 32H173C176.314 32 179 29.3137 179 26V6C179 2.68629 176.314 0 173 0Z" fill="#2E51ED"/>
|
||||
<path d="M15.027 23.227H14.781L13.556 22.049V21.813L15.429 20.011H16.727L16.9 20.178V21.426L15.027 23.227ZM13.556 9.89999V9.66399L14.781 8.48499H15.027L16.9 10.287V11.535L16.727 11.701H15.429L13.556 9.89999ZM24.343 19.429H22.561L22.411 19.286V15.273C22.411 14.559 22.12 14.005 21.224 13.986C20.764 13.975 20.236 13.986 19.673 14.007L19.588 14.091V19.284L19.439 19.427H17.657L17.507 19.284V12.429L17.657 12.285H21.669C23.229 12.285 24.492 13.5 24.492 15V19.286L24.343 19.429ZM15.28 16.86H8.15L8 16.716V14.998L8.149 14.855H15.28L15.43 14.998V16.716L15.28 16.859V16.86ZM33.853 16.86H26.722L26.572 16.716V14.998L26.722 14.855H33.853L34.002 14.998V16.716L33.853 16.859V16.86ZM19.973 10.143V4.99999L20.122 4.85699H21.909L22.057 4.99999V10.143L21.909 10.287H20.122L19.973 10.143ZM19.973 26.714V21.571L20.122 21.428H21.909L22.057 21.571V26.714L21.909 26.857H20.122L19.973 26.714ZM155.15 10.64C154.72 11.06 154.51 11.64 154.51 12.39V13.43H153.28V15.1H154.51V21.19H156.47V15.1H158.11V13.43H156.47V12.38C156.47 11.85 156.75 11.58 157.3 11.58H158.34V9.99999H156.94C156.18 9.99999 155.59 10.21 155.16 10.64H155.15ZM150.93 10.13C150.57 10.13 150.27 10.25 150.05 10.48C149.84 10.7 149.73 10.98 149.73 11.32C149.73 11.66 149.84 11.95 150.05 12.19C150.27 12.42 150.57 12.54 150.93 12.54C151.29 12.54 151.57 12.42 151.78 12.19C152 11.96 152.12 11.67 152.12 11.32C152.12 10.97 152.01 10.7 151.78 10.48C151.56 10.25 151.28 10.13 150.93 10.13ZM73.23 10.14H75.19V21.19H73.23V10.14Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M47.32 10.63C48.49 10.63 49.49 10.84 50.33 11.27C51.17 11.69 51.81 12.3 52.25 13.09C52.7 13.88 52.92 14.83 52.92 15.92C52.92 17.01 52.7 17.96 52.25 18.75C51.81 19.54 51.17 20.14 50.33 20.56C49.49 20.98 48.49 21.19 47.32 21.19H44V10.63H47.32ZM47.23 19.22C48.31 19.22 49.16 18.93 49.78 18.35V18.36C50.41 17.77 50.72 16.97 50.72 15.92C50.72 14.87 50.41 14.05 49.78 13.47C49.16 12.89 48.31 12.6 47.23 12.6H46.11V19.22H47.23ZM58.16 13.29C58.96 13.29 59.65 13.45 60.25 13.79L60.24 13.78C60.85 14.11 61.31 14.57 61.64 15.17C61.97 15.77 62.13 16.47 62.13 17.26V17.92H56.28C56.31 18.18 56.36 18.44 56.47 18.66C56.63 18.96 56.85 19.19 57.14 19.36C57.43 19.53 57.78 19.61 58.19 19.61C58.6 19.61 58.95 19.54 59.23 19.41C59.51 19.28 59.72 19.09 59.86 18.86H61.96C61.8 19.33 61.54 19.76 61.19 20.13C60.85 20.51 60.41 20.79 59.89 21C59.38 21.21 58.8 21.31 58.17 21.31C57.38 21.31 56.68 21.15 56.07 20.82C55.47 20.49 55.01 20.02 54.67 19.41C54.34 18.81 54.18 18.1 54.18 17.3C54.18 16.5 54.34 15.8 54.67 15.2C55 14.6 55.46 14.13 56.06 13.79C56.67 13.46 57.36 13.29 58.16 13.29ZM58.16 14.99C57.8 14.99 57.47 15.08 57.18 15.26C56.89 15.42 56.66 15.66 56.49 15.97C56.41 16.14 56.35 16.31 56.31 16.49H60.05C60.0095 16.2241 59.9069 15.9714 59.7505 15.7525C59.5941 15.5336 59.3884 15.3546 59.15 15.23C58.86 15.07 58.52 14.99 58.16 14.99ZM70.16 13.74C69.64 13.42 69.04 13.26 68.35 13.26C67.66 13.26 67.06 13.42 66.57 13.74C66.28 13.93 66.05 14.19 65.86 14.47V13.43H63.9V23.85H65.86V20.16C66.06 20.45 66.29 20.7 66.57 20.9C67.06 21.23 67.65 21.39 68.35 21.39C69.05 21.39 69.63 21.23 70.16 20.91C70.68 20.58 71.09 20.12 71.38 19.51C71.67 18.89 71.81 18.17 71.81 17.33C71.81 16.49 71.67 15.75 71.38 15.15C71.09 14.53 70.68 14.07 70.16 13.75V13.74ZM69.5 18.6C69.33 18.95 69.1 19.22 68.8 19.41C68.51 19.6 68.18 19.69 67.81 19.69C67.22 19.69 66.75 19.48 66.4 19.07C66.05 18.65 65.87 18.08 65.87 17.35C65.87 16.62 66.05 16.07 66.4 15.66C66.75 15.25 67.23 15.04 67.81 15.04C68.18 15.04 68.51 15.14 68.8 15.33C69.1 15.52 69.33 15.79 69.5 16.14C69.67 16.49 69.75 16.89 69.75 17.34C69.75 17.79 69.67 18.23 69.5 18.59V18.6ZM82.85 13.79C82.23 13.44 81.51 13.26 80.68 13.26C79.85 13.26 79.13 13.44 78.51 13.79C77.9 14.14 77.44 14.62 77.11 15.23C76.78 15.85 76.62 16.54 76.62 17.32C76.62 18.1 76.78 18.79 77.11 19.41C77.44 20.02 77.9 20.5 78.51 20.85C79.13 21.2 79.85 21.38 80.68 21.38C81.51 21.38 82.23 21.2 82.85 20.85C83.47 20.5 83.93 20.01 84.25 19.39C84.58 18.77 84.74 18.08 84.74 17.32C84.74 16.56 84.58 15.85 84.25 15.23C83.93 14.61 83.47 14.13 82.85 13.79ZM82.43 18.49C82.27 18.83 82.04 19.09 81.73 19.27C81.43 19.46 81.08 19.55 80.68 19.55C80.28 19.55 79.91 19.46 79.62 19.27C79.32 19.08 79.09 18.82 78.92 18.49C78.76 18.15 78.68 17.76 78.68 17.31C78.68 16.86 78.76 16.46 78.92 16.12C79.09 15.78 79.32 15.53 79.62 15.35C79.92 15.16 80.27 15.07 80.68 15.07C81.09 15.07 81.43 15.16 81.73 15.35C82.04 15.53 82.27 15.79 82.43 16.13C82.6 16.47 82.68 16.86 82.68 17.31C82.68 17.76 82.6 18.15 82.43 18.49Z" fill="white"/>
|
||||
<path d="M87.11 13.43L89.15 18.5L91.26 13.43H93.15L88.84 23.75H86.95L88.14 20.9L85.13 13.43H87.11ZM102.71 10.98H100.75V13.43H99.26V15.1H100.75V21.19H102.71V15.1H104.39V13.43H102.71V10.98Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M109.18 13.26C110.01 13.26 110.73 13.44 111.35 13.79C111.97 14.13 112.43 14.61 112.75 15.23C113.08 15.85 113.24 16.56 113.24 17.32C113.24 18.08 113.08 18.77 112.75 19.39C112.43 20.01 111.97 20.5 111.35 20.85C110.73 21.2 110.01 21.38 109.18 21.38C108.35 21.38 107.63 21.2 107.01 20.85C106.4 20.5 105.94 20.02 105.61 19.41C105.28 18.79 105.12 18.1 105.12 17.32C105.12 16.54 105.28 15.85 105.61 15.23C105.94 14.62 106.4 14.14 107.01 13.79C107.63 13.44 108.35 13.26 109.18 13.26ZM110.23 19.27C110.54 19.09 110.77 18.83 110.93 18.49C111.1 18.15 111.18 17.76 111.18 17.31C111.18 16.86 111.1 16.47 110.93 16.13C110.77 15.79 110.54 15.53 110.23 15.35C109.93 15.16 109.59 15.07 109.18 15.07C108.77 15.07 108.42 15.16 108.12 15.35C107.82 15.53 107.59 15.78 107.42 16.12C107.26 16.46 107.18 16.86 107.18 17.31C107.18 17.76 107.26 18.15 107.42 18.49C107.59 18.82 107.82 19.08 108.12 19.27C108.41 19.46 108.78 19.55 109.18 19.55C109.58 19.55 109.93 19.46 110.23 19.27Z" fill="white"/>
|
||||
<path d="M126.91 16.02L122.22 10.63H120.41V21.19H122.52V14.26L126.91 19.31V21.19H129.02V10.63H126.91V16.02Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M134.5 13.29C135.3 13.29 135.99 13.45 136.59 13.79L136.58 13.78C137.19 14.11 137.65 14.57 137.98 15.17C138.31 15.77 138.47 16.47 138.47 17.26V17.92H132.62C132.65 18.18 132.7 18.44 132.81 18.66C132.97 18.96 133.19 19.19 133.48 19.36C133.77 19.53 134.12 19.61 134.53 19.61C134.94 19.61 135.29 19.54 135.57 19.41C135.85 19.28 136.06 19.09 136.2 18.86H138.3C138.14 19.33 137.88 19.76 137.53 20.13C137.19 20.51 136.75 20.79 136.23 21C135.72 21.21 135.14 21.31 134.51 21.31C133.72 21.31 133.02 21.15 132.41 20.82C131.81 20.49 131.35 20.02 131.01 19.41C130.68 18.81 130.52 18.1 130.52 17.3C130.52 16.5 130.68 15.8 131.01 15.2C131.34 14.6 131.8 14.13 132.4 13.79C133.01 13.46 133.7 13.29 134.5 13.29ZM134.5 14.99C134.14 14.99 133.81 15.08 133.52 15.26C133.23 15.42 133 15.66 132.83 15.97C132.75 16.14 132.69 16.31 132.65 16.49H136.39C136.349 16.224 136.247 15.9714 136.09 15.7525C135.934 15.5336 135.728 15.3546 135.49 15.23C135.2 15.07 134.86 14.99 134.5 14.99Z" fill="white"/>
|
||||
<path d="M142.58 10.98H140.62V13.43H139.14V15.1H140.62V21.19H142.58V15.1H144.26V13.43H142.58V10.98ZM145.92 10.14H147.88V21.19H145.92V10.14ZM149.95 21.18V13.26C150.21 13.45 150.53 13.55 150.93 13.55C151.33 13.55 151.66 13.46 151.91 13.26V21.18H149.95ZM163.14 18.5L165.26 13.43H167.15L162.84 23.75H160.95L162.14 20.9L159.13 13.43H161.1L163.14 18.5Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_8_30">
|
||||
<rect width="179" height="32" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="179" height="32" fill="none"><g clip-path="url(#a)"><path fill="#2E51ED" d="M173 0H6a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h167a6 6 0 0 0 6-6V6a6 6 0 0 0-6-6"/><path fill="#fff" d="M15.027 23.227h-.246l-1.225-1.178v-.236l1.873-1.802h1.298l.173.167v1.248zM13.556 9.9v-.236l1.225-1.179h.246l1.873 1.802v1.248l-.173.166h-1.298zm10.787 9.529h-1.782l-.15-.143v-4.013c0-.714-.291-1.268-1.187-1.287-.46-.011-.988 0-1.551.021l-.085.084v5.193l-.149.143h-1.782l-.15-.143v-6.855l.15-.144h4.012c1.56 0 2.823 1.215 2.823 2.715v4.286zM15.28 16.86H8.15L8 16.716v-1.718l.149-.143h7.131l.15.143v1.718zm18.573 0h-7.131l-.15-.144v-1.718l.15-.143h7.131l.149.143v1.718zm-13.88-6.717V5l.149-.143h1.787l.148.143v5.143l-.148.144h-1.787zm0 16.571v-5.143l.149-.143h1.787l.148.143v5.143l-.148.143h-1.787zM155.15 10.64c-.43.42-.64 1-.64 1.75v1.04h-1.23v1.67h1.23v6.09h1.96V15.1h1.64v-1.67h-1.64v-1.05c0-.53.28-.8.83-.8h1.04V10h-1.4c-.76 0-1.35.21-1.78.64zm-4.22-.51c-.36 0-.66.12-.88.35-.21.22-.32.5-.32.84s.11.63.32.87c.22.23.52.35.88.35s.64-.12.85-.35c.22-.23.34-.52.34-.87s-.11-.62-.34-.84c-.22-.23-.5-.35-.85-.35m-77.7.01h1.96v11.05h-1.96z"/><path fill="#fff" fill-rule="evenodd" d="M47.32 10.63c1.17 0 2.17.21 3.01.64.84.42 1.48 1.03 1.92 1.82.45.79.67 1.74.67 2.83s-.22 2.04-.67 2.83c-.44.79-1.08 1.39-1.92 1.81s-1.84.63-3.01.63H44V10.63zm-.09 8.59q1.62 0 2.55-.87v.01c.63-.59.94-1.39.94-2.44s-.31-1.87-.94-2.45q-.93-.87-2.55-.87h-1.12v6.62zm10.93-5.93c.8 0 1.49.16 2.09.5l-.01-.01c.61.33 1.07.79 1.4 1.39s.49 1.3.49 2.09v.66h-5.85c.03.26.08.52.19.74.16.3.38.53.67.7s.64.25 1.05.25.76-.07 1.04-.2.49-.32.63-.55h2.1c-.16.47-.42.9-.77 1.27-.34.38-.78.66-1.3.87-.51.21-1.09.31-1.72.31-.79 0-1.49-.16-2.1-.49-.6-.33-1.06-.8-1.4-1.41-.33-.6-.49-1.31-.49-2.11s.16-1.5.49-2.1.79-1.07 1.39-1.41c.61-.33 1.3-.5 2.1-.5m0 1.7c-.36 0-.69.09-.98.27-.29.16-.52.4-.69.71-.08.17-.14.34-.18.52h3.74a1.71 1.71 0 0 0-.9-1.26c-.29-.16-.63-.24-.99-.24m12-1.25c-.52-.32-1.12-.48-1.81-.48s-1.29.16-1.78.48c-.29.19-.52.45-.71.73v-1.04H63.9v10.42h1.96v-3.69c.2.29.43.54.71.74.49.33 1.08.49 1.78.49s1.28-.16 1.81-.48c.52-.33.93-.79 1.22-1.4.29-.62.43-1.34.43-2.18s-.14-1.58-.43-2.18c-.29-.62-.7-1.08-1.22-1.4zm-.66 4.86c-.17.35-.4.62-.7.81-.29.19-.62.28-.99.28-.59 0-1.06-.21-1.41-.62-.35-.42-.53-.99-.53-1.72s.18-1.28.53-1.69.83-.62 1.41-.62c.37 0 .7.1.99.29.3.19.53.46.7.81s.25.75.25 1.2-.08.89-.25 1.25zm13.35-4.81c-.62-.35-1.34-.53-2.17-.53s-1.55.18-2.17.53c-.61.35-1.07.83-1.4 1.44-.33.62-.49 1.31-.49 2.09s.16 1.47.49 2.09c.33.61.79 1.09 1.4 1.44.62.35 1.34.53 2.17.53s1.55-.18 2.17-.53 1.08-.84 1.4-1.46c.33-.62.49-1.31.49-2.07s-.16-1.47-.49-2.09c-.32-.62-.78-1.1-1.4-1.44m-.42 4.7c-.16.34-.39.6-.7.78-.3.19-.65.28-1.05.28s-.77-.09-1.06-.28c-.3-.19-.53-.45-.7-.78-.16-.34-.24-.73-.24-1.18s.08-.85.24-1.19c.17-.34.4-.59.7-.77.3-.19.65-.28 1.06-.28s.75.09 1.05.28c.31.18.54.44.7.78.17.34.25.73.25 1.18s-.08.84-.25 1.18" clip-rule="evenodd"/><path fill="#fff" d="m87.11 13.43 2.04 5.07 2.11-5.07h1.89l-4.31 10.32h-1.89l1.19-2.85-3.01-7.47zm15.6-2.45h-1.96v2.45h-1.49v1.67h1.49v6.09h1.96V15.1h1.68v-1.67h-1.68z"/><path fill="#fff" fill-rule="evenodd" d="M109.18 13.26c.83 0 1.55.18 2.17.53.62.34 1.08.82 1.4 1.44.33.62.49 1.33.49 2.09s-.16 1.45-.49 2.07c-.32.62-.78 1.11-1.4 1.46s-1.34.53-2.17.53-1.55-.18-2.17-.53c-.61-.35-1.07-.83-1.4-1.44-.33-.62-.49-1.31-.49-2.09s.16-1.47.49-2.09c.33-.61.79-1.09 1.4-1.44.62-.35 1.34-.53 2.17-.53m1.05 6.01c.31-.18.54-.44.7-.78.17-.34.25-.73.25-1.18s-.08-.84-.25-1.18c-.16-.34-.39-.6-.7-.78-.3-.19-.64-.28-1.05-.28s-.76.09-1.06.28c-.3.18-.53.43-.7.77-.16.34-.24.74-.24 1.19s.08.84.24 1.18c.17.33.4.59.7.78.29.19.66.28 1.06.28s.75-.09 1.05-.28" clip-rule="evenodd"/><path fill="#fff" d="m126.91 16.02-4.69-5.39h-1.81v10.56h2.11v-6.93l4.39 5.05v1.88h2.11V10.63h-2.11z"/><path fill="#fff" fill-rule="evenodd" d="M134.5 13.29c.8 0 1.49.16 2.09.5l-.01-.01c.61.33 1.07.79 1.4 1.39s.49 1.3.49 2.09v.66h-5.85c.03.26.08.52.19.74.16.3.38.53.67.7s.64.25 1.05.25.76-.07 1.04-.2.49-.32.63-.55h2.1c-.16.47-.42.9-.77 1.27-.34.38-.78.66-1.3.87-.51.21-1.09.31-1.72.31-.79 0-1.49-.16-2.1-.49-.6-.33-1.06-.8-1.4-1.41-.33-.6-.49-1.31-.49-2.11s.16-1.5.49-2.1.79-1.07 1.39-1.41c.61-.33 1.3-.5 2.1-.5m0 1.7c-.36 0-.69.09-.98.27-.29.16-.52.4-.69.71-.08.17-.14.34-.18.52h3.74a1.71 1.71 0 0 0-.9-1.26c-.29-.16-.63-.24-.99-.24" clip-rule="evenodd"/><path fill="#fff" d="M142.58 10.98h-1.96v2.45h-1.48v1.67h1.48v6.09h1.96V15.1h1.68v-1.67h-1.68zm3.34-.84h1.96v11.05h-1.96zm4.03 11.04v-7.92c.26.19.58.29.98.29s.73-.09.98-.29v7.92zm13.19-2.68 2.12-5.07h1.89l-4.31 10.32h-1.89l1.19-2.85-3.01-7.47h1.97z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h179v32H0z"/></clipPath></defs></svg>
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 4.6 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 4.7 KiB |
|
@ -6,11 +6,11 @@ export const themeConfig: ThemeConfig = {
|
|||
// site title
|
||||
title: 'Retypeset',
|
||||
// site subtitle
|
||||
subtitle: '再现版式之美',
|
||||
// use i18n title/subtitle from src/i18n/ui.ts instead of static ones above
|
||||
i18nTitle: true,
|
||||
subtitle: 'Revive the beauty of typography',
|
||||
// site description
|
||||
description: 'Retypeset 是一款基于Astro框架的静态博客主题,设计灵感来自Typography。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。',
|
||||
description: 'Retypeset is a static blog theme based on the Astro framework, inspired by Typography. Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.',
|
||||
// use i18n title/subtitle/description from src/i18n/ui.ts instead of static ones above
|
||||
i18nTitle: true,
|
||||
// author name
|
||||
author: 'radishzz',
|
||||
// site url
|
||||
|
@ -93,7 +93,7 @@ export const themeConfig: ThemeConfig = {
|
|||
// SEO SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> START
|
||||
seo: {
|
||||
// @twitter ID
|
||||
twitterID: '@astrodotbuild',
|
||||
twitterID: '@radishzz_',
|
||||
// site verification
|
||||
verification: {
|
||||
// google search console
|
||||
|
@ -101,7 +101,7 @@ export const themeConfig: ThemeConfig = {
|
|||
google: 'AUCrz5F1e5qbnmKKDXl2Sf8u6y0kOpEO1wLs6HMMmlM',
|
||||
// bing webmaster tools
|
||||
// docs: https://www.bing.com/webmasters
|
||||
bing: '',
|
||||
bing: '64708CD514011A7965C84DDE1D169F87',
|
||||
// yandex webmaster
|
||||
// docs: https://webmaster.yandex.com
|
||||
yandex: '',
|
||||
|
@ -126,7 +126,6 @@ export const themeConfig: ThemeConfig = {
|
|||
// apiflash access key
|
||||
// automatically generate website screenshots for open graph preview images
|
||||
// get your access key at: https://apiflash.com/
|
||||
// check your open graph at: https://orcascan.com/tools/open-graph-validator
|
||||
apiflashKey: '',
|
||||
},
|
||||
// SEO SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END
|
||||
|
@ -145,7 +144,7 @@ export const themeConfig: ThemeConfig = {
|
|||
},
|
||||
{
|
||||
name: 'Twitter',
|
||||
url: 'https://x.com/astrodotbuild',
|
||||
url: 'https://x.com/radishzz_',
|
||||
},
|
||||
// {
|
||||
// name: 'Email',
|
||||
|
@ -163,7 +162,7 @@ export const themeConfig: ThemeConfig = {
|
|||
// docs: https://docs.astro.build/en/guides/prefetch/#prefetch-strategies
|
||||
linkPrefetch: 'viewport', // hover, tap, viewport, load
|
||||
// comment server url
|
||||
commentURL: 'https://comment.radishzz.cc',
|
||||
commentURL: 'https://retypeset-comment.radishzz.cc',
|
||||
// image hosting url
|
||||
imageHostURL: 'https://image.radishzz.cc',
|
||||
// custom google analytics js
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
lang: ja
|
||||
---
|
||||
|
||||
Retypeset は[Astro](https://astro.build/)フレームワークをベースにした静的ブログテーマで、[Typography](https://astro-theme-typography.vercel.app/)からインスピレーションを得ています。新しい視覚的標準を確立し、すべてのページのレイアウトを再考することで、紙の本のような読書体験を提供し、タイポグラフィの美しさを蘇らせます。細部へのこだわりと、洗練された空間デザインが特徴です。
|
||||
Retypeset、日本語では「再組版」と呼ばれる、[Astro](https://astro.build/)フレームワークをベースにした静的ブログテーマで、[Typography](https://astro-theme-typography.vercel.app/)からインスピレーションを得ています。新しい視覚的な規範を確立し、すべてのページのレイアウトを再構成することで、紙の書籍のような読書体験を提供し、版面の美しさを蘇らせます。細部にまでこだわり、限られたスペースの中に洗練された優雅さを表現しています。
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
lang: zh-tw
|
||||
---
|
||||
|
||||
Retypeset 是一款基於[Astro](https://astro.build/)框架的靜態博客主題,設計靈感來自[Typography](https://astro-theme-typography.vercel.app/)。本主題通過建立全新的視覺規範,對所有頁面進行重新編排,打造紙質書頁般的閱讀體驗,再現版式之美。所見皆為細節,方寸盡顯優雅。
|
||||
Retypeset,中文名為重新編排,是一款基於[Astro](https://astro.build/)框架的靜態部落格主題,設計靈感來自[Typography](https://astro-theme-typography.vercel.app/)。本主題通過建立全新的視覺規範,對所有頁面進行重新編排,打造紙質書頁般的閱讀體驗,再現版式之美。所見皆為細節,方寸盡顯優雅。
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
lang: zh
|
||||
---
|
||||
|
||||
Retypeset 是一款基于[Astro](https://astro.build/)框架的静态博客主题,设计灵感来自[Typography](https://astro-theme-typography.vercel.app/)。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。
|
||||
Retypeset,中文名为重新编排,是一款基于[Astro](https://astro.build/)框架的静态博客主题,设计灵感来自[Typography](https://astro-theme-typography.vercel.app/)。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。
|
||||
|
|
|
@ -8,4 +8,4 @@ lang: ja
|
|||
abbrlink: theme-guide
|
||||
---
|
||||
|
||||
Retypeset は [Astro](https://astro.build/) フレームワークをベースにした静的ブログテーマで、[Typography](https://astro-theme-typography.vercel.app/) からインスピレーションを得ています。新しい視覚的標準を確立し、すべてのページのレイアウトを再考することで、紙の本のような読書体験を提供し、タイポグラフィの美しさを蘇らせます。細部へのこだわりと、洗練された空間デザインが特徴です。
|
||||
Retypeset、日本語では「再組版」と呼ばれる、[Astro](https://astro.build/) フレームワークをベースにした静的ブログテーマで、[Typography](https://astro-theme-typography.vercel.app/) からインスピレーションを得ています。新しい視覚的な規範を確立し、すべてのページのレイアウトを再構成することで、紙の書籍のような読書体験を提供し、版面の美しさを蘇らせます。細部にまでこだわり、限られたスペースの中に洗練された優雅さを表現しています。
|
||||
|
|
|
@ -8,4 +8,4 @@ lang: zh-tw
|
|||
abbrlink: theme-guide
|
||||
---
|
||||
|
||||
Retypeset 是一款基於 [Astro](https://astro.build/) 框架的靜態博客主題,設計靈感來自 [Typography](https://astro-theme-typography.vercel.app/)。本主題通過建立全新的視覺規範,對所有頁面進行重新編排,打造紙質書頁般的閱讀體驗,再現版式之美。所見皆為細節,方寸盡顯優雅。
|
||||
Retypeset,中文名為重新編排,是一款基於 [Astro](https://astro.build/) 框架的靜態部落格主題,設計靈感來自 [Typography](https://astro-theme-typography.vercel.app/)。本主題通過建立全新的視覺規範,對所有頁面進行重新編排,打造紙質書頁般的閱讀體驗,再現版式之美。所見皆為細節,方寸盡顯優雅。
|
||||
|
|
|
@ -8,4 +8,4 @@ lang: zh
|
|||
abbrlink: theme-guide
|
||||
---
|
||||
|
||||
Retypeset 是一款基于[Astro](https://astro.build/)框架的静态博客主题,设计灵感来自[Typography](https://astro-theme-typography.vercel.app/)。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。
|
||||
Retypeset,中文名为重新编排,是一款基于[Astro](https://astro.build/)框架的静态博客主题,设计灵感来自[Typography](https://astro-theme-typography.vercel.app/)。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。
|
||||
|
|
|
@ -2,6 +2,7 @@ export const ui = {
|
|||
'zh': {
|
||||
title: '重新编排',
|
||||
subtitle: '再现版式之美',
|
||||
description: 'Retypeset,中文名为重新编排,是一款基于Astro框架的静态博客主题,设计灵感来自Typography。本主题通过建立全新的视觉规范,对所有页面进行重新编排,打造纸质书页般的阅读体验,再现版式之美。所见皆为细节,方寸尽显优雅。',
|
||||
posts: '文章',
|
||||
tags: '标签',
|
||||
about: '关于',
|
||||
|
@ -9,6 +10,7 @@ export const ui = {
|
|||
'zh-tw': {
|
||||
title: '重新編排',
|
||||
subtitle: '再現版式之美',
|
||||
description: 'Retypeset,中文名為重新編排,是一款基於Astro框架的靜態部落格主題,設計靈感來自Typography。本主題通過建立全新的視覺規範,對所有頁面進行重新編排,打造紙質書頁般的閱讀體驗,再現版式之美。所見皆為細節,方寸盡顯優雅。',
|
||||
posts: '文章',
|
||||
tags: '標籤',
|
||||
about: '關於',
|
||||
|
@ -16,6 +18,7 @@ export const ui = {
|
|||
'ja': {
|
||||
title: '再組版',
|
||||
subtitle: '印刷の美を甦らせる',
|
||||
description: 'Retypeset、日本語では「再組版」と呼ばれる、Astroフレームワークをベースにした静的ブログテーマで、Typographyからインスピレーションを得ています。新しい視覚的な規範を確立し、すべてのページのレイアウトを再構成することで、紙の書籍のような読書体験を提供し、版面の美しさを蘇らせます。細部にまでこだわり、限られたスペースの中に洗練された優雅さを表現しています。',
|
||||
posts: '記事',
|
||||
tags: 'タグ',
|
||||
about: '概要',
|
||||
|
@ -23,6 +26,7 @@ export const ui = {
|
|||
'en': {
|
||||
title: 'Retypeset',
|
||||
subtitle: 'Revive the beauty of typography',
|
||||
description: 'Retypeset is a static blog theme based on the Astro framework, inspired by Typography. Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.',
|
||||
posts: 'Posts',
|
||||
tags: 'Tags',
|
||||
about: 'About',
|
||||
|
@ -30,6 +34,7 @@ export const ui = {
|
|||
'es': {
|
||||
title: 'Retipografía',
|
||||
subtitle: 'Reviviendo la belleza tipográfica',
|
||||
description: 'Retypeset es un tema de blog estático basado en el framework Astro, inspirado en Typography. Retypeset establece un nuevo estándar visual y reimagina la disposición de todas las páginas, ofreciendo una experiencia de lectura similar a la de los libros impresos, reviviendo la belleza de la tipografía. Detalles en cada mirada, elegancia en cada espacio.',
|
||||
posts: 'Artículos',
|
||||
tags: 'Etiquetas',
|
||||
about: 'Sobre',
|
||||
|
@ -37,6 +42,7 @@ export const ui = {
|
|||
'ru': {
|
||||
title: 'Переверстка',
|
||||
subtitle: 'Возрождая красоту типографики',
|
||||
description: 'Retypeset — это статическая тема блога, основанная на фреймворке Astro и вдохновленная Typography. Retypeset устанавливает новый визуальный стандарт и переосмысливает компоновку всех страниц, предлагая опыт чтения, подобный бумажным книгам, возрождая красоту типографики. Детали в каждом взгляде, элегантность в каждом пространстве.',
|
||||
posts: 'Посты',
|
||||
tags: 'Теги',
|
||||
about: 'О себе',
|
||||
|
|
|
@ -22,11 +22,12 @@ const { google = '', bing = '', yandex = '', baidu = '' } = verification
|
|||
const { commentURL = '', imageHostURL = '', customGoogleAnalyticsJS = '', customUmamiAnalyticsJS = '' } = themeConfig.preload
|
||||
|
||||
const initMetaTheme = mode === 'dark' ? darkMode : lightMode
|
||||
const headTitle = i18nTitle ? currentUI.title : title
|
||||
const headSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
||||
const siteTitle = i18nTitle ? currentUI.title : title
|
||||
const siteSubtitle = i18nTitle ? currentUI.subtitle : subtitle
|
||||
const siteDescription = i18nTitle ? currentUI.description : description
|
||||
|
||||
const pageTitle = postTitle ? `${postTitle} | ${headTitle}` : `${headTitle} - ${headSubtitle}`
|
||||
const pageDescription = postDescription || description
|
||||
const pageTitle = postTitle ? `${postTitle} | ${siteTitle}` : `${siteTitle} - ${siteSubtitle}`
|
||||
const pageDescription = postDescription || siteDescription
|
||||
const pageImage = postSlug
|
||||
? `${url}/og/${postSlug}.png`
|
||||
: apiflashKey
|
||||
|
|
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
|
@ -7,8 +7,8 @@ export interface ThemeConfig {
|
|||
site: {
|
||||
title: string
|
||||
subtitle: string
|
||||
i18nTitle: boolean
|
||||
description: string
|
||||
i18nTitle: boolean
|
||||
author: string
|
||||
url: string
|
||||
favicon: string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue