mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
chore: tweak
This commit is contained in:
parent
8c3d6137b1
commit
3ed4058ae2
@ -108,9 +108,7 @@ watch(
|
||||
<slot name="doc-before" />
|
||||
<main class="main">
|
||||
<VPDocMeta />
|
||||
<ClientOnly v-if="!isPageDecrypted">
|
||||
<VPEncryptPage />
|
||||
</ClientOnly>
|
||||
<VPEncryptPage v-if="!isPageDecrypted" />
|
||||
<Content
|
||||
v-else class="vp-doc plume-content"
|
||||
:class="[pageName, enabledExternalLinkIcon && 'external-link-icon-enabled']"
|
||||
|
||||
@ -11,19 +11,21 @@ const title = computed(() => profile.value?.name || site.value.title)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="vp-global-encrypt">
|
||||
<div class="global-encrypt-container">
|
||||
<div v-if="profile || title" class="profile">
|
||||
<p v-if="profile" class="avatar" :class="{ circle: profile.circle }">
|
||||
<img :src="profile.avatar ?? profile.url" :alt="profile.name">
|
||||
</p>
|
||||
<h3 v-if="title">
|
||||
{{ title }}
|
||||
</h3>
|
||||
<ClientOnly>
|
||||
<div class="vp-global-encrypt">
|
||||
<div class="global-encrypt-container">
|
||||
<div v-if="profile || title" class="profile">
|
||||
<p v-if="profile" class="avatar" :class="{ circle: profile.circle }">
|
||||
<img :src="profile.avatar ?? profile.url" :alt="profile.name">
|
||||
</p>
|
||||
<h3 v-if="title">
|
||||
{{ title }}
|
||||
</h3>
|
||||
</div>
|
||||
<VPEncryptForm global :info="theme.encryptGlobalText" />
|
||||
</div>
|
||||
<VPEncryptForm global :info="theme.encryptGlobalText" />
|
||||
</div>
|
||||
</div>
|
||||
</ClientOnly>
|
||||
<VPFooter />
|
||||
</template>
|
||||
|
||||
|
||||
@ -6,12 +6,14 @@ const { theme } = useData()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="vp-page-encrypt">
|
||||
<div class="logo">
|
||||
<span class="vpi-lock icon-lock-head" />
|
||||
<ClientOnly>
|
||||
<div class="vp-page-encrypt">
|
||||
<div class="logo">
|
||||
<span class="vpi-lock icon-lock-head" />
|
||||
</div>
|
||||
<VPEncryptForm :info="theme.encryptPageText" />
|
||||
</div>
|
||||
<VPEncryptForm :info="theme.encryptPageText" />
|
||||
</div>
|
||||
</ClientOnly>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user