Browse Source

Update blog to be a generic blog for all things redbrick

pull/7/head
Cian Butler 1 year ago
parent
commit
0f6f72bfdb
Signed by: butlerx GPG Key ID: B37CA765BAA89170
3 changed files with 11 additions and 11 deletions
  1. +4
    -4
      README.md
  2. +5
    -5
      config.toml
  3. +2
    -2
      layouts/index.html

+ 4
- 4
README.md View File

@@ -1,4 +1,4 @@
# admin-blog
# Blog

We screw up sometimes but they're usually fun stories

@@ -6,9 +6,9 @@ We screw up sometimes but they're usually fun stories

## Usage

* To Build the site run `hugo -d /path/to/serve/files`
* To Preview the site locally run `hugo serve` and open `localhost:1313`
* To add a new post run `hugo new post/post-title` and then open
- To Build the site run `hugo -d /path/to/serve/files`
- To Preview the site locally run `hugo serve` and open `localhost:1313`
- To add a new post run `hugo new post/post-title` and then open
`content/post/post-title` in your editor

For everything else check the [docs](https://gohugo.io/documentation/)

+ 5
- 5
config.toml View File

@@ -1,14 +1,14 @@
baseURL = "https://admins.redbrick.dcu.ie/"
languageCode = "en-us"
title = "Redbrick Admin Blog"
author = "Redbrick Admin"
title = "Redbrick Blog"
author = "Redbrick Members"
pygmentsCodeFences = true

[outputs]
home = ["HTML", "RSS", "JSON"]

[params]
hero = "root@rb"
message = "FIX IT!!! FIX IT !!! FIX ITTTTTT!!!!!!!!!"
descriptions = "Tales of fail from Redbrick admins"
hero = "Redbrick"
message = "Posts from Redbrick admins, committee and members"
descriptions = "Tales from Redbrick"
twitter = "RedbrickDCU"

+ 2
- 2
layouts/index.html View File

@@ -3,9 +3,9 @@
<main role="main" class="homepage">
{{ partial "hero.html" . }}
<h1 class="headline">Recent Posts</h1>
{{ $paginator := .Paginate (where .Data.Pages "Section" "post") (or .Site.Params.paginate 3) }}
{{ $paginator := .Paginate .Site.RegularPages }}
<div class="article-list">
{{ range first 3 (where .Data.Pages "Section" "post") }}
{{ range first 3 .Site.RegularPages }}
{{ partial "article-list-item.html" . }}
{{ end }}
</div>


Loading…
Cancel
Save