Skip to content

Commit

Permalink
copy update
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmcosta committed Apr 5, 2024
1 parent ef8d819 commit 8beea11
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
47 changes: 23 additions & 24 deletions internal/templates/index/view.templ
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ var (
templ View(posts []*posts.Post, tags []string) {
@layout.Base() {
<p>
Olá, I'm <a href="https://www.linkedin.com/in/pnmcosta/" target="_blank">Pedro Maia Costa</a> a product
software
engineer based in Braga, Portugal.
Olá! Welcome to my portfolio site.
I'm <a href="https://www.linkedin.com/in/pnmcosta/" target="_blank">Pedro Maia Costa</a> a product software engineer based in Braga, Portugal.
</p>
<p>
Currently working on/with <a href="https://www.socialclique.app/" target="_blank">SocialClique</a> developing
<a href="https://shopify.dev/building-for-the-app-store" target="_blank">Shopify Apps</a>.
I'm currently immersed in the world of <a href="https://shopify.dev/building-for-the-app-store" target="_blank">Shopify Apps</a>
at <a href="https://www.socialclique.app/" target="_blank">SocialClique</a>, where I'm dedicated to developing innovative solutions that elevate the e-commerce
experience for both stores and customers alike.
</p>
<p>
Having previously worked at/with <a href="https://www.juni.co/" target="_blank">Juni</a>, <a
In the past, I've had the privilege of contributing my skills and expertise to organizations such as <a href="https://www.juni.co/" target="_blank">Juni</a>, <a
href="https://www.thesimgrid.com/"
target="_blank"
>The SimGrid</a>,
Expand All @@ -33,36 +33,35 @@ templ View(posts []*posts.Post, tags []string) {
>
JPMorgan
Chase & Co.
</a> and <a href="https://allhuman.com/" target="_blank">All human</a>.
</a> and <a href="https://www.linkedin.com/in/pnmcosta/#experience" target="_blank">many others</a>.
</p>
if len(tags) > 0 {
<p>
I've also recently started sharing my expertise and know-how on these topics
for i, t := range tags {
Recently, I've embarked on a journey of knowledge sharing, delving into various topics including
for i, t := range limit(tags, 5) {
if i >0 {
,
}
@tag.Link(t)
}
.
</p>
}
if len(posts) > 0 {
<p>
I've also recently started sharing my expertise and know-how on these topics
for i, t := range posts {
if i >0 {
,
}
@post.Link(t)
}
.
}&nbsp;and <a href="/posts">more</a>.
</p>
}
<p>
Source code of this site on <a href="https://github.com/pnmcosta/csta.dev" target="_blank">GitHub</a> and you email me on
If you're interested in exploring the source code of this site, it's available on <a href="https://github.com/pnmcosta/csta.dev" target="_blank">GitHub</a>.
Feel free to explore and learn from it.
</p>
<p>
And should you wish to connect with me for collaboration, opportunities, or simply to say hello, you can reach me at
@post.Unsafe(mailLink)
.
</p>
<p>All the best</p>
}
}

func limit(tags []string, value int) []string {
if len(tags) > value {
return tags[:value]
}
return tags
}
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"
"os"
"path"
"sort"
"sync"

"github.com/gosimple/slug"
Expand Down Expand Up @@ -108,6 +109,9 @@ func main() {
}()
}

// sort tag keys by post count descending
sort.Slice(tagKeys, func(i, j int) bool { return len(tags[tagKeys[i]]) > len(tags[tagKeys[j]]) })

wg.Wait()

// Create an index page.
Expand Down

0 comments on commit 8beea11

Please sign in to comment.