slidev-theme-tud 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/layouts/cover-blue.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="content p-[64px]">
|
|
5
5
|
<!-- <slot></slot> -->
|
|
6
6
|
<div class="title absolute bottom-[340px] w-full">
|
|
7
|
-
<div class="date absolute top-0 -translate-y-full text-md">{{
|
|
7
|
+
<div class="date absolute top-0 -translate-y-full text-md">{{ get_date_line }}</div>
|
|
8
8
|
<h1 v-if="!slotTags.includes('h1')"> {{ $slidev.configs.title }} </h1>
|
|
9
9
|
<component v-else v-for="node in get_slot('h1')" :is="node" :key="node.key"/>
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<div class="name absolute bottom-[120px]">
|
|
18
18
|
<div v-if="!slotTags.includes('p')">
|
|
19
|
-
<p class="!text-2xl !m-0 font-bold"
|
|
19
|
+
<p class="!text-2xl !m-0 font-bold" v-html="$slidev.configs.author"></p>
|
|
20
20
|
<p class="!m-0 !text-sm">{{ $slidev.configs.group }}</p>
|
|
21
21
|
</div>
|
|
22
22
|
<component v-else v-for="node in get_slot('p')" class="!m-0 !text-sm" :is="node" :key="node.key"/>
|
|
@@ -47,6 +47,10 @@ const get_date = computed(() => {
|
|
|
47
47
|
const d = $slidev.configs.date
|
|
48
48
|
return d ? expandDateTokens(String(d)) : d
|
|
49
49
|
})
|
|
50
|
+
|
|
51
|
+
const get_date_line = computed(() =>
|
|
52
|
+
[$slidev.configs.location, get_date.value].filter(Boolean).join(' • ')
|
|
53
|
+
)
|
|
50
54
|
</script>
|
|
51
55
|
|
|
52
56
|
<style scoped lang="stylus">
|
package/layouts/cover-white.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="content p-[64px]">
|
|
5
5
|
|
|
6
6
|
<div class="title absolute bottom-[340px] w-full">
|
|
7
|
-
<div class="date absolute top-0 -translate-y-full text-gray text-md">{{
|
|
7
|
+
<div class="date absolute top-0 -translate-y-full text-gray text-md">{{ get_date_line }}</div>
|
|
8
8
|
<h1 v-if="!slotTags.includes('h1')"> {{ $slidev.configs.title }} </h1>
|
|
9
9
|
<component v-else v-for="node in get_slot('h1')" :is="node" :key="node.key"/>
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<div class="name absolute bottom-[120px] text-gray">
|
|
18
18
|
<div v-if="!slotTags.includes('p')">
|
|
19
|
-
<p class="!text-2xl !m-0 font-bold"
|
|
19
|
+
<p class="!text-2xl !m-0 font-bold" v-html="$slidev.configs.author"></p>
|
|
20
20
|
<p class="!m-0 !text-sm">{{ $slidev.configs.group }}</p>
|
|
21
21
|
</div>
|
|
22
22
|
<component v-else v-for="node in get_slot('p')" class="!m-0 !text-sm" :is="node" :key="node.key"/>
|
|
@@ -46,6 +46,10 @@ const get_date = computed(() => {
|
|
|
46
46
|
const d = $slidev.configs.date
|
|
47
47
|
return d ? expandDateTokens(String(d)) : d
|
|
48
48
|
})
|
|
49
|
+
|
|
50
|
+
const get_date_line = computed(() =>
|
|
51
|
+
[$slidev.configs.location, get_date.value].filter(Boolean).join(' • ')
|
|
52
|
+
)
|
|
49
53
|
</script>
|
|
50
54
|
|
|
51
55
|
<style scoped>
|