Hugo

Insert a table of contents partial

I have been trying to insert a table of content partial but it doesn’t work … and the idea of what i would be missing here ?

@John_Hashim I moved your post to a new topic.

thanks so my point was to insert the table of content after the first paragraph but it doesnt really work

do you have a repo? That’s good for help!

in your markdown a table should look like this

|type| network|    size| time|    remarks|
|:---|-------:|-------:|----:|:----------|
|HTML| 1,93 kB| 6,43 kB|144ms|   web site|
|CSS | 6,56 kB| 34,0 kB| 25ms|     my CSS|
|JPG | 6,18 kB| 5,89 kB| 20ms|     avatar|
|JPG |87,73 kB|87,44 kB| 67ms| background|
|PNG |23,75 kB|23,47 kB| 25ms|    overlay|
|font| 5,01 kB| 4,52 kB| 20ms|  extern FA|
|font|66,32 kB|65,82 kB| 31ms|  extern FA|
|CSS | 2,32 kB|47,51 kB| 35ms|  extern FA|

the visual design is done with CSS - like this

/* table styles */
table {
  border-collapse: collapse;
}

  table th {
    color: white;
    padding: 0.5em 0.5em 0.25em 0.5em;
    background-color: rgb(96,96,96);
  }

  table td {
    border: solid 1px;
    padding: 0.5em 0.5em;
  }

  table tr:hover {
    background-color: rgb(240,240,240);
  }

this is what i meant !! @ju52

Your question was very short and I had to guess