Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmcosta committed Apr 5, 2024
1 parent 62fae65 commit 77f8476
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# pnmcosta.github.io
.
# csta.dev - Static site builder

This repository includes the content for my site [https://csta.dev](https://csta.dev) which is a Go builder app that renders [Templ](https://templ.guide) templates and Markdown blog posts into a static Github Pages deployment.

If you'd like to see how it works, clone the repo and run `make help` for more information.

11 changes: 8 additions & 3 deletions internal/templates/index/view.templ
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ package index
import "github.com/pnmcosta/csta.dev/internal/posts"
import "github.com/pnmcosta/csta.dev/internal/templates/layout"
import "github.com/pnmcosta/csta.dev/internal/templates/post"
import "fmt"

var (
mail = "pedro@csta.dev"
mailLink = fmt.Sprintf(`<a href="mailto:%s">%s</a>`, mail, mail)
)

templ View(posts []*posts.Post, tags []string) {
@layout.Base() {
Expand Down Expand Up @@ -40,9 +46,8 @@ templ View(posts []*posts.Post, tags []string) {
</p>
}
<p>
Drop me a comment to <a
href="mailto:[email protected]"
>&#112;&#101;&#100;&#114;&#111;&#064;&#099;&#115;&#116;&#097;&#046;&#100;&#101;&#118;</a>
Source code of this site on <a href="https://github.com/pnmcosta/csta.dev" target="_blank">GitHub</a> and you can drop me a comment to
@post.Unsafe(mailLink)
</p>
<p>All the best</p>
}
Expand Down

0 comments on commit 77f8476

Please sign in to comment.