1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Feature: Add version in footer

This commit is contained in:
Akshay 2021-06-02 01:23:41 +02:00
parent ff3de9757b
commit ab797ca0b2
2 changed files with 8 additions and 7 deletions

View File

@ -73,6 +73,7 @@ exports.createPages = ({ graphql, actions }) => {
title
app
module
version
}
}
}
@ -131,8 +132,7 @@ exports.createPages = ({ graphql, actions }) => {
await createSwaggerPages(createPage)
// API: ocean.js
const lastRelease =
result.data.oceanJs.repository.releases.edges.filter(
const lastRelease = result.data.oceanJs.repository.releases.edges.filter(
({ node }) =>
!node.isPrerelease &&
!node.isDraft &&

View File

@ -23,6 +23,7 @@ export default function MarkdownTemplate({ data }) {
>
View source on Github
</a>
v{post.frontmatter.version}
</footer>
</Content>
</>