Skip to content

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz committed Jun 14, 2022
1 parent c11b7f9 commit 3c657b8
Show file tree
Hide file tree
Showing 383 changed files with 21,268 additions and 5,859 deletions.
24 changes: 3 additions & 21 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,13 @@ module.exports = {
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-prismjs-copy-button', 'gatsby-remark-prismjs'],
plugins: ['gatsby-remark-prismjs'],
},
},
{
resolve: 'gatsby-remark-code-buttons',
options: {
// Optional button container class name. Defaults
// to 'gatsby-code-button-container'.
buttonContainerClass: `customButtonContainerClass`,
// Optional button class name. Defaults to 'gatsby-code-button'.
buttonClass: `customButtonClass`,
// Optional button text. Defaults to ''.
buttonText: `customButtonText`,
// Optional svg icon class name. Defaults to 'gatsby-code-button-icon'.
svgIconClass: `customSvgIconClass`,
// Optional svg icon. Defaults to svg string and can be
// replaced with any other valid svg. Use custom classes
// in the svg string and skip `iconClass` option.
svgIcon: `customSvgIcon`,
// Optional tooltip text. Defaults to ''.
tooltipText: `customTooltipText`,
// Optional toaster class name. Defaults to ''.
toasterClass: `customToasterClass`,
// Optional toaster text class name. Defaults to ''.
toasterTextClass: `customToasterTextClass`,

// Optional toaster text. Defaults to ''.
toasterText: 'customToasterText',
// Optional toaster duration. Defaults to 3500.
Expand Down Expand Up @@ -75,4 +57,4 @@ module.exports = {
}
},
]
};
};
21,008 changes: 20,496 additions & 512 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/404.html

This file was deleted.

1 change: 0 additions & 1 deletion public/404/index.html

This file was deleted.

134 changes: 128 additions & 6 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# It's here used only for blog posts and docs pages, to ease edits from external contributors
# for all options, see https://www.netlifycms.org/docs/configuration-options/

site_url: https://bgoonz-blog.netlify.app/

publish_mode: editorial_workflow # do not commit directly, fork to a branch first and create a pull request, this is necessary for the open_authoring option

backend:
Expand All @@ -15,10 +17,9 @@ public_folder: /images/uploads # url to media files when deployed

show_preview_links: true # see https://www.netlifycms.org/docs/deploy-preview-links/

# site_url: https://your-site.com # edit and uncomment this line to enable previews
# display_url: https://your-site.com
# logo_url: https://your-site.com/images/logo.svg # custom logo
# locale: 'en' # UI language
display_url: https://bgoonz-blog.netlify.app/
logo_url: https://bgoonz-blog.netlify.app//images/main-logo.png
locale: 'en' # UI language

collections:
- name: docs
Expand All @@ -27,7 +28,7 @@ collections:
create: true
#path: '/' # allows to walk inside folders, see https://www.netlifycms.org/docs/beta-features/#folder-collections-path and https://github.com/netlify/netlify-cms/issues/513 and nested collections which allow for recursive subfolders walking without requiring a specific path template: https://www.netlifycms.org/docs/beta-features/#nested-collections
slug: '{{title}}/index'
preview_path: '{{slug}}'
preview_path: 'src/pages/docs/preview/{{slug}}'
#extension: md
media_folder: '{{media_folder}}/docs'
# adding a nested object will show the collection folder structure, see https://www.netlifycms.org/docs/beta-features/#nested-collections and https://github.com/netlify/netlify-cms/issues/4741#issuecomment-748627801
Expand Down Expand Up @@ -58,4 +59,125 @@ collections:
- { name: template, label: Template, widget: hidden, default: 'post' }
- { name: subtitle, label: Subtitle, widget: string, required: false }
- { name: excerpt, label: Excerpt, widget: string, required: false }

