Skip to content

Commit

Permalink
Merge pull request #495 from LibCrowds/mailchimp
Browse files Browse the repository at this point in the history
Add footer menu config option
  • Loading branch information
alexandermendes authored Nov 10, 2017
2 parents 6284272 + 276f4b8 commit a34e77e
Show file tree
Hide file tree
Showing 5 changed files with 845 additions and 12 deletions.
21 changes: 15 additions & 6 deletions components/footers/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,21 @@
class="list-inline-item mx-1">
<a :href="localConfig.githubUrl" class="text-muted">
<icon name="github"></icon>
</a>
</a>
</li>
</ul>
</section>

<section class="d-none d-lg-block" v-if="localConfig.footer">
<h5 class="list-title">{{ localConfig.footer.title }}</h5>
<ul class="list-unstyled">
<li
v-for="(item, index) in localConfig.footer.items"
:key="index"
class="list-item">
<a :href="item.url" target="_blank">
{{ item.text }}
</a>
</li>
</ul>
</section>
Expand Down Expand Up @@ -95,7 +109,6 @@
</li>
</ul>
</section>

</div>
</footer>
</template>
Expand Down Expand Up @@ -174,9 +187,5 @@ export default {
.brand-link {
font-family: $headings-font-family;
}
#bg-img-attribution {
font-size: $font-size-xs
}
}
</style>
13 changes: 13 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@ A URL to the platform's documentation.
config.docs: 'http://docs.example.com'
```

### footer

Add an additional list menu to the main footer.

```js
config.footer = {
title: 'Newsletter',
items: [
{ text: 'Sign up', url: 'http://mailchimp.signup.url' }
]
}
```

### githubUrl

Provide a GitHub link that relates to the site.
Expand Down
8 changes: 8 additions & 0 deletions local.config.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ const config = {
}
}

// Additional footer menu
// config.footer = {
// title: 'Newsletter',
// items: [
// { text: 'Sign up', url: 'http://mailchimp.signup.url' }
// ]
// }

// Mapbox configuration for location stats
// config.mapbox = {
// id: 'mapbox.streets',
Expand Down
Loading

0 comments on commit a34e77e

Please sign in to comment.