Skip to content

Commit

Permalink
organizing some directories
Browse files Browse the repository at this point in the history
  • Loading branch information
pprobst committed Sep 13, 2019
1 parent 20f7574 commit 852791b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions about/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ date: 2019-09-11
---

I'm chill.

Send me an email! _furudoerika at hohoho dot net_
4 changes: 2 additions & 2 deletions src/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func getTemplate(path string) (*template.Template, error) {
}

func GenerateIndexHTML(cfg *config.Config, posts *[]*Post) error {
tmplPath := filepath.Join("static", "index_tmpl.html")
tmplPath := filepath.Join("static/templates", "index_tmpl.html")
tmpl, _ := getTemplate(tmplPath)

filePath := filepath.Join("static", "index.html")
Expand Down Expand Up @@ -54,7 +54,7 @@ func GenerateIndexHTML(cfg *config.Config, posts *[]*Post) error {
}

func GeneratePostsHTML(cfg *config.Config, posts []*Post) error {
tmplPath := filepath.Join("static", "post_tmpl.html")
tmplPath := filepath.Join("static/templates", "post_tmpl.html")
tmpl, _ := getTemplate(tmplPath)

for _, post := range posts {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="favicon.png" type="image/png">
<link href="{{.Theme}}" rel="stylesheet" type="text/css"></head>
<link href="css/{{.Theme}}" rel="stylesheet" type="text/css"></head>
<body>
<h1 class="title">{{.BlogTitle}}</h1>
<p id="descr">{{.Descr}}</p>
Expand Down
2 changes: 1 addition & 1 deletion static/post_tmpl.html → static/templates/post_tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="favicon.png" type="image/png">
<link href="dark.css" rel="stylesheet" type="text/css"></head>
<link href="css/{{.Theme}}" rel="stylesheet" type="text/css"></head>
<body>
<h1 class="title"><a href="index.html">{{.BlogTitle}}</a></h1>
<hr>
Expand Down

0 comments on commit 852791b

Please sign in to comment.