Fixed blog posts, added disclaimer text to be subtext

This commit is contained in:
2022-03-09 15:13:15 +00:00
parent 4763b636ef
commit e6675adda8
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ func (b *BlogRepo) GetBlogByUrl(url string) (*models.BlogPost, error) {
func (b *BlogRepo) GetAllBlogPosts() (*[]models.BlogPost, error) { func (b *BlogRepo) GetAllBlogPosts() (*[]models.BlogPost, error) {
posts := new([]models.BlogPost) 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 { if err != nil {
return nil, errors.New("Could not load all posts from database") return nil, errors.New("Could not load all posts from database")
} }

View File

@@ -13,7 +13,7 @@
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
<div>{{ .Content | UnescapeHTML }}</div> <div>{{ .Content | UnescapeHTML }}</div>
<hr/> <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. 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> </p>
{{ template "footer_no_banners.tmpl" . }} {{ template "footer_no_banners.tmpl" . }}