Skip to content
Snippets Groups Projects
Commit 48296dc5 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Overwrite DocsPageBottom component to use gitlabedit compo

parent f2b1aa85
No related branches found
No related tags found
No related merge requests found
<script setup lang="ts">
const { page } = useContent();
const { config, tree } = useDocus();
</script>
<template>
<div v-if="page" class="docs-page-bottom">
<div v-if="config?.gitlab?.edit" class="edit-link">
<Icon name="uil:edit" />
<EditGitLab
:owner="config.gitlab.owner"
:repo="config.gitlab.repo"
:branch="config?.gitlab?.branch"
/>
</div>
<!-- Need to be supported by @nuxt/content -->
<span v-if="page?.mtime"
>Updated on
<b>{{
new Intl.DateTimeFormat("en-US").format(Date.parse(page.mtime))
}}</b></span
>
</div>
</template>
<style scoped lang="ts">
css({
'.docs-page-bottom': {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
gap: '{space.4}',
marginTop: '{space.8}',
fontSize: '{fontSize.sm}',
color: '{color.gray.500}',
'@dark': {
color: '{color.gray.400}'
},
'.edit-link': {
flex: 1,
display: 'flex',
alignItems: 'center',
gap: '{space.2}'
}
}
})
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment