Skip to content

Instantly share code, notes, and snippets.

View chrisallmark's full-sized avatar

Chris Allmark chrisallmark

View GitHub Profile
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry
namespace: kube-system
spec:
replicas: 1
selector:
app: kube-registry
template:
@chrisallmark
chrisallmark / loremipsum.html
Last active December 30, 2020 21:50
Lorem IpsumSshortcode for Hugo
{{- $paragraphs := .Get "paragraphs" | default (.Get 0) | default 1 -}}
{{- $lines := .Get "lines" | default (.Get 1) | default (index (shuffle (seq 1 4)) 0) -}}
{{- $loremipsum := slice "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." -}}
{{- range seq $paragraphs}}
<p class="loremipsum">
{{- range $index := seq $lines -}}
{{ index $loremipsum (sub $index 1) }}&nbsp;
{{- end -}}
</p>
{{- $loremipsum = shuffle $loremipsum -}}