diff --git a/main.go b/main.go index 14f0c5e..69174ad 100755 --- a/main.go +++ b/main.go @@ -51,7 +51,7 @@ func main() { e.GET("/", pages.Home) e.GET("/projects", pages.Projects) e.GET("/talks", pages.Talks) - e.GET("/pubs", pages.Pubs) + e.GET("/papers", pages.Papers) e.GET("/posts", pages.Posts) e.GET("/posts/:post", pages.Post) e.GET("/tools", pages.Tools) diff --git a/pages/papers.go b/pages/papers.go new file mode 100644 index 0000000..8a9b0a1 --- /dev/null +++ b/pages/papers.go @@ -0,0 +1,32 @@ +package pages + +import ( + "atri.dad/lib" + "github.com/labstack/echo/v4" +) + +type PapersProps struct { + Papers []lib.CardLink +} + +func Papers(c echo.Context) error { + papers := []lib.CardLink{ + { + Name: "Bridging the Gap Between Social Networks and Healthcare", + Description: "An Assessment of the Need for Improved Patient-Patient, Patient-Provider, and Provider-Provider Sharing", + Href: "/public/files/bridging_the_gap_between_social_networks_and_healthcare.pdf", + Tags: []string{"masters", "coursework", "sna"}, + Date: "January 03, 2025", + }, + } + + props := PapersProps{ + Papers: papers, + } + + // Specify the partials used by this page + partials := []string{"header", "navitems", "cardlinks"} + + // Render the template + return lib.RenderTemplate(c.Response().Writer, "base", partials, props) +} diff --git a/pages/pubs.go b/pages/pubs.go deleted file mode 100644 index 43c4a07..0000000 --- a/pages/pubs.go +++ /dev/null @@ -1,24 +0,0 @@ -package pages - -import ( - "atri.dad/lib" - "github.com/labstack/echo/v4" -) - -type PubProps struct { - Pubs []lib.CardLink -} - -func Pubs(c echo.Context) error { - pubs := []lib.CardLink{} - - props := PubProps{ - Pubs: pubs, - } - - // Specify the partials used by this page - partials := []string{"header", "navitems", "cardlinks"} - - // Render the template - return lib.RenderTemplate(c.Response().Writer, "base", partials, props) -} diff --git a/pages/templates/pubs.html b/pages/templates/papers.html similarity index 83% rename from pages/templates/pubs.html rename to pages/templates/papers.html index 0e5942d..a13e2b1 100644 --- a/pages/templates/pubs.html +++ b/pages/templates/papers.html @@ -1,9 +1,9 @@ {{define "title"}} -Atridad Lahiji // Publications +Atridad Lahiji // Papers {{end}} {{define "headercontent"}} -Atridad Lahiji // Publications +Atridad Lahiji // Papers {{end}} {{define "head"}} @@ -12,15 +12,15 @@ Atridad Lahiji // Publications {{define "main"}} -{{if .Pubs}} +{{if .Papers}}
- {{range .Pubs}} + {{range .Papers}} {{template "cardlinks" .}} {{end}}
{{end}} -{{if not .Pubs}} +{{if not .Papers}}

Nothing to see here (yet)! diff --git a/pages/templates/partials/navitems.html b/pages/templates/partials/navitems.html index ddde84e..0d23d3c 100644 --- a/pages/templates/partials/navitems.html +++ b/pages/templates/partials/navitems.html @@ -6,7 +6,7 @@ Projects
  • - Publications + Papers
  • Talks diff --git a/public/files/bridging_the_gap_between_social_networks_and_healthcare.pdf b/public/files/bridging_the_gap_between_social_networks_and_healthcare.pdf new file mode 100644 index 0000000..126cb11 Binary files /dev/null and b/public/files/bridging_the_gap_between_social_networks_and_healthcare.pdf differ