Skip to content
Snippets Groups Projects
  1. May 10, 2021
    • Martyn Welch's avatar
      Remove deprecated usage of ".Page.URL" in theme · d6b86105
      Martyn Welch authored and Martyn Welch's avatar Martyn Welch committed
      
      The current theme uses ".URL" in a number of places that is resulting in
      the current warning message:
      
          Page.URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url
      
      Update the usage of this variable to ".Permalink" to stop the warning
      messages being produced.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      d6b86105
    • Martyn Welch's avatar
      Replace deprecated ".Page.Hugo" usage · 22a70d1a
      Martyn Welch authored and Martyn Welch's avatar Martyn Welch committed
      
      The variable ".Hugo" has been deprecated syntax since v0.55. We get a
      warning about this each time the site is built:
      
          Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function.
      
      Tweak the theme to utilise the correct new syntax to remove the errors
      making it clearer what is happening when something goes wrong.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      22a70d1a
    • Martyn Welch's avatar
      Fixup "can't evaluate field Count in type string" · b783a244
      Martyn Welch authored and Martyn Welch's avatar Martyn Welch committed
      
      After moving to the latest version of Hugo, we are seeing lots of warnings
      as follows:
      
      WARN 2021/03/08 10:11:09 Failed to get translated string for language "en" and ID "postedOnDate": template: :1:13: executing "" at <.Count>: can't evaluate field Count in type string
      
      The fix is trivial, so implement to save these messages from obscuring
      actual issues.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      b783a244
    • Martyn Welch's avatar
      Add basic run script, update used docker image and document · 8be11b00
      Martyn Welch authored and Martyn Welch's avatar Martyn Welch committed
      
      We have been using an old version of hugo in the gitlab registry as the
      latest version available at the time this was setup had a show stopping
      bug. Update the version of hugo used and switch to the docker image
      recommended by the Hugo project as this is potentially easier for those
      behind restrictive proxies to access.
      
      Provide a helper script to also make it easier to run Hugo from docker as
      a developer and document it. Use the `--rm` option to cause docker to
      remove the container once it's exited to avoid them building up and add
      `--security-opt label=disable` for those using an SELinux enabled
      distribution.
      
      Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
      8be11b00
  2. May 06, 2021
  3. May 04, 2021
  4. May 03, 2021
  5. Apr 29, 2021
  6. Apr 28, 2021
  7. Apr 27, 2021
  8. Apr 26, 2021
  9. Apr 23, 2021
  10. Apr 22, 2021
  11. Apr 19, 2021
  12. Apr 16, 2021
  13. Apr 15, 2021
  14. Apr 14, 2021
Loading