Make blog post index listing

This commit is contained in:
2019-11-10 21:37:50 +01:00
parent 839e169f3a
commit 27b93c6e02
13 changed files with 611 additions and 505 deletions

View File

@ -3,32 +3,36 @@ backend:
repo: michalvankodev/michalvankodev
branch: master # Branch to update (optional; defaults to master)
media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
media_folder: 'static/images/uploads' # Media files will be stored in the repo under images/uploads
public_folder: '/images/uploads' # The src attribute for uploaded media will begin with /images/uploads
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
folder: "_posts/blog" # The path to the folder where the documents are stored
- name: 'blog' # Used in routes, e.g., /admin/collections/blog
label: 'Blog' # Used in the UI
folder: '_posts/blog' # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- { label: "Layout", name: "layout", widget: "hidden", default: "blog" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Featured Image", name: "thumbnail", widget: "image" }
- { label: "Rating (scale of 1-5)", name: "rating", widget: "number" }
- { label: "Body", name: "body", widget: "markdown" }
- name: "pages"
label: "Pages"
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'blog' }
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' }
- { label: 'Tags', name: 'tags', widget: 'list', default: ['News'] }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: 'pages'
label: 'Pages'
files:
- label: "Portfolio"
name: "portfolio"
file: "_pages/portfolio.md"
- label: 'Portfolio'
name: 'portfolio'
file: '_pages/portfolio.md'
fields:
- { label: Title, name: title, widget: string }
- { label: Body, name: body, widget: markdown }
- { label: Work history prelude, name: work_history_prelude, widget: markdown }
- {
label: Work history prelude,
name: work_history_prelude,
widget: markdown,
}
- label: Work history
name: work_history
widget: list
@ -40,19 +44,38 @@ collections:
widget: list
fields:
- { label: Project name, name: name, widget: string }
- { label: Displayed, name: displayed, widget: boolean, default: true }
- {
label: Displayed,
name: displayed,
widget: boolean,
default: true,
}
- { label: Description, name: description, widget: markdown }
- label: Image
name: image
widget: object
fields:
- { label: Source, name: source, widget: image, required: false }
- { label: Image description, name: image_description, widget: string, required: false }
fields:
- {
label: Source,
name: source,
widget: image,
required: false,
}
- {
label: Image description,
name: image_description,
widget: string,
required: false,
}
- label: Education
name: education
widget: list
fields:
- { label: Institution, name: name, widget: string }
- { label: Displayed, name: displayed, widget: boolean, default: true }
- {
label: Displayed,
name: displayed,
widget: boolean,
default: true,
}
- { label: Description, name: description, widget: markdown }

View File

@ -74,7 +74,7 @@ p {
}
::selection {
background: #25b5c5;
background: #0dd0d0;
}
@media only screen and (min-width: 400px) {