dタグをパス形式にした

This commit is contained in:
studiokaiji
2023-10-10 14:56:06 +09:00
parent e374e93644
commit a51cc487a1
2 changed files with 10 additions and 4 deletions

View File

@@ -52,8 +52,7 @@ func pathToKind(path string, replaceable bool) (int, error) {
// Replaceableにする場合のidentifier(dタグ)を取得
func getReplaceableIdentifier(indexHtmlIdentifier, filePath string) string {
encodedFilePath := strings.ReplaceAll(filePath, "/", "_")
return indexHtmlIdentifier + "-" + encodedFilePath
return indexHtmlIdentifier + "/" + filePath[1:]
}
var nostrEventsQueue []*nostr.Event