Skip to content
Snippets Groups Projects
  1. Mar 12, 2024
  2. Mar 08, 2024
  3. Mar 07, 2024
  4. Mar 06, 2024
  5. Mar 04, 2024
  6. Feb 29, 2024
  7. Feb 28, 2024
  8. Feb 27, 2024
  9. Feb 26, 2024
  10. Feb 23, 2024
  11. Feb 22, 2024
  12. Feb 13, 2024
  13. Jan 30, 2024
  14. Jan 25, 2024
  15. Jan 16, 2024
    • Sietze van Buuren's avatar
      Add short-code to list (nested) pages of the current section · db84993c
      Sietze van Buuren authored and Sietze van Buuren's avatar Sietze van Buuren committed
      
      Adds a new short-code to display all (nested) section pages in a link list (with
      header title) with nested link lists for nested page sections. The order of the
      list items resembles the page order in the navigation menu.
      
      Usage:
      
      Use the short-code in the markdown page the represents a subsection (a
      subsection is represented by a markdown page and a subsection directory
      (identically named) that resides in the same directory as the markdown page).
      
      ```
      {{< section-toc title="Contents">}}
      ```
      
      Note that the named input argument `title` is optional and defaults to
      `Contents`.
      
      Signed-off-by: default avatarSietze van Buuren <Sietze.vanBuuren@de.bosch.com>
      db84993c
  16. Jan 12, 2024
  17. Jan 08, 2024
  18. Dec 20, 2023
  19. Dec 18, 2023
    • Sietze van Buuren's avatar
      Add alignment argument to svg shortcode · 346ba732
      Sietze van Buuren authored and Walter Lozano's avatar Walter Lozano committed
      
      This commit adds an alignment argument to the svg short-code, in order to
      make it more flexible. This allows to e.g. align an svg image to the
      left. With this change, all svg shortcode input arguments are now named:
      - `src`: svg file location (required)
      - `alignment`: image alignment (optional, default: "center")
      
      The current (old) implementation uses one positional argument (the svg file
      location), whereas the (new) implementation in this commit uses two named
      arguments. It is not possible to keep the first positional argument and add one
      named argument, since Hugo does not allow to mix named and positional
      arguments. Therefore, this short-code is not backwards compatible and all
      existing svg short-code calls will have to be updated, when adopting this
      change!
      
      At least the first argument should be supplied as named argument. Thus, old code
      like:
      
      ```
      {{< svg "/path/to/svg-file" >}}
      ```
      
      should be replaced with
      
      ```
      {{< svg src="/path/to/svg-file" >}}
      ```
      
      or
      
      ```
      {{< svg src="/path/to/svg-file" alignment="left" >}}
      ```
      
      if one wants to override the default alignment.
      
      Signed-off-by: default avatarSietze van Buuren <Sietze.vanBuuren@de.bosch.com>
      346ba732
Loading