-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() { | ||
|
@@ -40,9 +46,8 @@ templ View(posts []*posts.Post, tags []string) { | |
</p> | ||
} | ||
<p> | ||
Drop me a comment to <a | ||
href="mailto:[email protected]" | ||
>pedro@csta.dev</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> | ||
} | ||
|