mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
1104f0fdd1
commit
012569dbc0
15 files changed
+390
-50
No files matched your search
@@ -88,9 +88,14 @@ func (r *Renderer) PageLinks(page *PageContent) ([]PageLink, error) {
|
||||
}
|
||||
} else if action.URI != nil && action.URI.URI != "" {
|
||||
link.URI = resolveActionURI(*action.URI)
|
||||
link.Target = action.URI.Target
|
||||
links = append(links, link)
|
||||
} else if action.GotoA != nil {
|
||||
link.Attachment = action.GotoA.AttachID
|
||||
if action.GotoA.NewWindow != nil {
|
||||
window := *action.GotoA.NewWindow
|
||||
link.NewWindow = &window
|
||||
}
|
||||
links = append(links, link)
|
||||
} else if action.Sound != nil {
|
||||
value := *action.Sound
|
||||
|
||||
Reference in new issue
Block a user