Add remaining content types

This commit is contained in:
Jessica Schilling
2021-01-11 15:17:26 -07:00
parent 00f629942d
commit edfd38e942
7 changed files with 83 additions and 3 deletions
+27 -2
View File
@@ -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:
+8 -1
View File
@@ -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 {
+11
View File
@@ -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
---
+11
View File
@@ -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
---
+11
View File
@@ -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
---
+11
View File
@@ -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
---