Fixed blog posts, added disclaimer text to be subtext
This commit is contained in:
@@ -71,7 +71,7 @@ func (b *BlogRepo) GetBlogByUrl(url string) (*models.BlogPost, error) {
|
||||
|
||||
func (b *BlogRepo) GetAllBlogPosts() (*[]models.BlogPost, error) {
|
||||
posts := new([]models.BlogPost)
|
||||
err := b.DB.Table("blog_posts").Scan(posts).Error
|
||||
err := b.DB.Table("blog_posts").Order("date desc").Scan(posts).Error
|
||||
if err != nil {
|
||||
return nil, errors.New("Could not load all posts from database")
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<h2>{{ .Title }}</h2>
|
||||
<div>{{ .Content | UnescapeHTML }}</div>
|
||||
<hr/>
|
||||
<p>
|
||||
<p class="subtext">
|
||||
This site used to have comments. Unfortunatley maintaining a comment system that can resist bots, spammers, and other hooligans is quite tiresome. Until I figure out a way to efficiently handle comments, they are disabled. Sorry for the inconvenience.
|
||||
</p>
|
||||
{{ template "footer_no_banners.tmpl" . }}
|
||||
|
||||
Reference in New Issue
Block a user