diff --git a/bin/blogo-amd64-darwin b/bin/blogo-amd64-darwin
index e5d412a..2d06569 100755
Binary files a/bin/blogo-amd64-darwin and b/bin/blogo-amd64-darwin differ
diff --git a/bin/blogo-amd64-linux b/bin/blogo-amd64-linux
index db89e57..933e6d8 100755
Binary files a/bin/blogo-amd64-linux and b/bin/blogo-amd64-linux differ
diff --git a/bin/blogo-amd64.exe b/bin/blogo-amd64.exe
index ae6d499..daedfbe 100755
Binary files a/bin/blogo-amd64.exe and b/bin/blogo-amd64.exe differ
diff --git a/main.go b/main.go
index 401f3b5..b34df5a 100644
--- a/main.go
+++ b/main.go
@@ -12,7 +12,7 @@ import (
"github.com/gomarkdown/markdown/parser"
)
-const version = "v0_20220514"
+const version = "v0_20221124"
const directory = "blogo-input"
const defaultOutputDir = "public"
@@ -65,8 +65,12 @@ func generateHTML() {
m := make(map[string]string)
m["[blogo-index-post-template]"] = string(htmlpostthumb)
r := putHTMLToTemplate(indexPostTemplate, m)
- filename := strings.Split(post.Md, ".")[0]
- r = "" + r + ""
+ if post.OutsideArticle != "" {
+ r = "" + r + ""
+ } else {
+ filename := strings.Split(post.Md, ".")[0]
+ r = "" + r + ""
+ }
blogoIndex = blogoIndex + r
}
//put the blogoIndex in the index.html
@@ -82,6 +86,9 @@ func generateHTML() {
// generate posts pages
for _, post := range config.Posts {
+ if post.OutsideArticle != "" {
+ continue
+ }
mdcontent := readFile(directory + "/" + config.PostsDir + post.Md)
mdParser := parser.NewWithExtensions(mdExtensions)
htmlcontent := markdown.ToHTML([]byte(mdcontent), mdParser, nil)
diff --git a/readConfig.go b/readConfig.go
index 5b4a499..5b77110 100755
--- a/readConfig.go
+++ b/readConfig.go
@@ -5,15 +5,16 @@ import (
"io/ioutil"
)
-//Post is the struct for each post of the blog
+// Post is the struct for each post of the blog
type Post struct {
- Thumb string `json:"thumb"`
- Md string `json:"md"`
- MetaImg string `json:"metaimg"`
- MetaDescr string `json:"metadescr"`
+ Thumb string `json:"thumb"`
+ Md string `json:"md"`
+ MetaImg string `json:"metaimg"`
+ MetaDescr string `json:"metadescr"`
+ OutsideArticle string `json:"outsideArticle"`
}
-//Config gets the config.json file into struct
+// Config gets the config.json file into struct
type Config struct {
Title string `json:"title"`
MetaImg string `json:"metaimg"`