adding more useful shortcodes, and trying out some builtin ones

This commit is contained in:
Greg Gauthier 2021-04-10 10:56:44 +01:00
parent 57bfa67404
commit 07bf88f0c8
10 changed files with 19 additions and 9 deletions

View File

@ -53,4 +53,6 @@ paginate = 10
locals = "https://exitingthecave.locals.com/" locals = "https://exitingthecave.locals.com/"
gab = "https://gab.com/exitingthecave/" gab = "https://gab.com/exitingthecave/"
[markup]
[markup.goldmark.renderer]
unsafe= true

View File

@ -8,7 +8,7 @@ draft: false
Here's a snippet of Go. Here's a snippet of Go.
```go {{< highlight go >}}
func str2int(strnum string) int { func str2int(strnum string) int {
i, err := strconv.Atoi(strnum) i, err := strconv.Atoi(strnum)
if err != nil { if err != nil {
@ -16,7 +16,7 @@ func str2int(strnum string) int {
} }
return i return i
} }
``` {{< /highlight >}}
Here's a snippet of Java Springboot. Here's a snippet of Java Springboot.

View File

@ -4,4 +4,6 @@ date: 2021-04-06T19:59:40+01:00
draft: true draft: true
--- ---
When I was cutting my teeth in tech, in the late 1980's, computer technology was just entering its adolescence. Desktop computers were just beginning to become a household item, and many businesses were just beginning to see the fruits of long-term investments in enterprise scale infrastructure, they'd made over the previous ten or fifteen years. When I was cutting my teeth as a new entry into the tech workforce in the late 1980's, computer technology was just entering its adolescence. Desktop computers were just beginning to become a household item, and many businesses were just beginning to see some serious fruits of long-term investments in enterprise scale infrastructure that they'd made over the previous ten or fifteen years. Cellphone technology was limited to hardware engineers and high value businesses, and the idea of a ubiquitous, always-on network which linked every computing device on the planet, was still mostly an aspirational piece of science fiction.
Futurists in the late eighties loved to ramble on about four day work weeks, paperless offices, online education, and computers in every home that would serve as portals to university-level knowledge, and electronic butlers. Much of this has eventually come true. Offices are largely paperless now. Computers are not only in every home, but in every pocket, briefcase, car, and almost every home appliance.

View File

@ -0,0 +1 @@
<mark>{{ with .Get 0 }}{{.}}{{end}}</mark>

View File

@ -0,0 +1 @@
<a href="{{ .Get "url" }}" target="_blank">{{ with .Get "title" }}{{.}}{{else}}{{.Get "url"}}{{end}}</a>

View File

@ -0,0 +1 @@
<div class="code_output">Output</div>

View File

@ -0,0 +1 @@
<span {{ with .Get "style"}} style="{{ . | safeCSS }}"{{ end }}>{{ .Get "text" }}</span>

View File

@ -0,0 +1 @@
<strike>{{ with .Get 0 }}{{.}}{{end}}</strike>

View File

@ -0,0 +1 @@
{{ now.Format "2006" }}