Git Product home page Git Product logo

Comments (4)

LuiseFreese avatar LuiseFreese commented on June 13, 2024 1

we can remove parker the article in here, so that it will only be shown once (from FM)

its still a good idea to think about reducing the size of the thumbnail image

from blog.

appieschot avatar appieschot commented on June 13, 2024

After updating the content we should have a look at the implementation on the single page to perhaps specify a max height as well:

<!-- post thumb -->
{{ with .Params.images }}
<div class="post-slider mb-4">
{{ range .}}
{{ if (fileExists (add `assets/` .)) }}
{{ $image:= resources.Get . }}
{{ $imageMD:= $image.Fill "700x330" }}
{{ $imageSM:= $image.Fill "380x180" }}
<picture>
<source srcset="{{ $imageSM.Permalink }}" media="(max-width: 575px)">
<source srcset="{{ $imageMD.Permalink }}" media="(max-width: 991px)">
<source srcset="{{$image.Permalink}}">
<img src="{{$image.Permalink}}" class="card-img" loading="lazy" alt="post-thumb">
</picture>
{{ else }}
<img src="{{ . | absURL }}" class="card-img" loading="lazy" alt="post-thumb">
{{ end }}
{{ end }}
</div>
{{ end }}
<!-- /post thumb -->

from blog.

LuiseFreese avatar LuiseFreese commented on June 13, 2024

2nd Parker is removed #130 - can we close this?

from blog.

appieschot avatar appieschot commented on June 13, 2024

Yes we can 🦾

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.