Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wowchemy/starter-academic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/_default/config.toml7
-rw-r--r--content/authors/admin/_index.md2
-rwxr-xr-xscripts/init_kickstart.sh3
-rw-r--r--static/admin/config.yml2
-rw-r--r--static/admin/index.html3
m---------themes/academic0
6 files changed, 14 insertions, 3 deletions
diff --git a/config/_default/config.toml b/config/_default/config.toml
index 0162a0d5..ba89b491 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -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" ]
diff --git a/content/authors/admin/_index.md b/content/authors/admin/_index.md
index 23eff309..9b754e03 100644
--- a/content/authors/admin/_index.md
+++ b/content/authors/admin/_index.md
@@ -1,6 +1,6 @@
---
# Display name
-name: Nelson Bighetti
+title: Nelson Bighetti
# Username (this should match the folder name)
authors:
diff --git a/scripts/init_kickstart.sh b/scripts/init_kickstart.sh
index 7101e4da..0b4a879b 100755
--- a/scripts/init_kickstart.sh
+++ b/scripts/init_kickstart.sh
@@ -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/
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 773fc201..fa941801 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -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"}
diff --git a/static/admin/index.html b/static/admin/index.html
index d6a98e29..f0934d76 100644
--- a/static/admin/index.html
+++ b/static/admin/index.html
@@ -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>
diff --git a/themes/academic b/themes/academic
-Subproject 42d0e5f8cd130e52e2dfa496c199229a9f12d8c
+Subproject dc0d310af1fadcc021c7c825f9ed7cd6288e373