slidev-theme-tud 0.0.11 → 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.
@@ -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">{{ get_date }}</div>
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
 
@@ -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">
@@ -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">{{ get_date }}</div>
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
 
@@ -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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-tud",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "description": "Corporate TUD theme for SliDev",
6
6
  "keywords": [