mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +00:00
Merge branch 'integration' into ddl-migration
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
published: '2019-07-11T22:12:03.284Z',
|
published: '2019-07-11T22:12:03.284Z',
|
||||||
author: 'crutchcorn',
|
author: 'crutchcorn',
|
||||||
tags: ['angular', 'templates'],
|
tags: ['angular', 'templates'],
|
||||||
attached: []
|
attached: [],
|
||||||
|
license: 'cc-by-nc-sa-4'
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
published: '2019-06-29T22:12:03.284Z',
|
published: '2019-06-29T22:12:03.284Z',
|
||||||
author: 'crutchcorn',
|
author: 'crutchcorn',
|
||||||
tags: ['community', 'announcements'],
|
tags: ['community', 'announcements'],
|
||||||
attached: []
|
attached: [],
|
||||||
|
license: 'cc-by-4'
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
mapping: {
|
mapping: {
|
||||||
"MarkdownRemark.frontmatter.author": `UnicornsJson`,
|
"MarkdownRemark.frontmatter.author": `UnicornsJson`,
|
||||||
|
"MarkdownRemark.frontmatter.license": `LicensesJson`,
|
||||||
"UnicornsJson.pronouns": `PronounsJson`,
|
"UnicornsJson.pronouns": `PronounsJson`,
|
||||||
"UnicornsJson.roles": `RolesJson`,
|
"UnicornsJson.roles": `RolesJson`,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -81,6 +81,13 @@ export const postFragmentQuery = graphql`
|
|||||||
author {
|
author {
|
||||||
...UnicornInfo
|
...UnicornInfo
|
||||||
}
|
}
|
||||||
|
license {
|
||||||
|
licenceType
|
||||||
|
footerImg
|
||||||
|
explainLink
|
||||||
|
name
|
||||||
|
displayName
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fields {
|
fields {
|
||||||
slug
|
slug
|
||||||
|
|||||||
18
src/data/licenses.json
Normal file
18
src/data/licenses.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "cc-by-nc-sa-4",
|
||||||
|
"footerImg": "https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png",
|
||||||
|
"licenceType": "Creative Commons License",
|
||||||
|
"explainLink": "http://creativecommons.org/licenses/by-nc-sa/4.0/",
|
||||||
|
"name": "Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)",
|
||||||
|
"displayName": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cc-by-4",
|
||||||
|
"footerImg": "https://i.creativecommons.org/l/by/4.0/88x31.png",
|
||||||
|
"licenceType": "Creative Commons License",
|
||||||
|
"explainLink": "http://creativecommons.org/licenses/by/4.0/",
|
||||||
|
"name": "Attribution 4.0 International (CC BY 4.0)",
|
||||||
|
"displayName": "Creative Commons Attribution 4.0 International License"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -43,6 +43,18 @@ const BlogPostTemplate = (props) => {
|
|||||||
dangerouslySetInnerHTML={{ __html: post.html }}
|
dangerouslySetInnerHTML={{ __html: post.html }}
|
||||||
/>
|
/>
|
||||||
<div className="post-lower-area">
|
<div className="post-lower-area">
|
||||||
|
<div>
|
||||||
|
<a
|
||||||
|
aria-label={`Post licensed with ${post.frontmatter.license.displayName}`}
|
||||||
|
href={post.frontmatter.license.explainLink}
|
||||||
|
style={{display: 'table', margin: '0 auto'}}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={post.frontmatter.license.footerImg}
|
||||||
|
alt={post.frontmatter.license.licenseType}
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
|||||||
Reference in New Issue
Block a user