Rename net4people_url to discussion_url.

While most discussion URLs will be on net4people, some won't.
This commit is contained in:
Philipp Winter 2024-05-25 09:27:19 -05:00
parent eb4ffd73fd
commit f5978aa24c
2 changed files with 6 additions and 6 deletions

View file

@ -75,11 +75,11 @@ func makeBibEntryTitle(entry *bibEntry) string {
func makeIcons(entry *bibEntry) []string {
var icons = []string{`<span class="icons">`}
// Not all references have a corresponding net4people discussion but if they
// do, add an icon.
if field, ok := entry.Fields["net4people_url"]; ok {
// Not all references have a corresponding discussion (e.g., on net4people)
// but if they do, add an icon.
if field, ok := entry.Fields["discussion_url"]; ok {
s := fmt.Sprintf("<a href='%s'>", field.String()) +
`<img class="icon" title="net4people discussion" src="assets/discussion-icon.svg" alt="Discussion icon">` +
`<img class="icon" title="Online discussion" src="assets/discussion-icon.svg" alt="Discussion icon">` +
`</a>`
icons = append(icons, s)
}