diff --git a/README.md b/README.md index e5bb74a3..6b267169 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ dot. If both are the same, only one is used without the middle dot. The HTML body can have a header, a body, and a footer. The header has the section menus, if any; the page title, if any; the page description, if any; and the page date, if any. The body has the page content, if -any. The footer has the site copyright notice, if any. +any. The footer has the copyright notice, if any. A section menu is highlighted if its path is a prefix of the path of the current page. For example, the section menu path `/foo/` matches the @@ -90,10 +90,12 @@ page `content/_index.md`. The page date is the publish date, if any; otherwise, it's the creation date. -The home page shows the `blurb`, `description`, `greeting`, and `title` -parameters from `content/_index.md`, the `avatar.jpg` and `cover.jpg` -images at the site root, and linked icons for all the social sites -configured in `config.yaml`. +The home page body has the `stretch`, `center`, `greeting`, and `blurb` +parameters from `content/_index.md`, if any; the page content, if any; +and linked icons for the social sites configured in `config.yaml`, if +any. `stretch` is an image that is stretched fully horizontally with +`background-position: center` and `background-size: cover`. `center` is +an image that is centered. Single pages use the `link` page parameter, if any, as the reference for an anchor around the page title, if any. If the page or site parameter diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index f3eeee1f..10c82613 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,6 +1,7 @@ --- -blurb: "There's a new daddy in town. A discipline daddy. If I make this comeback, I'll buy you a hundred George Michaels that you can teach to drive! These are my awards, Mother. From Army. The seal is for marksmanship, and the gorilla is for sand racing. We'll have to find something to do so that people can look at you without wanting to kill themselves.

Paige: A simple Hugo theme

" +blurb: "

There's a new daddy in town. A discipline daddy. If I make this comeback, I'll buy you a hundred George Michaels that you can teach to drive! These are my awards, Mother. From Army. The seal is for marksmanship, and the gorilla is for sand racing. We'll have to find something to do so that people can look at you without wanting to kill themselves.

Paige: A simple Hugo theme

" description: Go ahead, touch the Cornballer greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU) +stretch: cover.jpg title: No Borders, No Limits --- diff --git a/exampleSite/static/avatar.jpg b/exampleSite/static/avatar.jpg deleted file mode 100644 index dad7e2cc..00000000 Binary files a/exampleSite/static/avatar.jpg and /dev/null differ diff --git a/images/home.jpg b/images/home.jpg index 7250e88a..764f3d42 100644 Binary files a/images/home.jpg and b/images/home.jpg differ diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 2cc38e5c..7c54c4ca 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ if or .Title .Description }} -
-
+
+
{{ if .Title }}

{{ .Title | markdownify }}

{{ end }} @@ -11,27 +11,42 @@
{{ end }} -
-
-
+{{ if .Params.stretch }} +
+
+
-
-
-
-
-

{{ .Params.greeting | markdownify }}

-

{{ .Params.blurb | markdownify }}

-
-
- Avatar -
-
+{{ end }} +{{ if .Params.center }} +
+
+ Avatar
-{{ if .Site.Social }} -
+{{ end }} +{{ if .Params.greeting }} +
+

{{ .Params.greeting | markdownify }}

+
+
+{{ end }} +{{ if .Params.blurb }} +
+
+
{{ .Params.blurb | markdownify }}
+
+
+{{ end }} +{{ if .Content }} +
+
{{ .Content }}
+
+{{ end }} +{{ if .Site.Social }} +
+
{{ range $k, $v := .Site.Social }} {{ end }}