Skip to content

Commit

Permalink
feat: add privacy-policy; add aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-berlin committed Mar 19, 2023
1 parent fb3d2c8 commit 5e71fd8
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
8 changes: 8 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { fileURLToPath } from 'node:url'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
Expand Down Expand Up @@ -28,6 +30,12 @@ export default defineNuxtConfig({
dirs: ['stores']
},

alias: {
'@images': fileURLToPath(new URL('./assets/images', import.meta.url)),
'@styles': fileURLToPath(new URL('./assets/styles', import.meta.url)),
'@sass-butler': fileURLToPath(new URL('./node_modules/@felix_berlin/sass-butler/', import.meta.url))
},

apollo: {
clients: {
default: {
Expand Down
6 changes: 3 additions & 3 deletions pages/imprint.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="c-content o-legal-pages">
<GutenbergBlocks v-if="result?.page.content" :blocks="result.page.blocks" />
</div>
</template>
Expand Down Expand Up @@ -29,6 +29,6 @@ useServerSeoMeta({
})
</script>

<style scoped>
<style lang="scss">
@use '@styles/objects/legal-pages';
</style>
33 changes: 33 additions & 0 deletions pages/privacy-policy.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<template>
<div class="c-content o-legal-pages">
<GutenbergBlocks v-if="result?.page.content" :blocks="result.page.blocks" />
</div>
</template>

<script setup lang="ts">
const query = gql`
query imprintPage {
page(id: "4715", idType: DATABASE_ID) {
content,
blocks {
name
order
attributesJSON
}
}
}`
const { result } = useQuery(query)
useServerSeoMeta({
title: 'Datenschutzerklärung - Berliner Schnauze',
ogTitle: 'Datenschutzerklärung - Berliner Schnauze',
description: 'Die Datenschutzerklärung von Berliner Schnauze.',
ogDescription: 'Die Datenschutzerklärung von Berliner Schnauze.'
})
</script>

<style lang="scss">
@use '@styles/objects/legal-pages';
</style>

0 comments on commit 5e71fd8

Please sign in to comment.