diff options
author | Joe Hutchinson <hutch7995@gmail.com> | 2020-10-22 21:45:32 +0300 |
---|---|---|
committer | Joe Hutchinson <hutch7995@gmail.com> | 2020-10-22 21:45:32 +0300 |
commit | ecc2482582119a6a9f9f142702121ef10f448c8f (patch) | |
tree | 677a8bf3f968a27fb34155492dfc13bb1bef96ff | |
parent | 86bd082af59c8a2fa1edf1e3fdb9b2ef6724b27b (diff) |
Make headshot url a parameter
-rw-r--r-- | exampleSite/assets/img/faceshot.jpg | bin | 0 -> 67775 bytes | |||
-rw-r--r-- | exampleSite/assets/img/faceshot.png | bin | 6653 -> 0 bytes | |||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rwxr-xr-x | images/screenshot.png | bin | 458144 -> 487814 bytes | |||
-rwxr-xr-x | images/tn.png | bin | 191520 -> 210569 bytes | |||
-rw-r--r-- | layouts/_default/home.html | 2 |
6 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/assets/img/faceshot.jpg b/exampleSite/assets/img/faceshot.jpg Binary files differnew file mode 100644 index 0000000..4a55b80 --- /dev/null +++ b/exampleSite/assets/img/faceshot.jpg diff --git a/exampleSite/assets/img/faceshot.png b/exampleSite/assets/img/faceshot.png Binary files differdeleted file mode 100644 index b6650ed..0000000 --- a/exampleSite/assets/img/faceshot.png +++ /dev/null diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bd44169..d286c3c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -9,6 +9,7 @@ themesDir = "../../" [params] brand = "aether" description = "aether Hugo theme for blogs" + headshotimg = "img/faceshot.jpg" [markup] [markup.highlight] diff --git a/images/screenshot.png b/images/screenshot.png Binary files differindex 9678c52..faf8f79 100755 --- a/images/screenshot.png +++ b/images/screenshot.png diff --git a/images/tn.png b/images/tn.png Binary files differindex 849672a..3480392 100755 --- a/images/tn.png +++ b/images/tn.png diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 43d097d..9664ee6 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -10,7 +10,7 @@ {{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }} {{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }} </div> - {{ with resources.Get "img/faceshot.png" -}} + {{ with resources.GetMatch .Site.Params.headshotimg -}} <div class="home-faceshot-card"> <img class="home-faceshot" src="{{ .Permalink }}" > </div> |