Skip to content

Commit

Permalink
blog: refactor consts
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 30, 2024
1 parent 740db1a commit 5b2d243
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ import (
"github.com/yuin/goldmark"
)

const blogBaseUrl= "https://github.com/thiagokokada/blog"
const blogMainUrl = blogBaseUrl + "/blob/main"
const blogRawUrl = blogBaseUrl + "/raw/main"
const readmeTemplate = `# Blog
const (
blogBaseUrl = "https://github.com/thiagokokada/blog"
blogMainUrl = blogBaseUrl + "/blob/main/"
blogRawUrl = blogBaseUrl + "/raw/main/"
readmeTemplate = `# Blog
Mirror of my blog in https://kokada.capivaras.dev/.
Expand All @@ -45,6 +46,7 @@ Mirror of my blog in https://kokada.capivaras.dev/.
%s
`
)

type post struct {
title string
Expand Down
8 changes: 5 additions & 3 deletions mataroa.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ import (
"github.com/yuin/goldmark"
)

const mataroaBaseUrl = "https://kokada.capivaras.dev"
const mataroaApiUrl = mataroaBaseUrl + "/api/"
const mataroaBlogUrl = mataroaBaseUrl + "/blog/"
const (
mataroaBaseUrl = "https://kokada.capivaras.dev"
mataroaApiUrl = mataroaBaseUrl + "/api/"
mataroaBlogUrl = mataroaBaseUrl + "/blog/"
)

var mataroaToken = os.Getenv("MATAROA_TOKEN")

Expand Down

0 comments on commit 5b2d243

Please sign in to comment.