{* SPDX-FileCopyrightText: © 2025 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/forms" }} {{- block title() -}}Extract{{- end -}} {{ block mainContent() }}
{{ if .Form.Get("url").String() != "" && .Form.Get("url").Errors() }} {{ end }}
{{- if .Result != nil -}}

Info

DocumentType{{ .Result.DocumentType }}
Title{{ .Result.Title }}
Description{{ .Result.Description }}
Authors {{- if isset(.Result.Authors) -}}
    {{- range .Result.Authors -}}
  • {{ . }}
  • {{- end -}}
{{- end -}}
Lang{{ .Result.Lang }}
TextDirection{{ .Result.TextDirection }}
Date{{ isset(.Result.Date) ? .Result.Date : "" }}
SiteName{{ .Result.SiteName }}
Site{{ .Result.Site }}
Domain{{ .Result.Domain }}
{{- if isset(.Result.Images["thumbnail"]) -}} {{- end -}}
{{- if .Result.DocumentType == "photo" && isset(.Result.Images["image"]) -}}

{{- end -}}
{{- unsafeWrite(.HTML) -}}
{{- range .Result.Logs }} {{ . }} {{- end -}}
{{- if len(.Result.Errors) > 0 -}}

Errors

{{- range .Result.Errors -}} {{- end -}}
{{ . }}
{{- end -}}

Meta

{{- range k, v := orderMap(.Result.Meta) -}} {{- end -}}
{{ k }} {{ v|json }}

Properties

{{- range k, v := orderMap(.Result.Properties) -}} {{- end -}}
{{ k }}
{{ v|json(true) }}
{{- end -}} {{ end }}