Skip to content

Commit 14a1cd9

Browse files
committed
fix: updating slide-top
(this really needs to move into theme)
1 parent 4320084 commit 14a1cd9

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

slide-top.vue

+12-11
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function checkvars() {
106106
}
107107
}
108108

109-
if ($frontmatter.layout == 'cover') {
109+
if ($frontmatter.layout == 'cover' || $frontmatter.layout == 'section') {
110110
process_top_left_colors($frontmatter.color)
111111
}
112112
} else if ($frontmatter.layout == 'end') {
@@ -138,7 +138,7 @@ function checkvars() {
138138
}
139139
}
140140

141-
if ($frontmatter.layout == 'cover') {
141+
if ($frontmatter.layout == 'cover' || $frontmatter.layout == 'section') {
142142
process_top_right_colors($frontmatter.color)
143143
}
144144
} else if ($frontmatter.layout == 'end') {
@@ -152,9 +152,10 @@ onMounted(() => checkvars())
152152
<template>
153153
<div
154154
v-if="
155-
($slidev.nav.currentLayout == 'cover' && $frontmatter.brand_tl !== false) ||
156-
($slidev.nav.currentLayout == 'intro' && $frontmatter.brand_tl !== false) ||
157-
($slidev.nav.currentLayout == 'end' && $frontmatter.brand_tl !== false) ||
155+
($frontmatter.layout == 'cover' && $frontmatter.brand_tl !== false) ||
156+
($frontmatter.layout == 'section' && $frontmatter.brand_tl !== false) ||
157+
($frontmatter.layout == 'intro' && $frontmatter.brand_tl !== false) ||
158+
($frontmatter.layout == 'end' && $frontmatter.brand_tl !== false) ||
158159
$frontmatter.brand_tl == true ||
159160
$frontmatter.brand_tl == 'auto_true'
160161
"
@@ -167,12 +168,12 @@ onMounted(() => checkvars())
167168
v-if="
168169
$frontmatter.brand_tr == true ||
169170
($frontmatter.brand_tr == 'auto_true' &&
170-
$frontmatter.currentLayout != 'image' &&
171-
$frontmatter.currentLayout != 'image-right' &&
172-
$frontmatter.currentLayout != 'iframe-right' &&
173-
$frontmatter.currentLayout != 'iframe' &&
174-
$frontmatter.currentLayout != 'top-title' &&
175-
$frontmatter.currentLayout != 'top-title-twocols')
171+
$frontmatter.layout != 'image' &&
172+
$frontmatter.layout != 'image-right' &&
173+
$frontmatter.layout != 'iframe-right' &&
174+
$frontmatter.layout != 'iframe' &&
175+
$frontmatter.layout != 'top-title' &&
176+
$frontmatter.layout != 'top-title-two-cols')
176177
"
177178
class="absolute top-3 right-2 p-3 pr-3 border.b-1 z-10 font-size-3 font-mono width-full text-right"
178179
:class="brand_tr_color"

0 commit comments

Comments
 (0)