Skip to content
Snippets Groups Projects
  1. Feb 28, 2024
  2. Feb 27, 2024
  3. Feb 26, 2024
  4. Feb 23, 2024
  5. Feb 22, 2024
  6. Feb 13, 2024
  7. Jan 30, 2024
  8. Jan 25, 2024
  9. 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
  10. Jan 12, 2024
  11. Jan 08, 2024
  12. Dec 20, 2023
  13. 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
  14. Dec 14, 2023
  15. Dec 11, 2023
    • Sietze van Buuren's avatar
      Add narrow page option · 5f93ef05
      Sietze van Buuren authored
      
      Many pages feature a lot of text, which becomes cumbersome to read on
      maximized browser windows on smaller screens (< 1920x1080). To improve
      readability this commit introduces front-matter parameter to reduce the
      page's text width to max. 800px. Tables and images are exlucded and not
      narrowed to max. 800px to avoid problems.
      
      The feature can be enabled by adding `isNarrowPage = true` to a page's
      front matter.
      
      Signed-off-by: default avatarSietze van Buuren <Sietze.vanBuuren@de.bosch.com>
      5f93ef05
  16. Dec 07, 2023
  17. Dec 05, 2023
  18. Nov 30, 2023
  19. Nov 23, 2023
  20. Nov 20, 2023
  21. Oct 16, 2023
  22. Oct 05, 2023
  23. Sep 14, 2023
  24. Sep 07, 2023
Loading