diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | layouts/_default/list.html | 4 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | theme.toml | 2 |
4 files changed, 9 insertions, 9 deletions
@@ -15,10 +15,10 @@ A minimalistic text based theme for Hugo inspired by [hugo-bingo](https://github hugo new site mynewsite ``` -3: Change to themes dir. +3: Change to themes directory. ``` -cd classic/themes +cd mynewsite/themes ``` 4: Clone the repo @@ -27,7 +27,7 @@ cd classic/themes git clone git@github.com:shankar/hugo-grapes.git ``` -5: Copy the `content/`, `static/`, and `config.toml` from the `exampleSite` directory into the classic directory. The existing `content/`, `static/`, and `config.toml` files will be over-written. +5: Copy the `content/`, `static/`, and `config.toml` from the `exampleSite` directory into the `mynewsite` directory. The existing `content/`, `static/`, and `config.toml` files will be over-written. ``` cp -r hugo-grapes/exampleSite/* /path/to/mynewsite ``` @@ -51,7 +51,7 @@ hugo new post/awesome-post.md 2: Edit the config.toml file and edit the value of the `avatar` key under `params` to let hugo know its location. ``` [params] -avatar = "path/to/avatar" +avatar = "path/to/avatar" # Path is relative to static folder. # Example: "img/grapes.svg" for grapes.svg file located in static/img folder ``` diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 51afbf3..1e8735e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,9 +4,9 @@ <div class="container"> <h1>{{ .Title }}</h1> <ul> - {{ range .Data.Pages }} + {{ range .Site.RegularPages }} <li> - <a href="{{ .URL }}">{{ .Title }}</a> + <a href="{{ .Permalink }}">{{ .Title }}</a> <p>{{ .Render "time-element" }}</p> <p>{{ .Summary }}...</p> </li> diff --git a/layouts/index.html b/layouts/index.html index 18f0b81..ca53239 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,10 +17,10 @@ <div class="container"> <h2>Recent Posts</h2> <ul> - {{ range first 5 .Data.Pages.ByPublishDate.Reverse }} + {{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }} <li> <span>{{ .Render "time-element" }}</span> - <a href="{{ .URL }}">{{ .Title }}</a> + <a href="{{ .Permalink }}">{{ .Title }}</a> </li> {{ end }} </ul> @@ -5,7 +5,7 @@ description = "Text based minimalistic Hugo theme" homepage = "https://github.com/shankar/hugo-grapes" tags = ["minimalist", "simple", "clean", "blog", "responsive"] features = ["blog"] -min_version = "0.41" +min_version = "0.57.0" [author] name = "Shankar" |