add section vus
This commit is contained in:
@@ -3,12 +3,19 @@
|
||||
* Корневой компонент. Класс body задан на уровне страницы,
|
||||
* потому что в исходной вёрстке главная и страница вузов различаются:
|
||||
* index.html — «font-face-all», vus.html — «text-color».
|
||||
* Текстовой раскраской помечаются и адресные страницы вузов /vus/<slug>.
|
||||
*/
|
||||
const route = useRoute();
|
||||
|
||||
const isVusSection = computed(
|
||||
() => route.path === "/vus" || route.path.startsWith("/vus/"),
|
||||
);
|
||||
|
||||
useHead({
|
||||
bodyAttrs: {
|
||||
class: computed(() => (route.path === "/vus" ? "text-color" : "font-face-all")),
|
||||
class: computed(() =>
|
||||
isVusSection.value ? "text-color" : "font-face-all",
|
||||
),
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user