theme: upgrade to latest v4.9-dev - get singular taxonomy URLs
This commit is contained in:
parent
0a539c1b89
commit
47c949aa3c
6 changed files with 15 additions and 4 deletions
|
@ -37,6 +37,13 @@ enableEmoji = true
|
|||
footnotereturnlinkcontents = "<sup>^</sup>"
|
||||
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
|
||||
|
||||
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
|
||||
[permalinks]
|
||||
authors = "/author/:slug/"
|
||||
tags = "/tag/:slug/"
|
||||
categories = "/category/:slug/"
|
||||
publication_types = "/publication-type/:slug/"
|
||||
|
||||
[outputs]
|
||||
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
|
||||
section = [ "HTML", "RSS" ]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# Display name
|
||||
name: Nelson Bighetti
|
||||
title: Nelson Bighetti
|
||||
|
||||
# Username (this should match the folder name)
|
||||
authors:
|
||||
|
|
|
@ -12,6 +12,9 @@ cd scripts/
|
|||
# Install demo config
|
||||
rsync -av ../themes/academic/exampleSite/config/ ../config/
|
||||
|
||||
# Install Netlify CMS
|
||||
rsync -av ../themes/academic/exampleSite/static/admin/ ../static/admin/
|
||||
|
||||
# Install demo user
|
||||
rsync -av ../themes/academic/exampleSite/content/authors/ ../content/authors/
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ collections:
|
|||
label: Talks
|
||||
label_singular: Talk
|
||||
folder: 'content/talk'
|
||||
path: '{{year}}/{{slug}}/index' # Store talks in year-based subfolders, e.g. `talk/2020/my-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"}
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
<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 script that builds the page and powers Netlify CMS -->
|
||||
<!-- 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>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 42d0e5f8cd130e52e2dfa496c199229a9f12d8cb
|
||||
Subproject commit dc0d310af1fadcc021c7c825f9ed7cd6288e3730
|
Loading…
Reference in a new issue