Skip to content

Commit

Permalink
add version number to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-101 committed Sep 13, 2020
1 parent 0d1f478 commit b28c304
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
20 changes: 15 additions & 5 deletions components/BaelFooter.vue
@@ -1,9 +1,7 @@
<template>
<footer class="fill-gray-lighter xs-text-6 md-text-5">
<div class="r no-gap">
<div v-if="pagination.active"
class="c-12 xs-text-left xs-p2"
>
<div v-if="pagination.active" class="c-12 xs-text-left xs-p2">
<lazy-bael-pagination :pagination="pagination" />
</div>
<div
Expand Down Expand Up @@ -54,7 +52,8 @@
</div>
<div class="c-12 xs-text-left xs-p2 xs-border xs-border-right-none xs-border-bottom-none">
<div class="item xs-text-6">
<a href="https://github.com/jake-101/bael-template">Bael</a>, An open source design by
<a href="https://github.com/jake-101/bael-template">Bael</a>
<span class="small-txt" v-if="version">{{version}}</span>, An open source design by
<a href="https://jake101.com">jake101</a>
</div>
</div>
Expand All @@ -72,6 +71,9 @@ export default {
pagination() {
return this.$store.state.pagination;
},
version() {
return process.env.BAEL_VERSION || false;
},
signupAboutSize: function () {
return {
"c-25": this.signupBoolean,
Expand All @@ -95,12 +97,20 @@ export default {
.text-input {
max-width: 100%;
}
.small-txt {
font-size: 80%;
}
footer .item:hover .footer__heading {
color: rgba(119, 119, 119, 0.6);
transition: 0.2s color ease-in-out;
}
.footer__heading {
max-width: 100%;
pointer-events: none;
color: rgba(119, 119, 119, 0.4);
font-weight: 800;
font-size: 85%;
transition: 0.1s color ease-in-out;
}
.pagination__button--disabled {
pointer-events: none;
Expand Down
2 changes: 2 additions & 0 deletions nuxt.config.js
@@ -1,4 +1,5 @@
const siteInfo = require('./content/setup/info.json');
const pkginfo = require('./package.json')
const webpack = require('webpack')

module.exports = {
Expand All @@ -11,6 +12,7 @@ module.exports = {
transition: { mode: "in-out" },
env: {
API_URL: process.env.API_URL,
BAEL_VERSION: pkginfo.version
},
head: {
title: siteInfo.sitename,
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bael-cms-template",
"version": "1.0",
"version": "1.0 dev",
"description": "A fashionable brutalist blog template using Netlify CMS and Nuxt.js",
"author": "jake101 <hello@jake101.com>",
"scripts": {
Expand Down

0 comments on commit b28c304

Please sign in to comment.