chr
2026-04-05 fe750b791d5b517cc4e9bc8e99a9a75139a0cfba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<template>
  <Layout/>
</template>
 
<script setup lang="ts">
import { useData } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import { useRouter } from 'vitepress'
const { Layout } = DefaultTheme
const { route, go } = useRouter()
const { hash } = useData()
 
if (route.path.toLowerCase().endsWith(".html") == false) {
  let fixedPathname = route.path;
 
  if (route.path.endsWith('/') == false)
    fixedPathname += '/';
 
  fixedPathname += 'Readme.html' + hash.value;
 
  go(fixedPathname);
}
</script>