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!