Skip to content

Commit 47c949a

Browse files
committed
theme: upgrade to latest v4.9-dev - get singular taxonomy URLs
1 parent 0a539c1 commit 47c949a

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

config/_default/config.toml

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ enableEmoji = true
3737
footnotereturnlinkcontents = "<sup>^</sup>"
3838
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
3939

40+
# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
41+
[permalinks]
42+
authors = "/author/:slug/"
43+
tags = "/tag/:slug/"
44+
categories = "/category/:slug/"
45+
publication_types = "/publication-type/:slug/"
46+
4047
[outputs]
4148
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
4249
section = [ "HTML", "RSS" ]

content/authors/admin/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# Display name
3-
name: Nelson Bighetti
3+
title: Nelson Bighetti
44

55
# Username (this should match the folder name)
66
authors:

scripts/init_kickstart.sh

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ cd scripts/
1212
# Install demo config
1313
rsync -av ../themes/academic/exampleSite/config/ ../config/
1414

15+
# Install Netlify CMS
16+
rsync -av ../themes/academic/exampleSite/static/admin/ ../static/admin/
17+
1518
# Install demo user
1619
rsync -av ../themes/academic/exampleSite/content/authors/ ../content/authors/
1720

static/admin/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ collections:
6060
label: Talks
6161
label_singular: Talk
6262
folder: 'content/talk'
63-
path: '{{year}}/{{slug}}/index' # Store talks in year-based subfolders, e.g. `talk/2020/my-talk`.
63+
path: '{{slug}}/index'
6464
create: true # Allow users to create new documents in this collection
6565
fields: # The fields each document in this collection have
6666
- {label: "Title", name: "title", widget: "string"}

static/admin/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Content Manager | Academic</title>
7+
<!-- Include Netlify Identity for authentication. -->
78
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
89
</head>
910
<body>
10-
<!-- Include the script that builds the page and powers Netlify CMS -->
11+
<!-- Include the latest Netlify CMS v2.x.x script that builds the admin panel. -->
1112
<script src="https://cdn.jsdelivr.net/npm/netlify-cms@2/dist/netlify-cms.min.js"></script>
1213
</body>
1314
</html>

themes/academic

0 commit comments

Comments
 (0)