removes some unused code that was just laying around

This commit is contained in:
Drew
2025-04-07 15:57:53 -06:00
parent dc75eaa4e7
commit 84cf190a9c
3 changed files with 4 additions and 54 deletions

View File

@ -1,25 +0,0 @@
{{/* Partial: create_sigil.html */}}
{{- $input := . -}} <!-- The input string will be passed into the partial -->
{{- $vowels := "aeiouAEIOU" -}} <!-- List of vowels to remove -->
{{- $seen := dict -}} <!-- Dictionary to track characters we've already encountered -->
{{- $output := "" -}} <!-- Variable to store the resulting sigil -->
{{- $chars := split (replaceRE "[^a-zA-Z]" "" $input) "" -}} <!-- Remove non-alphabetic characters and split the input string into a slice of characters -->
{{- /* Step 1: Remove vowels */ -}}
{{- range $i, $char := $chars -}}
{{- if not (in $vowels $char) -}}
{{- /* Step 2: Remove repeating letters */ -}}
{{- if not (index $seen $char) -}}
{{- $seen = merge $seen (dict $char true) -}}
{{- $output = printf "%s%s" $output $char -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- $output = upper $output -}}
{{ $output = split $output "" }}
{{ $output = apply $output "printf" "%#x" "." }}
{{ $output = apply $output "int" "." }}
{{- $output -}}<br>

View File

@ -1,12 +0,0 @@
{{ define "main" }}
<h1 class="text-2xl font-bold">Topic: {{ .Title }}</h1>
<ul class="mt-4 space-y-4">
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}" class="text-lg font-semibold hover:underline">
{{ .Title }}
</a>
</li>
{{ end }}
</ul>
{{ end }}