mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-10 10:52:45 +02:00
Add remaining content types
This commit is contained in:
+27
-2
@@ -5,8 +5,8 @@ admin_path:
|
||||
webhook_url:
|
||||
sections:
|
||||
- type: directory
|
||||
path: src/_blog/newscoverage
|
||||
label: News Coverage
|
||||
path: src/_blog/academicpapers
|
||||
label: Academic Papers
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
@@ -14,6 +14,31 @@ sections:
|
||||
label: Blog Posts
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
path: src/_blog/events
|
||||
label: Events
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
path: src/_blog/newscoverage
|
||||
label: News Coverage
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
path: src/_blog/releasenotes
|
||||
label: Release Notes
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
path: src/_blog/tutorials
|
||||
label: Tutorials
|
||||
create: all
|
||||
match: "**/*"
|
||||
- type: directory
|
||||
path: src/_blog/videos
|
||||
label: Videos
|
||||
create: all
|
||||
match: "**/*"
|
||||
upload_dir: src/.vuepress/public
|
||||
public_path: ''
|
||||
front_matter_path: ''
|
||||
|
||||
@@ -27,8 +27,12 @@ export default {
|
||||
}
|
||||
|
||||
switch (this.card.type) {
|
||||
case 'Academic paper':
|
||||
case 'Event':
|
||||
case 'News coverage':
|
||||
case 'Release notes':
|
||||
case 'Tutorial':
|
||||
case 'Video':
|
||||
return LinkCard
|
||||
|
||||
default:
|
||||
|
||||
@@ -67,7 +67,14 @@ import Breadcrumbs from '@theme/components/Breadcrumbs'
|
||||
import { getTags } from '@theme/util/tagUtils'
|
||||
import { parseProtectedPost, checkItem } from '@theme/util/blogUtils'
|
||||
|
||||
const protectedCardTypes = ['News coverage', 'Release notes']
|
||||
const protectedCardTypes = [
|
||||
'Academic paper',
|
||||
'Event',
|
||||
'News coverage',
|
||||
'Release notes',
|
||||
'Tutorial',
|
||||
'Video',
|
||||
]
|
||||
const defaultCategory = 'Blog post'
|
||||
|
||||
export default {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Academic Papers
|
||||
type: Academic paper
|
||||
data:
|
||||
- name: 'Sample Paper'
|
||||
title: 'Sample Paper'
|
||||
path: https://github.com/ipfs-shipyard/ipfs-desktop/releases/tag/v0.13.2
|
||||
date: 2020-09-12T00:00:00.000+00:00
|
||||
tags:
|
||||
- journal
|
||||
---
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Events
|
||||
type: Event
|
||||
data:
|
||||
- name: 'Sample Event'
|
||||
title: 'Sample Event'
|
||||
path: https://github.com/ipfs-shipyard/ipfs-desktop/releases/tag/v0.13.2
|
||||
date: 2020-09-12T00:00:00.000+00:00
|
||||
tags:
|
||||
- meetup
|
||||
---
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Tutorials
|
||||
type: Tutorial
|
||||
data:
|
||||
- name: 'Sample Tutorial'
|
||||
title: 'Sample Tutorial'
|
||||
path: https://github.com/ipfs-shipyard/ipfs-desktop/releases/tag/v0.13.2
|
||||
date: 2020-09-12T00:00:00.000+00:00
|
||||
tags:
|
||||
- ProtoSchool
|
||||
---
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Videos
|
||||
type: Video
|
||||
data:
|
||||
- name: 'Sample Video'
|
||||
title: 'Sample Video'
|
||||
path: https://github.com/ipfs-shipyard/ipfs-desktop/releases/tag/v0.13.2
|
||||
date: 2020-09-12T00:00:00.000+00:00
|
||||
tags:
|
||||
- demo
|
||||
---
|
||||
Reference in New Issue
Block a user