content: Miscellaneous edits

This commit is contained in:
Joe Mooring
2025-08-17 13:38:07 -07:00
committed by GitHub
parent b7c60ae0b8
commit 91fc34c58f
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ The `Round` method operates on TIME as an absolute duration since the [zero time
```go-html-template
{{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
{{ $d := time.ParseDuration "1h"}}
{{ $d := time.ParseDuration "1h" }}
{{ ($t.Round $d).Format "2006-01-02T15:04:05-00:00" }} → 2023-01-28T00:00:00-00:00
```
+1 -1
View File
@@ -13,7 +13,7 @@ The `Truncate` method operates on TIME as an absolute duration since the [zero t
```go-html-template
{{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
{{ $d := time.ParseDuration "1h"}}
{{ $d := time.ParseDuration "1h" }}
{{ ($t.Truncate $d).Format "2006-01-02T15:04:05-00:00" }} → 2023-01-27T23:00:00-00:00
```
@@ -3,4 +3,4 @@ title: raw string literal
reference: https://go.dev/ref/spec#String_literals
---
A _raw string literal_ is a character sequences between backticks, as in \`bar\`. Within the backticks, any character may appear except a backtick. Backslashes have no special meaning and the string may contain newlines. Carriage return characters (`\r`) inside raw string literals are discarded from the raw string value.
A _raw string literal_ is a character sequence between backticks, as in \`bar\`. Within the backticks, any character may appear except a backtick. Backslashes have no special meaning and the string may contain newlines. Carriage return characters (`\r`) inside raw string literals are discarded from the raw string value.
+1 -1
View File
@@ -1,4 +1,4 @@
# Do not delete. Required for layouts/shortcodes/list-pages-in-section.html.
# Do not delete. Required for layouts/_shortcodes/list-pages-in-section.html.
#
# When calling the list-pages-in-section shortcode, you can specify a page
# filter, and whether the pages in the filter should be included or excluded