demo: update modules
replace static/admin/ with module
This commit is contained in:
@@ -46,15 +46,8 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
|
|||||||
publication_types = "/publication-type/:slug/"
|
publication_types = "/publication-type/:slug/"
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
|
home = ["HTML", "RSS", "JSON", "WebAppManifest", "headers"]
|
||||||
section = [ "HTML", "RSS" ]
|
section = ["HTML", "RSS"]
|
||||||
|
|
||||||
[mediaTypes."application/manifest+json"]
|
|
||||||
suffixes = ["webmanifest"]
|
|
||||||
|
|
||||||
[outputFormats.WebAppManifest]
|
|
||||||
mediaType = "application/manifest+json"
|
|
||||||
rel = "manifest"
|
|
||||||
|
|
||||||
# Configure the Markdown renderer.
|
# Configure the Markdown renderer.
|
||||||
[markup]
|
[markup]
|
||||||
@@ -102,11 +95,9 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "
|
|||||||
name = "categories"
|
name = "categories"
|
||||||
weight = 70.0
|
weight = 70.0
|
||||||
|
|
||||||
[[related.indices]]
|
|
||||||
name = "authors"
|
|
||||||
weight = 20.0
|
|
||||||
|
|
||||||
# Install Wowchemy
|
# Install Wowchemy
|
||||||
[module]
|
[module]
|
||||||
|
[[module.imports]]
|
||||||
|
path = "github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic"
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy"
|
path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy"
|
||||||
|
|||||||
@@ -2,4 +2,7 @@ module github.com/wowchemy/starter-academic/exampleSite
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201230224646-25e0b0627f09 // indirect
|
require (
|
||||||
|
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20210123180413-7dbc1f73edfd // indirect
|
||||||
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210123180413-7dbc1f73edfd // indirect
|
||||||
|
)
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201230224646-25e0b0627f09 h1:5Dxk6ndnHNdqqYqVYyLPhUr/crpvj+j1ZEVPeSEqrDw=
|
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20210123180413-7dbc1f73edfd h1:gxYgs31Q7LuGHdD3fe1CIbKzZvZgHlus6ngkl9tYYbU=
|
||||||
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201230224646-25e0b0627f09/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
|
github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20210123180413-7dbc1f73edfd/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY=
|
||||||
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210123180413-7dbc1f73edfd h1:dMMvFBC6oOVTVt28kM8VlnNcKUGnMwtdGbLd0MdPywY=
|
||||||
|
github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210123180413-7dbc1f73edfd/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8=
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
publish = "public"
|
publish = "public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.79.1"
|
HUGO_VERSION = "0.80.0"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
@@ -14,13 +14,3 @@
|
|||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[[headers]]
|
|
||||||
for = "*.webmanifest"
|
|
||||||
[headers.values]
|
|
||||||
Content-Type = "application/manifest+json; charset=UTF-8"
|
|
||||||
|
|
||||||
[[headers]]
|
|
||||||
for = "index.xml"
|
|
||||||
[headers.values]
|
|
||||||
Content-Type = "application/rss+xml"
|
|
||||||
|
|||||||
@@ -1,303 +0,0 @@
|
|||||||
backend:
|
|
||||||
name: git-gateway
|
|
||||||
branch: master
|
|
||||||
media_folder: 'static/media/'
|
|
||||||
public_folder: 'media'
|
|
||||||
collections:
|
|
||||||
- name: authors
|
|
||||||
label: Authors
|
|
||||||
label_singular: Author
|
|
||||||
folder: 'content/authors'
|
|
||||||
path: '{{slug}}/_index'
|
|
||||||
create: true # Allow users to create new documents in this collection
|
|
||||||
fields: # The fields each document in this collection have
|
|
||||||
- {label: "Display name (such as your full name)", name: "title", widget: "string"}
|
|
||||||
- {label: "Position or tagline (such as Professor of AI)", name: "role", widget: "string", required: false}
|
|
||||||
- label: "Avatar (upload an image named `avatar.jpg/png`)"
|
|
||||||
name: "avatar_filename"
|
|
||||||
widget: "image"
|
|
||||||
default: "avatar"
|
|
||||||
required: false
|
|
||||||
media_library:
|
|
||||||
config:
|
|
||||||
multiple: false
|
|
||||||
- {label: "Short biography (shown in author boxes)", name: "bio", widget: "string", required: false}
|
|
||||||
- {label: "Full biography (shown in About widget)", name: "body", widget: "markdown", required: false}
|
|
||||||
- label: "Interests (shown in About widget)"
|
|
||||||
name: "interests"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: Social links
|
|
||||||
name: social
|
|
||||||
required: false
|
|
||||||
widget: list
|
|
||||||
fields:
|
|
||||||
- {label: Link, name: link, widget: string}
|
|
||||||
- label: Icon pack
|
|
||||||
name: icon_pack
|
|
||||||
widget: select
|
|
||||||
multiple: false
|
|
||||||
options:
|
|
||||||
- {label: "None", value: ""}
|
|
||||||
- {label: "Solid", value: "fas"}
|
|
||||||
- {label: "Regular", value: "far"}
|
|
||||||
- {label: "Brand", value: "fab"}
|
|
||||||
- {label: "Academic", value: "ai"}
|
|
||||||
- {label: Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons), name: icon, widget: string}
|
|
||||||
- label: "Organizations you belong to or are affiliated with (shown in About widget)"
|
|
||||||
name: "organizations"
|
|
||||||
required: false
|
|
||||||
widget: list
|
|
||||||
fields:
|
|
||||||
- {label: Organization, name: name, widget: string, required: true}
|
|
||||||
- {label: Link, name: url, widget: string, required: false}
|
|
||||||
- label: "Education"
|
|
||||||
name: "education"
|
|
||||||
required: false
|
|
||||||
widget: object
|
|
||||||
fields:
|
|
||||||
- label: "Courses"
|
|
||||||
name: "courses"
|
|
||||||
required: false
|
|
||||||
widget: list
|
|
||||||
fields:
|
|
||||||
- {label: Course, name: course, widget: string, required: true}
|
|
||||||
- {label: Institution, name: institution, widget: string, required: true}
|
|
||||||
- {label: Year, name: year, widget: number, valueType: int, required: false}
|
|
||||||
- {label: "Email (to use a Gravatar.com avatar)", name: "email", widget: "string", required: false}
|
|
||||||
- label: "Super user (is this the primary site user?)"
|
|
||||||
name: "superuser"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "User groups (only for organization websites)"
|
|
||||||
name: "user_groups"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- name: posts
|
|
||||||
label: Posts
|
|
||||||
label_singular: Post
|
|
||||||
folder: 'content/post'
|
|
||||||
path: '{{slug}}/index'
|
|
||||||
create: true # Allow users to create new documents in this collection
|
|
||||||
fields: # The fields each document in this collection have
|
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
|
||||||
- {label: "Subtitle", name: "subtitle", widget: "string", required: false}
|
|
||||||
- {label: "Body", name: "body", widget: "markdown"}
|
|
||||||
- {label: "Publish this page on", name: "date", widget: "datetime"}
|
|
||||||
- {label: "Summary", name: "summary", widget: "markdown", required: false}
|
|
||||||
- label: "Draft"
|
|
||||||
name: "draft"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "Featured"
|
|
||||||
name: "featured"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "Authors"
|
|
||||||
name: "authors"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Tags"
|
|
||||||
name: "tags"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Categories"
|
|
||||||
name: "categories"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Projects"
|
|
||||||
name: "projects"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Featured Image"
|
|
||||||
name: "image"
|
|
||||||
required: false
|
|
||||||
widget: object
|
|
||||||
fields:
|
|
||||||
- label: "Upload an image named `featured.jpg/png`"
|
|
||||||
name: "filename"
|
|
||||||
widget: "image"
|
|
||||||
default: "featured"
|
|
||||||
media_library:
|
|
||||||
config:
|
|
||||||
multiple: false
|
|
||||||
- {label: Caption, name: caption, widget: string, required: false}
|
|
||||||
- {label: Description for screen readers, name: alt_text, widget: string, required: false}
|
|
||||||
- {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
|
|
||||||
- {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
|
|
||||||
- name: projects
|
|
||||||
label: Projects
|
|
||||||
label_singular: Project
|
|
||||||
folder: 'content/project'
|
|
||||||
path: '{{slug}}/index'
|
|
||||||
create: true # Allow users to create new documents in this collection
|
|
||||||
fields: # The fields each document in this collection have
|
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
|
||||||
- {label: "Subtitle", name: "subtitle", widget: "string", required: false}
|
|
||||||
- {label: "Body", name: "body", widget: "markdown", required: false}
|
|
||||||
- {label: "Publish this page on", name: "date", widget: "datetime"}
|
|
||||||
- {label: "Summary", name: "summary", widget: "markdown", required: false}
|
|
||||||
- label: "Draft"
|
|
||||||
name: "draft"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "Featured"
|
|
||||||
name: "featured"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "Authors"
|
|
||||||
name: "authors"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Tags"
|
|
||||||
name: "tags"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Categories"
|
|
||||||
name: "categories"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- {label: "External link (optional - replaces link to project page)", name: "external_link", widget: "string"}
|
|
||||||
- label: Links
|
|
||||||
name: links
|
|
||||||
required: false
|
|
||||||
widget: list
|
|
||||||
fields:
|
|
||||||
- {label: Link, name: url, widget: string}
|
|
||||||
- {label: Link text, name: name, widget: string, required: false}
|
|
||||||
- label: Icon pack
|
|
||||||
name: icon_pack
|
|
||||||
widget: select
|
|
||||||
multiple: false
|
|
||||||
required: false
|
|
||||||
options:
|
|
||||||
- {label: "None", value: ""}
|
|
||||||
- {label: "Solid", value: "fas"}
|
|
||||||
- {label: "Regular", value: "far"}
|
|
||||||
- {label: "Brand", value: "fab"}
|
|
||||||
- {label: "Academic", value: "ai"}
|
|
||||||
- {label: "Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons)", name: icon, widget: string, required: false}
|
|
||||||
- label: "Featured Image"
|
|
||||||
name: "image"
|
|
||||||
required: false
|
|
||||||
widget: object
|
|
||||||
fields:
|
|
||||||
- label: "Upload an image named `featured.jpg/png`"
|
|
||||||
name: "filename"
|
|
||||||
widget: "image"
|
|
||||||
default: "featured"
|
|
||||||
media_library:
|
|
||||||
config:
|
|
||||||
multiple: false
|
|
||||||
- {label: Caption, name: caption, widget: string, required: false}
|
|
||||||
- {label: Description for screen readers, name: alt_text, widget: string, required: false}
|
|
||||||
- {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
|
|
||||||
- {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
|
|
||||||
- name: talks
|
|
||||||
label: Talks
|
|
||||||
label_singular: Talk
|
|
||||||
folder: 'content/talk'
|
|
||||||
path: '{{slug}}/index'
|
|
||||||
create: true # Allow users to create new documents in this collection
|
|
||||||
fields: # The fields each document in this collection have
|
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
|
||||||
- {label: "Abstract", name: "abstract", widget: "text"}
|
|
||||||
- {label: "Where", name: "location", widget: "text"}
|
|
||||||
- {label: "From", name: "date", widget: "datetime"}
|
|
||||||
- {label: "To", name: "date_end", widget: "datetime", default: ""}
|
|
||||||
- {label: "All day event?", name: "all_day", widget: "boolean", default: false}
|
|
||||||
- label: Links/Tickets
|
|
||||||
name: links
|
|
||||||
required: false
|
|
||||||
widget: list
|
|
||||||
fields:
|
|
||||||
- {label: Link, name: url, widget: string}
|
|
||||||
- {label: Link text, name: name, widget: string, required: false}
|
|
||||||
- label: Icon pack
|
|
||||||
name: icon_pack
|
|
||||||
widget: select
|
|
||||||
multiple: false
|
|
||||||
required: false
|
|
||||||
options:
|
|
||||||
- {label: "None", value: ""}
|
|
||||||
- {label: "Solid", value: "fas"}
|
|
||||||
- {label: "Regular", value: "far"}
|
|
||||||
- {label: "Brand", value: "fab"}
|
|
||||||
- {label: "Academic", value: "ai"}
|
|
||||||
- {label: "Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons)", name: icon, widget: string, required: false}
|
|
||||||
- {label: "Event", name: "event", widget: "string"}
|
|
||||||
- {label: "Event link", name: "event_url", widget: "string"}
|
|
||||||
- {label: "Publish this page on", name: "publishDate", widget: "datetime"}
|
|
||||||
- {label: "Markdown slides (reference a deck in 'content/slides/')", name: "slides", widget: "string", required: false}
|
|
||||||
- label: "Draft"
|
|
||||||
name: "draft"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "Featured"
|
|
||||||
name: "featured"
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- label: "Authors"
|
|
||||||
name: "authors"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Tags"
|
|
||||||
name: "tags"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Categories"
|
|
||||||
name: "categories"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Projects (reference projects in 'content/project/')"
|
|
||||||
name: "projects"
|
|
||||||
required: false
|
|
||||||
widget: "list"
|
|
||||||
- label: "Featured Image"
|
|
||||||
name: "image"
|
|
||||||
required: false
|
|
||||||
widget: object
|
|
||||||
fields:
|
|
||||||
- label: "Upload an image named `featured.jpg/png`"
|
|
||||||
name: "filename"
|
|
||||||
widget: "image"
|
|
||||||
default: "featured"
|
|
||||||
media_library:
|
|
||||||
config:
|
|
||||||
multiple: false
|
|
||||||
- {label: Caption, name: caption, widget: string, required: false}
|
|
||||||
- {label: Description for screen readers, name: alt_text, widget: string, required: false}
|
|
||||||
- {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"}
|
|
||||||
- {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false}
|
|
||||||
- {label: "Details", name: "body", widget: "markdown", required: false}
|
|
||||||
- name: pages
|
|
||||||
label: "Pages"
|
|
||||||
files:
|
|
||||||
- file: "content/privacy.md"
|
|
||||||
label: "Privacy Policy"
|
|
||||||
name: "privacy"
|
|
||||||
fields:
|
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
|
||||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
|
||||||
- {label: "Subtitle", name: "subtitle", widget: "string", required: false}
|
|
||||||
- {label: "Summary", name: "summary", widget: "markdown", required: false}
|
|
||||||
- label: "Draft"
|
|
||||||
name: "draft"
|
|
||||||
required: false
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- {label: "Body", name: "body", widget: "markdown"}
|
|
||||||
- file: "content/terms.md"
|
|
||||||
label: "Terms"
|
|
||||||
name: "terms"
|
|
||||||
fields:
|
|
||||||
- {label: "Title", name: "title", widget: "string"}
|
|
||||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
|
||||||
- {label: "Subtitle", name: "subtitle", widget: "string", required: false}
|
|
||||||
- {label: "Summary", name: "summary", widget: "markdown", required: false}
|
|
||||||
- label: "Draft"
|
|
||||||
name: "draft"
|
|
||||||
required: false
|
|
||||||
widget: "boolean"
|
|
||||||
default: false
|
|
||||||
- {label: "Body", name: "body", widget: "markdown"}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en-us">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Content Manager | Academic</title>
|
|
||||||
<!-- Include Netlify Identity for authentication. -->
|
|
||||||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Include the latest Netlify CMS v2.x.x script that builds the admin panel. -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/netlify-cms@2/dist/netlify-cms.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user