Add feed and item extensions
This commit is contained in:
parent
5c0d6180ed
commit
3113b844bc
9 changed files with 448 additions and 54 deletions
9
html.go
9
html.go
|
|
@ -8,6 +8,14 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// Used for success/error message at the top of the page after adding a feed.
|
||||
type ParseResult struct {
|
||||
FeedURL string
|
||||
Msg string
|
||||
IsError bool
|
||||
}
|
||||
|
||||
// HTMLData is the data passed to the HTML template.
|
||||
type HTMLData struct {
|
||||
Title string
|
||||
Description string
|
||||
|
|
@ -18,6 +26,7 @@ type HTMLData struct {
|
|||
ParseResult []ParseResult
|
||||
}
|
||||
|
||||
// Our CSS that is included in the HTML.
|
||||
var style = `
|
||||
html {
|
||||
max-width: 70ch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue