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:
parent
ff3de9757b
commit
ab797ca0b2
@ -73,6 +73,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
title
|
title
|
||||||
app
|
app
|
||||||
module
|
module
|
||||||
|
version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -131,8 +132,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
await createSwaggerPages(createPage)
|
await createSwaggerPages(createPage)
|
||||||
|
|
||||||
// API: ocean.js
|
// API: ocean.js
|
||||||
const lastRelease =
|
const lastRelease = result.data.oceanJs.repository.releases.edges.filter(
|
||||||
result.data.oceanJs.repository.releases.edges.filter(
|
|
||||||
({ node }) =>
|
({ node }) =>
|
||||||
!node.isPrerelease &&
|
!node.isPrerelease &&
|
||||||
!node.isDraft &&
|
!node.isDraft &&
|
||||||
|
@ -23,6 +23,7 @@ export default function MarkdownTemplate({ data }) {
|
|||||||
>
|
>
|
||||||
View source on Github
|
View source on Github
|
||||||
</a>
|
</a>
|
||||||
|
v{post.frontmatter.version}
|
||||||
</footer>
|
</footer>
|
||||||
</Content>
|
</Content>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user