diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 6782701..fdbb9b5 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -8,7 +8,7 @@
- {{ .Text | plainify }} + {{ .Text | plainify }}
{{ .Text | markdownify }} diff --git a/layouts/_default/spotify.html b/layouts/_default/spotify.html index 6b032ac..6f42e95 100644 --- a/layouts/_default/spotify.html +++ b/layouts/_default/spotify.html @@ -32,7 +32,7 @@ {{ with index .album.images 0 }} -
+ {{ end }} diff --git a/layouts/index.html b/layouts/index.html index 6598a7a..bdd1888 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ $header_image := (resources.Get "img/header.jpg" | fingerprint).Resize "1500x" }} -
+

{{ .Site.Params.author_name }}

{{ .Content }}

diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 1da959d..f89e9b7 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -10,7 +10,7 @@ {{ .Scratch.Set "image" $unsplash_data.urls.full }} {{ end }} -
+ {{ end }} {{ partial "breadcrumbs/index.html" . }} diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index bad6c52..9d92b66 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -12,7 +12,7 @@ {{ $unsplash_data := (getJSON "https://api.unsplash.com/photos/" $unsplash_id "?" $query )}} {{ .Scratch.Set "image" $unsplash_data.urls.thumb }} {{ end }} -
+
{{ end }} diff --git a/static/src/js/app.js b/static/src/js/app.js index 8f38143..6e22a9d 100644 --- a/static/src/js/app.js +++ b/static/src/js/app.js @@ -36,16 +36,6 @@ $(document).ready(function() { } }); - $('.image').each(function() { - // setup div-image hybrids - const ele = $(this); - if (ele.data('image')) { - ele.css('background-image', 'url(' + ele.data('image') + ')'); - } else { - ele.removeClass('image'); - } - }); - new Elevator({ element: document.getElementById('scroll-elevator'), mainAudio: '/audio/elevator.mp3', diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index ddd02f3..37dd385 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -40,19 +40,8 @@ code { padding: 0.25em; } -.image { - background-repeat: no-repeat; - background-position: center; - background-size: cover; - - &.featured { - margin-bottom: 2em !important; - height: 13em; - - &.main { - height: 40vh; - } - } +img { + object-fit: cover; } #light-gallery { @@ -108,6 +97,9 @@ table td { } #index-header { + background-repeat: no-repeat; + background-position: center; + background-size: cover; width: 100%; height: calc(100vh - #{$footer-height} - #{$navbar-height}); @@ -150,7 +142,7 @@ footer { width: 20%; } - .image { + img { width: 100%; height: 10vh; } @@ -263,7 +255,7 @@ h1, h2, h3, h4, h5, h6 { } .playlist { - .image { + img { width: 50px; height: 50px; }