mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-09 02:13:04 +02:00
Support multiple link types
This commit is contained in:
@@ -5,8 +5,8 @@ admin_path:
|
||||
webhook_url:
|
||||
sections:
|
||||
- type: directory
|
||||
path: src/_blog/newslinks
|
||||
label: News Links
|
||||
path: src/_blog/newscoverage
|
||||
label: News Coverage
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
<script>
|
||||
import RegularCard from '@theme/components/blog/RegularCard'
|
||||
import NewslinkCard from '@theme/components/blog/NewslinkCard'
|
||||
import LinkCard from '@theme/components/blog/LinkCard'
|
||||
|
||||
export default {
|
||||
name: 'BlogCard',
|
||||
components: { RegularCard, NewslinkCard },
|
||||
components: { RegularCard, LinkCard },
|
||||
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
@@ -27,8 +27,11 @@ export default {
|
||||
}
|
||||
|
||||
switch (this.card.type) {
|
||||
case 'newslink':
|
||||
return NewslinkCard
|
||||
case 'News coverage':
|
||||
return LinkCard
|
||||
|
||||
case 'Release notes':
|
||||
return LinkCard
|
||||
|
||||
default:
|
||||
return null
|
||||
|
||||
+2
-2
@@ -31,7 +31,7 @@
|
||||
</UnstyledLink>
|
||||
<div>
|
||||
<PostMeta
|
||||
category="newslink"
|
||||
category="frontmatter.type"
|
||||
:date="frontmatter.date"
|
||||
:tags="frontmatter.tags"
|
||||
class="type-p4 text-primary"
|
||||
@@ -57,7 +57,7 @@ import UnstyledLink from '@theme/components/UnstyledLink'
|
||||
import PostMeta from '@theme/components/blog/PostMeta'
|
||||
|
||||
export default {
|
||||
name: 'BlogNewslinkCard',
|
||||
name: 'LinkCard',
|
||||
components: {
|
||||
LazyImage,
|
||||
UnstyledLink,
|
||||
@@ -33,7 +33,7 @@
|
||||
</router-link>
|
||||
<div>
|
||||
<PostMeta
|
||||
category="Blog Post"
|
||||
category="Blog post"
|
||||
:author="frontmatter.author"
|
||||
:date="frontmatter.date"
|
||||
:tags="frontmatter.tags"
|
||||
|
||||
@@ -67,8 +67,8 @@ import Breadcrumbs from '@theme/components/Breadcrumbs'
|
||||
import { getTags } from '@theme/util/tagUtils'
|
||||
import { parseProtectedPost, checkItem } from '@theme/util/blogUtils'
|
||||
|
||||
const protectedCardTypes = ['newslink']
|
||||
const defaultCategory = 'Blog posts'
|
||||
const protectedCardTypes = ['News coverage', 'Release notes']
|
||||
const defaultCategory = 'Blog post'
|
||||
|
||||
export default {
|
||||
name: 'BlogIndex',
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
---
|
||||
title: News Coverage
|
||||
type: News coverage
|
||||
data:
|
||||
- name: 'Juan Benet: From Idea to Action (CoinDesk)'
|
||||
title: 'Juan Benet: From Idea to Action (CoinDesk)'
|
||||
path: https://www.coindesk.com/juan-benet-most-influential-2020
|
||||
date: 2020-12-09T00:00:00.000+00:00
|
||||
tags:
|
||||
- interview
|
||||
- name: IPFS is paving the way for a new digital economy (Modern Consensus)
|
||||
title: IPFS is paving the way for a new digital economy (Modern Consensus)
|
||||
path: https://modernconsensus.com/commentary/opinion/ipfs-is-paving-the-way-for-a-new-digital-economy/
|
||||
date: 2020-10-08T06:00:00.000+00:00
|
||||
tags: weekly
|
||||
- name:
|
||||
The Decentralized Web Could Help Preserve The Internet’s Data For 1,000 Years.
|
||||
Here’s Why We Need IPFS To Build It (TechDirt)
|
||||
title:
|
||||
The Decentralized Web Could Help Preserve The Internet’s Data For 1,000 Years.
|
||||
Here’s Why We Need IPFS To Build It (TechDirt)
|
||||
path: https://www.techdirt.com/articles/20200504/16050844431/decentralized-web-could-help-preserve-internets-data-1000-years-heres-why-we-need-ipfs-to-build-it.shtml#comments
|
||||
date: 2020-05-05T06:00:00.000+00:00
|
||||
tags:
|
||||
- link
|
||||
- name: Latest Version of Open Source IPFS Improves Performance (DevOps.com)
|
||||
title: Latest Version of Open Source IPFS Improves Performance (DevOps.com)
|
||||
path: https://devops.com/latest-version-of-open-source-ipfs-improves-performance/
|
||||
date: 2020-04-30T06:00:00.000+00:00
|
||||
tags:
|
||||
- link
|
||||
- name: Decentralized Web Protocol IPFS Has Its Biggest Update So Far (Cointelegraph)
|
||||
title: Decentralized Web Protocol IPFS Has Its Biggest Update So Far (Cointelegraph)
|
||||
path: https://cointelegraph.com/news/decentralized-web-protocol-ipfs-has-its-biggest-update-so-far
|
||||
date: 2020-04-28T06:00:00.000+00:00
|
||||
tags: ''
|
||||
- name: InterPlanetary File System Is Uncensorable During Coronavirus News Fog (Coindesk)
|
||||
title: InterPlanetary File System Is Uncensorable During Coronavirus News Fog (Coindesk)
|
||||
path: https://www.coindesk.com/interplanetary-file-system-is-uncensorable-during-coronavirus-news-fog
|
||||
date: 2020-03-18T06:00:00.000+00:00
|
||||
tags: ''
|
||||
- name: IPFS Emerges as Tool to Distribute Container Images (Container Journal)
|
||||
title: IPFS Emerges as Tool to Distribute Container Images (Container Journal)
|
||||
path: https://containerjournal.com/topics/container-management/ipfs-emerges-as-tool-to-distribute-container-images/
|
||||
date: 2020-03-02T07:00:00.000+00:00
|
||||
tags: ''
|
||||
- name: JavaScript apps going InterPlanetary (Alessandro Segala)
|
||||
title: JavaScript apps going InterPlanetary (Alessandro Segala)
|
||||
path: https://medium.com/@italypaleale/watch-javascript-apps-going-inter-planetary-e33dba615a48
|
||||
date: 2020-01-20T07:00:00.000+00:00
|
||||
tags: ''
|
||||
---
|
||||
@@ -1,51 +0,0 @@
|
||||
---
|
||||
title: Newslinks
|
||||
type: newslink
|
||||
data:
|
||||
- name: 'Juan Benet: From Idea to Action (CoinDesk)'
|
||||
title: 'Juan Benet: From Idea to Action (CoinDesk)'
|
||||
path: https://www.coindesk.com/juan-benet-most-influential-2020
|
||||
date: 2020-12-09T00:00:00.000+00:00
|
||||
tags:
|
||||
- interview
|
||||
- name: IPFS is paving the way for a new digital economy (Modern Consensus)
|
||||
title: IPFS is paving the way for a new digital economy (Modern Consensus)
|
||||
path: https://modernconsensus.com/commentary/opinion/ipfs-is-paving-the-way-for-a-new-digital-economy/
|
||||
date: 2020-10-08T06:00:00.000+00:00
|
||||
tags: weekly
|
||||
- name: The Decentralized Web Could Help Preserve The Internet’s Data For 1,000 Years.
|
||||
Here’s Why We Need IPFS To Build It (TechDirt)
|
||||
title: The Decentralized Web Could Help Preserve The Internet’s Data For 1,000 Years.
|
||||
Here’s Why We Need IPFS To Build It (TechDirt)
|
||||
path: https://www.techdirt.com/articles/20200504/16050844431/decentralized-web-could-help-preserve-internets-data-1000-years-heres-why-we-need-ipfs-to-build-it.shtml#comments
|
||||
date: 2020-05-05T06:00:00.000+00:00
|
||||
tags:
|
||||
- link
|
||||
- name: Latest Version of Open Source IPFS Improves Performance (DevOps.com)
|
||||
title: Latest Version of Open Source IPFS Improves Performance (DevOps.com)
|
||||
path: https://devops.com/latest-version-of-open-source-ipfs-improves-performance/
|
||||
date: 2020-04-30T06:00:00.000+00:00
|
||||
tags:
|
||||
- link
|
||||
- name: Decentralized Web Protocol IPFS Has Its Biggest Update So Far (Cointelegraph)
|
||||
title: Decentralized Web Protocol IPFS Has Its Biggest Update So Far (Cointelegraph)
|
||||
path: https://cointelegraph.com/news/decentralized-web-protocol-ipfs-has-its-biggest-update-so-far
|
||||
date: 2020-04-28T06:00:00.000+00:00
|
||||
tags: ''
|
||||
- name: InterPlanetary File System Is Uncensorable During Coronavirus News Fog (Coindesk)
|
||||
title: InterPlanetary File System Is Uncensorable During Coronavirus News Fog (Coindesk)
|
||||
path: https://www.coindesk.com/interplanetary-file-system-is-uncensorable-during-coronavirus-news-fog
|
||||
date: 2020-03-18T06:00:00.000+00:00
|
||||
tags: ''
|
||||
- name: IPFS Emerges as Tool to Distribute Container Images (Container Journal)
|
||||
title: IPFS Emerges as Tool to Distribute Container Images (Container Journal)
|
||||
path: https://containerjournal.com/topics/container-management/ipfs-emerges-as-tool-to-distribute-container-images/
|
||||
date: 2020-03-02T07:00:00.000+00:00
|
||||
tags: ''
|
||||
- name: JavaScript apps going InterPlanetary (Alessandro Segala)
|
||||
title: JavaScript apps going InterPlanetary (Alessandro Segala)
|
||||
path: https://medium.com/@italypaleale/watch-javascript-apps-going-inter-planetary-e33dba615a48
|
||||
date: 2020-01-20T07:00:00.000+00:00
|
||||
tags: ''
|
||||
|
||||
---
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Release Notes
|
||||
type: Release notes
|
||||
data:
|
||||
- name: 'IPFS Desktop 0.13.2'
|
||||
title: 'IPFS Desktop 0.13.2'
|
||||
path: https://github.com/ipfs-shipyard/ipfs-desktop/releases/tag/v0.13.2
|
||||
date: 2020-09-12T00:00:00.000+00:00
|
||||
tags:
|
||||
- IPFS Desktop
|
||||
---
|
||||
Reference in New Issue
Block a user