Monorepo for Tangled tangled.org

appview: templates/repo: inline article->pre to remove whitespace on render

authored by brookjeynes.dev and committed by Tangled 974594d7 a2c07c89

Changed files
+6 -11
appview
pages
templates
repo
+6 -11
appview/pages/templates/repo/index.html
··· 318 318 {{ end }} 319 319 320 320 {{ define "repoAfter" }} 321 - {{- if .HTMLReadme }} 321 + {{- if .HTMLReadme -}} 322 322 <section 323 323 class="p-6 mt-4 rounded-br rounded-bl bg-white dark:bg-gray-800 dark:text-white drop-shadow-sm w-full mx-auto overflow-auto {{ if not .Raw }} 324 324 prose dark:prose-invert dark:[&_pre]:bg-gray-900 ··· 326 326 dark:[&_pre]:border dark:[&_pre]:border-gray-700 327 327 {{ end }}" 328 328 > 329 - <article class="{{ if .Raw }}whitespace-pre{{ end }}"> 330 - {{ if .Raw }} 331 - <pre 332 - class="dark:bg-gray-900 dark:text-gray-200 dark:border dark:border-gray-700 dark:p-4 dark:rounded" 333 - > 334 - {{ .HTMLReadme }}</pre 335 - > 336 - {{ else }} 329 + <article class="{{ if .Raw }}whitespace-pre{{ end }}">{{- if .Raw -}}<pre class="dark:bg-gray-900 dark:text-gray-200 dark:border dark:border-gray-700 dark:p-4 dark:rounded"> 330 + {{- .HTMLReadme -}} 331 + </pre> 332 + {{- else -}} 337 333 {{ .HTMLReadme }} 338 - {{ end }} 339 - </article> 334 + {{- end -}}</article> 340 335 </section> 341 336 {{- end -}} 342 337