From 74dd7593bdb4bc6d0ea19620848d484906be03e7 Mon Sep 17 00:00:00 2001 From: Raimund Klein <770876+Chessray@users.noreply.github.com> Date: Thu, 21 May 2026 15:53:55 +0100 Subject: [PATCH] Move section "MapStruct in 2 Minutes" above news. --- layouts/index.html | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index eeebaf0e8..f7c918abe 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -38,22 +38,6 @@

How?


-
-
-

Latest News

- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "news") 3 }} - {{ range $paginator.Pages }} - {{ partial "news_summary_compact.html" . }} - {{ end }} -
-
-
-
- More News | - RSS Feed -
-
-

MapStruct in 2 Minutes

@@ -113,14 +97,14 @@

The mapper interface

{{/*
@Mapper 1
     public interface CarMapper {
- 
+
         CarMapper INSTANCE = Mappers.getMapper( CarMapper.class ); 3
- 
+
         @Mapping(source = "numberOfSeats", target = "seatCount")
         CarDto carToCarDto(Car car); 2
     }
- */}} -
  1. @Mapper 1
  2. public interface CarMapper {
  3.  
  4. CarMapper INSTANCE = Mappers.getMapper( CarMapper.class ); 3
  5.  
  6. @Mapping(source = "numberOfSeats", target = "seatCount")
  7. CarDto carToCarDto(Car car); 2
  8. }
+ */}} +
  1. @Mapper 1
  2. public interface CarMapper {
  3.  
  4. CarMapper INSTANCE = Mappers.getMapper( CarMapper.class ); 3
  5.  
  6. @Mapping(source = "numberOfSeats", target = "seatCount")
  7. CarDto carToCarDto(Car car); 2
  8. }
@@ -179,6 +163,22 @@

Using the mapper


+
+
+

Latest News

+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "news") 3 }} + {{ range $paginator.Pages }} + {{ partial "news_summary_compact.html" . }} + {{ end }} +
+
+
+
+ More News | + RSS Feed +
+
+

Tell me more!