diff options
| -rw-r--r-- | backend/parser.go | 2 | ||||
| -rwxr-xr-x | pull.sh | 2 | ||||
| -rwxr-xr-x | push.sh | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/backend/parser.go b/backend/parser.go index f2537d5..9165c71 100644 --- a/backend/parser.go +++ b/backend/parser.go @@ -17,6 +17,7 @@ type EntryInfo struct { Description string `toml:"description"` Img image `toml:"image"` PubLocalDate toml.LocalDate `toml:"publication_date"` + Poem bool `toml:"poem"` } func renderLinkFunc(url string) func(string, string) template.HTML { @@ -52,6 +53,7 @@ func parse(b []byte, info *EntryInfo, d *data) (template.HTML, bool) { } opt := defaultMarkdownOption opt.RenderLink = renderLinkFunc(d.URL) + opt.Poem = info.Poem content, err := markdown.Parse(dd, &opt) var errMd *markdown.ParseError errors.As(err, &errMd) @@ -1,3 +1,3 @@ #!/usr/bin/bash -rsync -rvz "vps:~/small-web-data/*" ./ +rsync -riz "vps:~/small-web-data/*" ./ @@ -1,3 +1,3 @@ #!/usr/bin/bash -rsync -rvz ./{public,data,config.toml,*.sh} vps:~/small-web-data/ +rsync -riz ./{public,data,config.toml,*.sh} vps:~/small-web-data/ |
