Add Contact Page and Update Navigation Links
- Updated navigation links across multiple blog pages to replace "Index" with "Home" and added "Contact" link. - Created a new contact page with a form for user inquiries. - Added a new contact template to render the contact page content. - Updated blog index page to enhance structure and styling. - Added a contact markdown file for content management.
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
{{ end }}
|
||||
|
||||
{{ define "blog_index_content" }}
|
||||
<h1>Blog Index</h1>
|
||||
<ul>
|
||||
{{ range .Posts }}
|
||||
<li><a href="/blog/{{ .Slug }}/">{{ .Title }}</a><br>{{ .Description }}</li>
|
||||
{{ else }}
|
||||
<li>No posts found.</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div class="main">
|
||||
<h1>Go SSG - Blog Index</h1>
|
||||
|
||||
<ul>
|
||||
{{ range .Posts }}
|
||||
<li><a href="/blog/{{ .Slug }}/">{{ .Title }}</a><br>{{ .Description }}</li>
|
||||
{{ else }}
|
||||
<li>No posts found.</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user