- { name: date, label: Date, widget: date }
- {
name: image,
label: 'Cover Image',
widget: image,
allow_multiple: false,
required: false,
hint: 'Cover image that will display at the top of the post.'
}
- {
name: thumb_image,
label: 'Thumbnail image',
widget: image,
allow_multiple: false,
required: false,
hint: 'Thumbnail image for the post in listings, should be the same as the cover image.'
} # can't copy another field (eg, image) yet: https://community.netlify.com/t/is-it-possible-to-set-a-dynamic-default-value-for-a-field/20079/3
- { name: image_position, label: 'Image position', widget: select, options: ['left', 'top', 'right'], default: 'right' }
- {
name: author,
label: Author,
widget: relation,
collection: blog-authors,
value_field: '{{dirname}}/{{filename}}.{{extension}}',
search_fields: ['id', 'first_name', 'last_name'],
display_fields: ['first_name', 'last_name'],
multiple: false,
required: false
}
- {
name: categories,
label: Categories,
widget: relation,
collection: blog-categories,
value_field: '{{dirname}}/{{filename}}.{{extension}}',
search_fields: ['id', 'title'],
display_fields: ['title'],
multiple: true,
required: false
}
- {
name: tags,
label: Tags,
widget: relation,
collection: blog-tags,
value_field: '{{dirname}}/{{filename}}.{{extension}}',
search_fields: ['id', 'title'],
display_fields: ['title'],
multiple: true,
required: false
}
- {
name: show_author_bio,
label: "Show author's short bio?",
widget: boolean,
required: false,
default: false,
hint: "Display author's short bio at the end of the blog post"
}
- {
name: related_posts,
label: 'Related posts',
widget: relation,
collection: blog,
valueField: '{{dirname}}/{{filename}}.{{extension}}',
searchFields: ['title'],
displayFields: ['title'],
multiple: true,
required: false,
hint: 'Other related posts'
}
- { name: cmseditable, label: cmseditable, widget: hidden, default: true }
- { name: body, label: Body, widget: markdown }
- name: blog-authors
label: BlogAuthors
folder: src/data/authors
create: true
slug: '{{id}}'
extension: yaml
media_folder: '{{media_folder}}/blog'
summary: '{{first_name}} {{last_name}} ({{id}})'
fields:
- { name: id, label: Identifier, widget: string }
- { name: first_name, label: 'First name', widget: string }
- { name: last_name, label: 'Last name', widget: string, required: false }
- { name: photo, label: Photo, widget: image, required: false }
- { name: short_bio, label: Short bio, widget: markdown, required: false }
- name: blog-categories
label: BlogCategories
folder: src/data/categories
create: true
slug: '{{id}}'
extension: yaml
media_folder: '{{media_folder}}/blog'
fields:
- { name: id, label: Identifier, widget: string }
- { name: title, label: Title, widget: string }
- {
name: description,
label: Description,
widget: markdown,
required: false,
hint: 'Short description, will be shown in page listing (ie, listing all posts from this category)'
}
#- { name: link, label: Listing page URL, widget: string, default: "blog/category/<newcatid>", pattern: ["blog/category/.+", "URL needs to start with `blog/category/`"], hint: "This is the URL of the page that will list all pages for this category." } # disable to leave empty, there will be no link and no issue but no listing
- name: blog-tags
label: BlogTags
folder: src/data/tags
create: true
slug: '{{id}}'
extension: yaml
media_folder: '{{media_folder}}/blog'
fields:
- { name: id, label: Identifier, widget: string }
- { name: title, label: Title, widget: string }
- {
name: description,
label: Description,
widget: markdown,
required: false,
hint: 'Short description, will be shown in page listing (ie, listing all posts with this tag)'
}
17 changes: 0 additions & 17 deletions public/admin/index.html

This file was deleted.

17 changes: 0 additions & 17 deletions public/assets/css/brands.min.css

This file was deleted.

Loading

1 comment on commit 3c657b8

@vercel
Copy link

@vercel vercel bot commented on 3c657b8 Jun 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 7 hours (more than 100, code: "api-deployments-free-per-day").

Please sign in to comment.