Skip to content
Draft
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0b2482e
Initial attempt to create individual pages for the Bibliography entries.
MattHeffron Apr 15, 2025
f212723
Improved, but still work in progress.
MattHeffron Apr 16, 2025
f346a50
Update github action to set bibSplit.pl executable
stumbo May 22, 2025
10c52d2
Publications Page -- work in progress
stumbo Jun 27, 2025
f1af633
WIP
stumbo Jul 9, 2025
afcd74b
WIP
stumbo Jul 16, 2025
cc2c0ef
Bibliography WIP
stumbo Aug 21, 2025
86ba565
Initial implementation of list of all bibliography entries
stumbo Aug 24, 2025
a2b6188
Initial implementation of list of all bibliography entries
stumbo Aug 24, 2025
f6a2620
Merge branch 'mth5--bibliography-items-individual-pages' into bs1_bib…
stumbo Sep 25, 2025
7ff6032
Updates to bibliography page
stumbo Oct 3, 2025
8dba241
Update bibliography entry to link to Zotero
stumbo Oct 9, 2025
c8b317f
Add missing edits.
stumbo Oct 9, 2025
ca4ac24
Update Zotero link wording and open in new tab
stumbo Oct 9, 2025
aee5b11
Fixed a few Hugo syntax errors.
MattHeffron Oct 9, 2025
c45050d
Updates to author tags
stumbo Oct 15, 2025
c9ccc82
Start of building out individual bibliography pages
stumbo Oct 20, 2025
49411f7
Continued work on creating individual entries.
stumbo Oct 22, 2025
fb57d07
Finish individual bibliography entry creation
stumbo Oct 23, 2025
6e84cf9
Taxonomy initial work. Still WIP
stumbo Oct 25, 2025
6596148
Some edge case cleanups.
MattHeffron Oct 26, 2025
92b7232
Taxonomy support for filtering bibliographical entries
stumbo Oct 26, 2025
86d61c2
Merge remote-tracking branch 'origin/bs1_bibliography' into bs1_bibli…
stumbo Oct 27, 2025
bea77f4
Turn off saving of the 00-rawItems.json and tags.json files.
MattHeffron Oct 27, 2025
bf785e5
Added command line processing to avoid needing to edit the file while…
MattHeffron Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 19 additions & 29 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defaults:
env:
# ----------------------------------------------------------------------------
# Specify the deployment environment: staging or production
HUGO_ENVIRONMENT: production
HUGO_ENVIRONMENT: staging
HUGO_VERSION: 0.144.2

jobs:
Expand All @@ -57,27 +57,25 @@ jobs:
cacheHit: ${{ steps.cache-zotero-bib.outputs.cache-hit }}

runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:

- name: Get Zotero Version Information
id: zoteroVersion
uses: fjogeleit/http-request-action@v1
with:
url: "https://api.zotero.org/groups/2914042/items?format=versions"
method: "GET"
url: https://api.zotero.org/groups/2914042/items?format=versions
method: GET

- name: Cache Zotero Bibliography
id: cache-zotero-bib
uses: actions/cache@v4
env:
cache-name: cache-zotero_bib
id: cache-zotero
uses: actions/cache/restore@v4
with:
path: ~/data
key: ${{ fromJson(steps.zoteroVersion.outputs.headers).last-modified-version }}
restore-keys: |
${{ fromJson(steps.zoteroVersion.outputs.headers).last-modified-version }}
lookup-only: true
path: |
static/data/bibliography.json
static/data/bibItems
content/en/history/bibliography
key: bib-${{ fromJson(steps.zoteroVersion.outputs.headers).last-modified-version }}

# ----------------------------------------------------------------------------
# Build the website. This job is conditional, we will always run it on a
Expand All @@ -94,31 +92,23 @@ jobs:
fetch-depth: 0

- name: Cache Zotero Bibliography
id: cache-zotero-bib
id: cache-bib
uses: actions/cache@v4
env:
cache-name: cache-zotero_bib
with:
path: ~/data
key: ${{ needs.check.outputs.zoteroVersion }}
restore-keys: |
${{ needs.check.outputs.zoteroVersion }}
path: |
static/data/bibliography.json
static/data/bibItems
content/en/history/bibliography
key: bib-${{ needs.check.outputs.zoteroVersion }}

- name: Install Bibliography
env:
CACHE_HIT: ${{ steps.cache-zotero-bib.outputs.cache-hit }}
if: steps.cache-bib.outputs.cache-hit != 'true'
run: |
if [[ "$CACHE_HIT" == 'true' ]]; then
echo "Use Cache"
sudo cp --recursive ~/data ${GITHUB_WORKSPACE}/static
ls -la ${GITHUB_WORKSPACE}/static/data
else
echo "Retrieve bibliography"
cd scripts
chmod +x ./update_bibliography.sh
chmod +x ./bibSplit.pl
./update_bibliography.sh
sudo cp --recursive ${GITHUB_WORKSPACE}/static/data ~/data
fi

# Install Hugo Extended
#
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ _gen/
.hugo_build.lock
.idea
data/bibliography.json
/docs
8 changes: 8 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
@import "publications/publications";

.text-center.py-2 .text-white {
display: none;
}

div.td-page-meta {
display: none;
}

.article-container {
max-width: 760px;
padding: 0 20px;
margin: 0 auto;
}
1 change: 0 additions & 1 deletion config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ enableMissingTranslationPlaceholders: true

# Disable rendering of the specified page kinds
disableKinds:
- taxonomy
- term

