Skip to content

Commit

Permalink
Update footer to appear also on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjaeger committed Jun 26, 2023
1 parent ef80e4c commit 1c94239
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions docs/.vuepress/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<template>
<Layout>
<template #page-bottom>
<div class="footer">
<span style="padding: 5px;"><a href="https://twitter.com/LibreSolar"><img src="/images/twitter-logo.svg" height="14" /> Twitter</a></span>
<span style="padding: 5px;"><a href="https://github.com/LibreSolar"><img src="/images/github-logo.svg" height="14" /> GitHub</a></span>
| <span style="padding: 5px;">Content provided by The Libre Solar Project under <a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode">CC-BY-SA 4.0 License</a></span>
| <span style="padding: 5px;"><a href="https://libre.solar/about/contact.html">Contact / Impressum</a></span>
</div>
</template>
</Layout>
<Layout />
<div class="footer">
<span style="padding: 5px;"><a href="https://twitter.com/LibreSolar"><img src="/images/twitter-logo.svg" height="14" /> Twitter</a></span>
<span style="padding: 5px;"><a href="https://github.com/LibreSolar"><img src="/images/github-logo.svg" height="14" /> GitHub</a></span>
| <span style="padding: 5px;">Content provided by The Libre Solar Project under <a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode">CC-BY-SA 4.0 License</a></span>
| <span style="padding: 5px;"><a href="https://libre.solar/about/contact.html">Contact / Impressum</a></span>
</div>
</template>


<script lang="ts">
import { defineComponent } from 'vue'
import Layout from '@vuepress/theme-default/lib/client/layouts/Layout.vue'
Expand All @@ -24,8 +22,11 @@ export default defineComponent({

<style>
.footer {
border-top: 1px #ccc solid;
padding: 1rem 1rem 0 1rem;
border-top: 1px var(--c-border) solid;
padding: 1rem;
text-align: center;
background-color: var(--c-bg-light);
height: auto;
flex-grow: 1;
}
</style>

0 comments on commit 1c94239

Please sign in to comment.