Skip to content

Commit

Permalink
add contact
Browse files Browse the repository at this point in the history
  • Loading branch information
sxc committed Oct 11, 2023
1 parent 5ae01fb commit d65c0ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions controllers/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ func FAQ(tpl Template) http.HandlerFunc {
Answer string
}{
{
Question: "What is this?",
Answer: "This is a sample FAQ question.",
Question: "What is guanyuchi?",
Answer: "Share food photos with your friends.",
},
{
Question: "Where is this 2?",
Answer: "This is a sample FAQ question.",
Question: "How to use guanyuchi?",
Answer: "Register with email address.",
},
{
Question: "What is this 3?",
Answer: "This is a sample FAQ question.",
Question: "How much does it cost?",
Answer: "Free.",
},
}
return func(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion templates/contact.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="px-6">
<h1 class="px-4 text-4xl semibold tracking-tight">Contact Page</h1>
<p class="text-gray-800">To get in touch, email me at
<a class="underline" href="mailto:contact@example.com\">contact@example.com</a>
<a class="underline" href="mailto:jimgreenwooddev@gmail.com">jimgreenwooddev at gmail.com</a>
</p>
</div>
{{template "footer" .}}

0 comments on commit d65c0ca

Please sign in to comment.