outputs:
Expand Down
9 changes: 7 additions & 2 deletions config/_default/languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
# See: https://gohugo.io/content-management/multilingual/
#
en:
languageName: English"
languageName: English
languageCode: en-us
# Weight used for sorting.
weight: 1
contentDir: content/en
params:
description: "Dedicated to restoring and preserving the Interlisp experience"
description: "Dedicated to restoring and preserving the Interlisp experience"

# Languages
# Create a section for each of your site's languages.
# Documentation: https://docs.hugoblox.com/reference/language/
2 changes: 1 addition & 1 deletion config/_default/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
- path: "github.com/google/docsy"
disable: false
- path: "github.com/google/docsy/dependencies"
disable: false
disable: false
31 changes: 31 additions & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,22 @@ links:
# desc: "Discuss development issues around the project"

taxonomies:
publish: publish
tag: tags
category: categories
publication_type: publication_types
author: authors

related:
threshold: 80
includeNewer: true
toLower: true
indices:
- name: tags
weight: 100
- name: categories
weight: 70

# Nothing defined

# User Interface Configuration options
Expand Down Expand Up @@ -163,3 +179,18 @@ ui:
# Identify the custom css files
custom_css:
- "css/custom.css"

# Extensions -- From wowchemy

extensions:
decap_cms:
branch: main
local_backend: false
academicons:
enable: true

# Citation style

publications:
date_format: January 2006
citation_style: apa
7 changes: 6 additions & 1 deletion config/_default/permalinks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
#
# see: https://gohugo.io/content-management/urls/#permalinks
#
blog: /:section/:year/:month/:day/:slug/
blog: '/:section/:year/:month/:day/:slug/'

authors: '/author/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'
publication_types: '/publication-type/:slug/'
5 changes: 5 additions & 0 deletions config/_default/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rss:
limit: -1
title: "Interlisp.org RSS Feed"
description: "The latest news from Interlisp.org"
link: "https://interlisp.org"
8 changes: 4 additions & 4 deletions content/en/history/bibliography/_index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Bibliography
type: bibliography
cascade:
type: bibliography
weight: 5
type: docs
aliases:
- /bibliography/

---

## Interlisp Bibliography
# Interlisp Bibliography

(This bibliography is kept in sync with our [Zotero](https://www.zotero.org/) collection [Library](https://www.zotero.org/groups/2914042/interlisp/library).

{{< bibTable >}}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/Interlisp/Interlisp.github.io
go 1.20

require (
github.com/google/docsy v0.10.0 // indirect
github.com/google/docsy v0.12.0 // indirect
github.com/google/docsy/dependencies v0.7.2 // indirect
)
9 changes: 4 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.9.1 h1:+jqges1YCd+yHeuZ1BUvD8V8mEGVtPxULg5j/vaJ984=
github.com/google/docsy v0.9.1/go.mod h1:saOqKEUOn07Bc0orM/JdIF3VkOanHta9LU5Y53bwN2U=
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=
github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
84 changes: 84 additions & 0 deletions layouts/bibliography/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{{ define "main" }}
<br>
<br>
<br>

{{ .Content }}


<style>
/* Publication list styling */
ul.pub-list {
list-style: none;
margin: 0;
padding: 0;
}
ul.pub-list > li {
margin: 0;
padding: .75rem 0;
border-bottom: 1px solid #e2e2e2;
}
ul.pub-list > li:last-child {
border-bottom: none;
}
</style>

{{ $pages := .RegularPages }}

{{- warnf "Pages: $s" (len $pages) -}}

{{ if not (gt (len $pages) 0) }}
<p>No publications found.</p>
{{ end }}

{{- /* Sort by date descending, then title ascending */ -}}
{{- $pages = sort $pages "Date" "desc" -}}
{{- $pages = sort $pages "Title" "asc" -}}

{{- /* Render the list of publications */ -}}

<ul class="pub-list">
{{ range $pages }}
<li>
{{- $rawTitle := or .Params.title .Title -}}
{{- $rendered := replaceRE "^<p>(.*)</p>$" "$1" $rawTitle -}}
{{- $rendered = $rawTitle | markdownify -}}
<span><strong>{{ $rendered }}</strong></span><br>

{{- /* warnf "Parameters $s " .Params */ -}}

{{/* Safe date: use front matter date only if non-empty & matches basic pattern */}}
{{ $d := .Date }}
{{ with .Params.date }}
{{ $datestr := trim . " " }}
{{ if and (ne $datestr "") (findRE `^\d{4}-\d{2}-\d{2}` $datestr) }}
{{ $d = time $datestr }}
{{ end }}
{{ end }}
<time datetime="{{ $d.Format "2006-01-02" }}">{{ $d.Format "2006-01-02" }}</time><br>

{{ with .Params.abstract }}
{{- $plain := . | markdownify | plainify | replaceRE `\s+` " " -}}
{{- $words := split $plain " " -}}
{{- $previewWords := cond (gt (len $words) 24) (first 24 $words) $words -}}
{{- $preview := delimit $previewWords " " -}}
<br>
<div>{{ $preview }}{{ if gt (len $words) 24 }}…{{ end }}</div>
<br>
{{ end }}

{{- $authors := .Params.authors -}}
{{- /* warnf "authors: $s" $authors */ -}}
{{- if $authors -}}
{{- if reflect.IsSlice $authors -}}
{{ delimit $authors ", " " and " }}<br>
{{- else -}}
{{ $authors }}<br>
{{- end -}}
{{- end -}}
<a href="{{ .RelPermalink }}">Read more</a>
<br><br>
</li>
{{ end }}
</ul>
{{ end }}
Loading