Skip to content

Instantly share code, notes, and snippets.

@asonas
Created September 3, 2023 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asonas/d82c0eddcbba90cc451acdf0857b8083 to your computer and use it in GitHub Desktop.
Save asonas/d82c0eddcbba90cc451acdf0857b8083 to your computer and use it in GitHub Desktop.
{{ $year := currentTime.UTC.Year }}
{{ $month := printf "%02d" (toInt currentTime.UTC.Month ) }}
{{ $day := printf "%02d" currentTime.UTC.Day }}
{{ $yearMonth := (joinStr "" "[" (toString $year) $month "]" ) }}
{{ $date := (joinStr "" "[" $month $day "]" ) }}
{{ $nichi := (joinStr "" "[" currentTime.UTC.Day "日" "]" ) }}
{{ $body := joinStr " " $yearMonth $date $nichi }}
https://scrapbox.io/sub/{{$year}}/{{$month}}/{{$day}}?body={{ urlescape $body }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment