From 77f84768707d56122cf58565408b668fd30afa00 Mon Sep 17 00:00:00 2001 From: Pedro Costa <550684+pnmcosta@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:35:52 +0100 Subject: [PATCH] update readme --- README.md | 8 ++++++-- internal/templates/index/view.templ | 11 ++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e23fa0a..8b04da9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# pnmcosta.github.io -. \ No newline at end of file +# 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. + diff --git a/internal/templates/index/view.templ b/internal/templates/index/view.templ index c080039..9bd33b5 100644 --- a/internal/templates/index/view.templ +++ b/internal/templates/index/view.templ @@ -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(`%s`, mail, mail) +) templ View(posts []*posts.Post, tags []string) { @layout.Base() { @@ -40,9 +46,8 @@ templ View(posts []*posts.Post, tags []string) {

}

- Drop me a comment to pedro@csta.dev + Source code of this site on GitHub and you can drop me a comment to + @post.Unsafe(mailLink)

All the best

}