Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Dec 9, 2024
1 parent 327a397 commit d8d3229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ func SimpleHTMLPage(title, headline, inhead, body []byte) []byte {

// HTMLLink builds an HTML link given the link text, the URL to a file/directory
// and a boolean that is true if the given URL is to a directory.
func HTMLLink(text, URL string, isDirectory bool) string {
func HTMLLink(text, url string, isDirectory bool) string {
// Add a final slash, if needed
if isDirectory {
text += "/"
URL += "/"
url += "/"
}
return "<a href=\"/" + URL + "\">" + text + "</a><br>"
return "<a href=\"/" + url + "\">" + text + "</a><br>"
}

// StyleAmber modifies Amber source code so that a link to the given stylesheet URL is added
Expand Down

0 comments on commit d8d3229

Please sign in to comment.