MyLayout.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--
  2. - Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
  3. - <p>
  4. - Licensed under the Apache License, Version 2.0 (the "License");
  5. - you may not use this file except in compliance with the License.
  6. - You may obtain a copy of the License at
  7. - <p>
  8. - http://www.apache.org/licenses/LICENSE-2.0
  9. - <p>
  10. - Unless required by applicable law or agreed to in writing, software
  11. - distributed under the License is distributed on an "AS IS" BASIS,
  12. - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. - See the License for the specific language governing permissions and
  14. - limitations under the License.
  15. -->
  16. <!--.vitepress/theme/MyLayout.vue-->
  17. <script setup>
  18. import DefaultTheme from 'vitepress/theme'
  19. import {useData} from "vitepress";
  20. const {Layout} = DefaultTheme
  21. const {lang} = useData()
  22. // console.log(">>>data",data)
  23. </script>
  24. <template>
  25. <Layout>
  26. <!-- <template #nav-bar-content-after>-->
  27. <!-- <div style="padding-left: 20px;">-->
  28. <!-- <a href="https://www.producthunt.com/posts/aieditor?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-aieditor"-->
  29. <!-- target="_blank"><img-->
  30. <!-- src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=469676&theme=light&period=daily"-->
  31. <!-- alt="LinwitDocEditor - An&#0032;open&#0032;source&#0032;AI&#0045;powered&#0032;rich&#0032;text&#0032;editor | Product Hunt"-->
  32. <!-- style="width: 250px; height: 54px;" width="250" height="54"/></a>-->
  33. <!-- </div>-->
  34. <!-- </template>-->
  35. <template #home-hero-image>
  36. <div style="z-index: 9999">
  37. <img v-if="lang === 'en'" src="/assets/image/ai-en.png">
  38. <img v-else src="/assets/image/ai.png">
  39. </div>
  40. </template>
  41. <!-- <template #doc-before>-->
  42. <!-- <div v-if="lang === 'zh'" style="z-index: 9999;margin-bottom: 40px">-->
  43. <!-- <a href="https://ai.gitee.com/events/iluvatar-ai-app-contest/detail?app=6" target="_blank">-->
  44. <!-- <img src="/assets/image/gitee-ai.png">-->
  45. <!-- </a>-->
  46. <!-- </div>-->
  47. <!-- </template>-->
  48. <!-- <template #home-features-after>-->
  49. <!-- <div class="banner-home">-->
  50. <!-- <a href="https://aiadmin.cc" target="_blank">-->
  51. <!-- <img src="/assets/image/admin-banner.jpg">-->
  52. <!-- </a>-->
  53. <!-- </div>-->
  54. <!-- </template>-->
  55. <template #layout-bottom>
  56. <!-- Google Tag Manager (noscript) -->
  57. <!-- End Google Tag Manager (noscript) -->
  58. </template>
  59. </Layout>
  60. </template>