#47 use markdown to go faster
Merged 8 months ago by jibecfed. Opened 8 months ago by jibecfed.

file modified
+14 -14
@@ -115,7 +115,7 @@ 

      for language_file in sorted(languages):

          language = language_file[: -len(".json")]

          stats_file = os.path.join(langs_stats, language_file)

-         destination_file = os.path.join(static_langs_folder, f"{language}.adoc")

+         destination_file = os.path.join(static_langs_folder, f"{language}.md")

  

          with open(stats_file, "r") as read_file:

              content = json.load(read_file)
@@ -135,7 +135,7 @@ 

      ]

      for package in sorted(packages):

          stats_file = os.path.join(packages_stats, package, "stats.json")

-         destination_file = os.path.join(static_pkgs_folder, f"{package}.adoc")

+         destination_file = os.path.join(static_pkgs_folder, f"{package}.md")

  

          with open(stats_file, "r") as read_file:

              content = json.load(read_file)
@@ -143,23 +143,23 @@ 

          generate_static_pages_packages(args.results, package, content, destination_file)

  

      log.info("Generating indexes")

-     package_statistics_file = os.path.join(static_folder, "_index.adoc")

+     package_statistics_file = os.path.join(static_folder, "_index.md")

      generate_release_index(args.results, package_statistics_file, distribution_stats)

  

-     package_statistics_file = os.path.join(static_langs_folder, "_index.adoc")

+     package_statistics_file = os.path.join(static_langs_folder, "_index.md")

      generate_language_index(args.results, package_statistics_file)

  

-     package_statistics_file = os.path.join(static_pkgs_folder, "_index.adoc")

+     package_statistics_file = os.path.join(static_pkgs_folder, "_index.md")

      generate_package_index(args.results, package_statistics_file)

  

      for code in cldr_territories.keys():

          # prevent containers and alternative names to be included

          if code in cldr_territories_info.keys():

-             package_statistics_file = os.path.join(static_territories_folder, code, "_index.adoc")

+             package_statistics_file = os.path.join(static_territories_folder, code, "_index.md")

              generate_territory_index(package_statistics_file, cldr_territories[code], code, cldr_territories_info.get(code, {}), cldr_version)

  

      log.info("Copy translation memories")

-     languages = [

+     """languages = [

          f for f in os.listdir(tm_folder) if os.path.isfile(os.path.join(tm_folder, f))

      ]

      for lang in languages:
@@ -167,7 +167,7 @@ 

              shutil.copyfile(

                  os.path.join(tm_folder, lang), os.path.join(static_tm_folder, lang)

              )

- 

+ """

      log.info("done")

  

  
@@ -195,7 +195,7 @@ 

      if len(territories) > 0:

          data["territories"] = territories

  

-     apply_jinja_template(data, destination_file, "language.adoc")

+     apply_jinja_template(data, destination_file, "language.md")

  

  

  def generate_static_pages_packages(release: str, package: str, statistics: dict, destination_file: str) -> None:
@@ -223,7 +223,7 @@ 

          path = f"./results/{release}/packages/{package}/"

          data["stats"]["languages"][lang]["filename"] = data["stats"]["languages"][lang]["filename"].replace(path, " ")

  

-     apply_jinja_template(data, destination_file, "package.adoc")

+     apply_jinja_template(data, destination_file, "package.md")

  

  

  def generate_release_index(release: str, destination_file: str, data: dict) -> None:
@@ -232,7 +232,7 @@ 

      data["release"] = release

      data["now"] = datetime.datetime.utcnow()

  

-     apply_jinja_template(data, destination_file, "_index.release.adoc")

+     apply_jinja_template(data, destination_file, "_index.release.md")

  

  

  def generate_language_index(release: str, destination_file: str) -> None:
@@ -242,7 +242,7 @@ 

      data["release"] = release

      data["now"] = datetime.datetime.utcnow()

  

-     apply_jinja_template(data, destination_file, "_index.language.adoc")

+     apply_jinja_template(data, destination_file, "_index.language.md")

  

  

  def generate_package_index(distribution: str, destination_file: str) -> None:
@@ -252,7 +252,7 @@ 

      data["distribution"] = distribution

      data["now"] = datetime.datetime.utcnow()

  

-     apply_jinja_template(data, destination_file, "_index.package.adoc")

+     apply_jinja_template(data, destination_file, "_index.package.md")

  

  

  def generate_territory_index(destination_file: str, name: list[str], code: str, data: dict, cldr_version: str) -> None:
@@ -262,7 +262,7 @@ 

      data["code"] = code

      data["cldr_version"] = cldr_version

  

-     apply_jinja_template(data, destination_file, "_index.territory.adoc")

+     apply_jinja_template(data, destination_file, "_index.territory.md")

  

  

  def store_json_file(content: dict, destination_file: str) -> None:

templates/_index.language.md templates/_index.language.adoc
file renamed
file was moved with no change to the file
templates/_index.package.md templates/_index.package.adoc
file renamed
file was moved with no change to the file
templates/_index.release.md templates/_index.release.adoc
file renamed
+5 -5
@@ -4,16 +4,16 @@ 

  layout: "release"

  ---

  

- Fedora {{ release }}::

+ Fedora {{ release }}:

  * contains {{ packages_count }} packages,

  * we identified {{ packages_detected_count }} packages with translations files,

  * it represents {{ files_detected_count }} translations files (po).

  

- What we were able to process::

+ What we were able to process:

  * {{ packages_processed_count }} packages,

  * {{ files_processed_count }} translation files containing {{ totalsourcewords }} words to translate,

  * {{ languages_processed_count }} languages.

  

- Why such gaps?::

- . File reading was not possible (encoding or format issue),

- . Language detection failed (missing information). 

\ No newline at end of file

+ Why such gaps?

+ * File reading was not possible (encoding or format issue),

+ * Language detection failed (missing information). 

\ No newline at end of file

templates/_index.territory.md templates/_index.territory.adoc
file renamed
file was moved with no change to the file
templates/language.md templates/language.adoc
file renamed
+15 -21
@@ -27,27 +27,21 @@ 

  * Translated words: {{ translatedsourcewords }}

  

  Download:

- 

- * link:{{ "{{% resource url=" }}"{{ files["compendium"]["url"] }}" {{ "%}}" }}[{{ lang_code }} compendium ({{ files["compendium"]["size"]|filesizeformat() }})] (aggregation of all strings found in po files)

- * link:{{ "{{% resource url=" }}"{{ files["terminology"]["url"] }}" {{ "%}}" }}[{{ lang_code }} terminology ({{ files["terminology"]["size"]|filesizeformat() }})] see https://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poterminology.html[poterminology]

- * link:{{ "{{% resource url=" }}"{{ files["tmx"]["url"] }}" {{ "%}}" }}[{{ lang_code }} translation memory ({{ files["tmx"]["size"]|filesizeformat() }})] see https://en.wikipedia.org/wiki/Translation_Memory_eXchange[tmx]

- * link:{{ "{{% resource url=" }}"{{ files["csv"]["url"] }}" {{ "%}}" }}[{{ lang_code }} generated stats ({{ files["csv"]["size"]|filesizeformat() }})]

+ * [{{ lang_code }} compendium ({{ files["compendium"]["size"]|filesizeformat() }})]({{ "{{% resource url=" }}"{{ files["compendium"]["url"] }}" {{ "%}}" }}) (aggregation of all strings found in po files)

+ * [{{ lang_code }} terminology ({{ files["terminology"]["size"]|filesizeformat() }})]({{ "{{% resource url=" }}"{{ files["terminology"]["url"] }}" {{ "%}}" }}) see [poterminology](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poterminology.html)

+ * [{{ lang_code }} translation memory ({{ files["tmx"]["size"]|filesizeformat() }})]({{ "{{% resource url=" }}"{{ files["tmx"]["url"] }}" {{ "%}}" }}) see [tmx](https://en.wikipedia.org/wiki/Translation_Memory_eXchange)

+ * [{{ lang_code }} generated stats ({{ files["csv"]["size"]|filesizeformat() }})]({{ "{{% resource url=" }}"{{ files["csv"]["url"] }}" {{ "%}}" }})

  

  Packages:

  

- [cols="1a,1,1,1,3", options="header"]

- |===

- | Name

- | Translated words

- | Total source words

- | Progress (%)

- | Language teams

- 

- {% for package in packages -%}

- | link:{{ '{{' }}< ref "/{{ results }}/package/{{ package }}.adoc" >{{ '}}' }}[{{ package }}]

- >| {{ packages[package].translatedsourcewords }}

- >| {{ packages[package].totalsourcewordssum }}

- >| {{ '{:.1f}'.format(packages[package].progress) }}

- | {{ packages[package].team }}

- {% endfor %}

- |=== 

\ No newline at end of file

+ | Name |  Translated words | Total source words | Progress (%) | Language teams |

+ |------|------------------:|-------------------:|-------------:|----------------|

+ {% for package in packages %}

+ {%- set output = " | [" ~ package ~ "]({{< ref \"/" ~ results ~ "/package/" ~ package ~ ".md\" >}})" -%}

+ {%- set output = output ~ " | " ~ packages[package].translatedsourcewords -%}

+ {%- set output = output ~ " | " ~ packages[package].totalsourcewordssum -%}

+ {%- set output = output ~ " | " ~ '{:.1f}'.format(packages[package].progress) -%}

+ {%- set output = output ~ " | " ~ packages[package].team -%}

+ {%- set output = output ~ " | " -%}

+ {{ output }}

+ {% endfor -%} 

\ No newline at end of file

file removed
-30
@@ -1,30 +0,0 @@ 

- ---

- title: "{{ package }}"

- date: {{ now }}

- started_languages: {{ started_languages }}

- no_languages: {{ no_languages }}

- ---

- The package {{ package }}:

- 

- * represents {{ totalsourcewords }} source words to be translated,

- * is translated into {{ stats.languages|length }} languages in Fedora {{ results }},

- * contains {{ no_languages }} files for which no languages could be deducted.

- 

- [cols="1a,1,1,1,3", options="header"]

- |===

- | Language

- | Translated words

- | Total source words

- | Progress (%)

- | Files

- 

- {% for stat in stats.languages|sort -%}

- | link:{{ '{{' }}< ref "/{{ results }}/language/{{ stat }}.adoc" >{{ '}}' }}[{{ stat }}]

- >| {{ stats.languages[stat].translatedsourcewords }}

- >| {{ stats.languages[stat].totalsourcewordssum }}

- >| {{ '{:.1f}'.format(stats.languages[stat].progress) }}

- | {{ stats.languages[stat].filename }}

- 

- {% endfor %}

- 

- |===

file added
+23
@@ -0,0 +1,23 @@ 

+ ---

+ title: "{{ package }}"

+ date: {{ now }}

+ started_languages: {{ started_languages }}

+ no_languages: {{ no_languages }}

+ ---

+ The package {{ package }}:

+ 

+ * represents {{ totalsourcewords }} source words to be translated,

+ * is translated into {{ stats.languages|length }} languages in Fedora {{ results }},

+ * contains {{ no_languages }} files for which no languages could be deducted.

+ 

+ | Language | Translated words | Total source words | Progress (%) | Files |

+ |----------|-----------------:|-------------------:|-------------:|-------|

+ {% for stat in stats.languages|sort -%}

+ {%- set output = " | [" ~ stat ~ "]({{< ref \"/" ~ results ~ "/language/" ~ stat ~ ".md\" >}})" -%}

+ {%- set output = output ~ " | " ~ stats.languages[stat].translatedsourcewords -%}

+ {%- set output = output ~ " | " ~ stats.languages[stat].totalsourcewordssum -%}

+ {%- set output = output ~ " | " ~ '{:.1f}'.format(stats.languages[stat].progress) -%}

+ {%- set output = output ~ " | " ~ stats.languages[stat].filename -%}

+ {%- set output = output ~ " | " -%}

+ {{ output }}

+ {% endfor -%} 

\ No newline at end of file

file modified
+2 -12
@@ -9,17 +9,7 @@ 

  

  [Params]

  since = "2021"

+ favicon = "img/favicon.ico"

  

  [taxonomies]

- countries = "territories"

- 

- [security]

-   enableInlineShortcodes = false

-   [security.exec]

-     allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']

-     osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']

-   [security.funcs]

-     getenv = ['^HUGO_']

-   [security.http]

-     methods = ['(?i)GET|POST']

-     urls = ['.*']

+ countries = "territories" 

\ No newline at end of file

@@ -1,13 +1,13 @@ 

  <!DOCTYPE html>

  <html lang="{{ .Lang }}" itemscope itemtype="http://schema.org/WebPage">

    <head>

-     {{ partial "head.html" . }}

+     {{ partialCached "head.html" . (.Title | default .Site.Title) }}

    </head>

    <body>

-     {{ partial "nav.html" . }}

-     {{ block "header" . }}{{ partial "header.html" . }}{{ end }}

+     {{ partialCached "nav.html" . }}

+     {{ block "header" . }}{{ partialCached "header.html" . (.Title | default .Site.Title) }}{{ end }}

      {{ block "main" . }}{{ end }}

-     {{ partial "footer.html" . }}

+     {{ partialCached "footer.html" . }}

      {{ block "footer" . }}{{ end }}

    </body>

  </html>

@@ -1,53 +1,16 @@ 

-   {{ if eq .Type "page" }}

-     {{ partial "page_meta.html" . }}

-   {{ end }}

  <footer>

    <div class="container">

      <div class="row">

        <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">

-         <ul class="list-inline text-center footer-links">

-           {{ range .Site.Data.beautifulhugo.social.social_icons }}

-             {{- if isset $.Site.Author .id }}

-               <li>

-                 <a href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}">

-                   <span class="fa-stack fa-lg">

-                     <i class="fas fa-circle fa-stack-2x"></i>

-                     <i class="{{ .icon }} fa-stack-1x fa-inverse"></i>

-                   </span>

-                 </a>

-               </li>

-             {{- end -}}

-           {{ end }}

-           {{ if .Site.Params.rss }}

-           <li>

-             <a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="RSS">

-               <span class="fa-stack fa-lg">

-                 <i class="fas fa-circle fa-stack-2x"></i>

-                 <i class="fas fa-rss fa-stack-1x fa-inverse"></i>

-               </span>

-             </a>

-           </li>

-           {{ end }}

-         </ul>

          <p class="credits copyright text-muted">

-           &copy;

-           {{ if .Site.Params.since }}

-             {{ .Site.Params.since }} - {{ .Site.LastChange.Format "2006" }}

-           {{ else }}

-             {{ .Site.LastChange.Format "2006" }}

-           {{ end }}

+           &copy; {{ .Site.Params.since }} - {{ .Site.LastChange.Format "2006" }}

  

            &nbsp;&bull;&nbsp;<a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a> &nbsp;&bull;&nbsp; <a href="https://pagure.io/fedora-l10n/fedora-localization-statistics">Contribute!</a>

          <br />Content generation: {{ .Date | time.Format ":date_long" }} &nbsp;&bull;&nbsp; Website generation: {{ now.UTC | time.Format ":date_long" }}

          </p>

-         <!-- Please don't remove this, keep my open source work credited :) -->

-         <p class="credits theme-by text-muted">

-           {{ i18n "poweredBy" . | safeHTML }}

-         </p>

        </div>

      </div>

    </div>

  </footer>

  

- 

- {{- partial "footer_custom.html" . }}

+ {{- partialCached "footer_custom.html" . }}

@@ -1,41 +1,11 @@ 

- {{- if eq .Kind "taxonomyTerm" }}

-   {{- range $key, $value := .Data.Terms.ByCount }}

-     {{- $.Scratch.Add "most_used" (slice $value.Name) }}

-   {{- end }}

-   {{- if not ($.Scratch.Get "most_used") }}

-     {{- $description := printf "A full overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular | truncate 180 }}

-     {{- $.Scratch.Set "Description" $description }}

-   {{- else }}

-     {{- $description := printf "A full overview of all pages with %s, ordered by %s, such as: %s" .Data.Plural .Data.Singular ( delimit ( $.Scratch.Get "most_used" ) ", " ", and " ) | truncate 180 }}

-     {{- $.Scratch.Set "Description" $description }}

-   {{- end }}

- 

-   {{- $title := printf "Overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular }}

-   {{- $.Scratch.Set "Title" $title }}

- {{- else if eq .Kind "taxonomy" }}

-   {{- $description := printf "Overview of all pages with the %s #%s, such as: %s" .Data.Singular $.Title ( index .Pages 0).Title | truncate 160 }}

-   {{- $.Scratch.Set "Description" $description }}

- 

-   {{- $title := printf "Overview of all pages with the %s #%s" .Data.Singular $.Title }}

-   {{- $.Scratch.Set "Title" $title }}

- {{- else }}

-   {{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary ) }}

-   {{- $.Scratch.Set "Title" ( .Title | default .Site.Title ) }}

- {{- end }}

- 

    <meta charset="utf-8" />

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

- <!-- Site Title, Description, Author, and Favicon -->

- {{- with ($.Scratch.Get "Title") }}

-   <title>{{ . }} - {{ $.Site.Title }}</title>

- {{- end }}

- {{- with ($.Scratch.Get "Description") }}

+ <!-- Site Title, Description, and Favicon -->

+   <title>{{ .Title | default .Site.Title }} - {{ $.Site.Title }}</title>

+ {{- with .Description }}

    <meta name="description" content="{{ . }}">

  {{- end }}

- {{- with .Site.Author.name }}

-   <meta name="author" content="{{ . }}"/>

- {{- end }}

  {{- with .Site.Params.favicon }}

    <link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/>

  {{- end -}}
@@ -48,4 +18,4 @@ 

    <link rel="stylesheet" href="{{ "css/fonts.css" | absURL }}" />

    <link rel="stylesheet" href="{{ "css/bootstrap.min.css" | absURL }}" />

  

- {{- partial "head_custom.html" . }} 

\ No newline at end of file

+ {{- partialCached "head_custom.html" . }} 

\ No newline at end of file

@@ -1,85 +1,12 @@ 

- {{ if .IsHome }}

-   {{ if .Site.Params.homeTitle }}{{ $.Scratch.Set "title" .Site.Params.homeTitle }}{{ else }}{{ $.Scratch.Set "title" .Site.Title }}{{ end }}

-   {{ if .Site.Params.subtitle }}{{ $.Scratch.Set "subtitle" .Site.Params.subtitle }}{{ end }}

-   {{ if .Site.Params.bigimg }}{{ $.Scratch.Set "bigimg" .Site.Params.bigimg }}{{ end }}

- {{ else }}

-   {{ $.Scratch.Set "title" .Title }}

-   {{ if .Params.subtitle }}{{ $.Scratch.Set "subtitle" .Params.subtitle }}{{ end }}

-   {{ if .Params.bigimg }}{{ $.Scratch.Set "bigimg" .Params.bigimg }}{{ end }}

- {{ end }}

- {{ $bigimg := $.Scratch.Get "bigimg" }}

- {{ $title := $.Scratch.Get "title" }}

- {{ $subtitle := $.Scratch.Get "subtitle" }}

- 

- {{ if or $bigimg $title }}

-   {{ if $bigimg }}

-     <div id="header-big-imgs" data-num-img={{len $bigimg}} 

-       {{range $i, $img := $bigimg}}

-          {{ if (fileExists $img.src)}} 

-           data-img-src-{{add $i 1}}="{{$img.src | absURL }}" 

-          {{else}}

-           data-img-src-{{add $i 1}}="{{$img.src}}" 

-          {{end}}

-          {{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}

-       {{end}}></div>

-   {{ end }}

- 

-   <header class="header-section {{ if $bigimg }}has-img{{ end }}">

-     {{ if $bigimg }}

-       <div class="intro-header big-img">

-         {{ $subtitle := $.Scratch.Get "subtitle" }}

-         <div class="container">

-           <div class="row">

-             <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">

-               <div class="{{ .Type }}-heading">

-                 <h1>{{ with $.Scratch.Get "title" }}{{.}}{{ else }}<br/>{{ end }}</h1>

-                   {{ if $subtitle }}

-                     {{ if eq .Type "page" }}

-                       <hr class="small">

-                       <span class="{{ .Type }}-subheading">{{ $subtitle }}</span>

-                     {{ else }}

-                       <h2 class="{{ .Type }}-subheading">{{ $subtitle }}</h2>

-                     {{ end }}

-                   {{ end }}

-                   {{ if eq .Type "post" }}

-                     {{ partial "post_meta.html" . }}

-                   {{ end }}

-               </div>

-             </div>

-           </div>

-         </div>

-         <span class="img-desc" style="display: inline;"></span>

-       </div>

-     {{end}}

-     <div class="intro-header no-img">

-       <div class="container">

-         <div class="row">

-           <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">

-             <div class="{{ .Type }}-heading">

-               {{ if eq .Type "list" }}

-                 <h1>{{ if .Data.Singular }}#{{ end }}{{ .Title }}</h1>

-               {{ else }}

-                 <h1>{{ with $title }}{{.}}{{ else }}<br/>{{ end }}</h1>

-               {{ end }}

-               {{ if ne .Type "post" }}

-                 <hr class="small">

-               {{ end }}

-               {{ if $subtitle }}

-                 {{ if eq .Type "page" }}

-                   <span class="{{ .Type }}-subheading">{{ $subtitle }}</span>

-                 {{ else }}

-                   <h2 class="{{ .Type }}-subheading">{{ $subtitle }}</h2>

-                 {{ end }}

-               {{ end }}

-               {{ if eq .Type "post" }}

-                 {{ partial "post_meta.html" . }}

-               {{ end }}

-             </div>

-           </div>

+ <header class="header-section">

+   <div class="intro-header no-img">

+     <div class="container">

+       <div class="row">

+         <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">

+             <h1>{{ .Title | default .Site.Title }}</h1>

+             <hr class="small">

          </div>

        </div>

      </div>

-   </header>

- {{ else }}

-   <div class="intro-header"></div>

- {{ end }}

+   </div>

+ </header> 

\ No newline at end of file

@@ -1,8 +0,0 @@ 

- <div class="page-meta">

-   {{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }}

-   {{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }}

-   {{ if ne $datestr $lastmodstr }}

-     {{ $lastmodstr | i18n "lastModified"  }}

-   {{ end }}

- </div>

- 

@@ -1,29 +0,0 @@ 

- <span class="post-meta">

-   {{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }}

-   {{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }}

-   <i class="fas fa-calendar"></i>&nbsp;{{ $datestr | i18n "postedOnDate"}}

-   {{ if ne $datestr $lastmodstr }}

-     &nbsp;{{ $lastmodstr | i18n "lastModified"  }}

-   {{ end }}

-   {{ if .Site.Params.readingTime }}

-     &nbsp;|&nbsp;<i class="fas fa-clock"></i>&nbsp;{{ i18n "readingTime"}}{{ .ReadingTime }}&nbsp;{{ i18n "readTime" }}

-   {{ end }}

-   {{ if .Site.Params.wordCount }}

-     &nbsp;|&nbsp;<i class="fas fa-book"></i>&nbsp;{{ .WordCount }}&nbsp;{{ i18n "words" }}

-   {{ end }}

-   {{ if not .Site.Params.hideAuthor }}

-     {{ if .Params.author }}

-       &nbsp;|&nbsp;<i class="fas fa-user"></i>&nbsp;{{ .Params.author | safeHTML }}

-     {{ else }}

-       &nbsp;|&nbsp;<i class="fas fa-user"></i>&nbsp;{{ .Site.Author.name | safeHTML }}

-     {{ end }}

-   {{ end }}

-   {{ if .IsTranslated -}}

-     {{- $sortedTranslations := sort .Translations "Site.Language.Weight" -}}

-     {{- $links := apply $sortedTranslations "partial" "translation_link.html" "." -}}

-     {{- $cleanLinks := apply $links "chomp" "." -}}

-     {{- $linksOutput := delimit $cleanLinks (i18n "translationsSeparator") -}}

-     &nbsp;&bull;&nbsp;{{ i18n "translationsLabel" }}{{ $linksOutput }}

-   {{- end }}

- </span>

- 

@@ -1,24 +1,8 @@ 

  <article class="post-preview">

      <a href="{{ .Permalink }}">

          <h2 class="post-title">{{ .Title }}</h2>

-         {{ if .Params.subtitle }}

-         <h3 class="post-subtitle">

-             {{ .Params.subtitle }}

-         </h3>

-         {{ end }}

-         {{ if .Params.image }}

-         <img src="{{ .Params.image }}" alt="{{ .Title }}" class="img-title" />

-         {{ end }}

-         {{ if .Params.video }}

-         <video loop autoplay muted playsinline class="img-title">

-             <source src="{{ .Params.video }}">

-         </video>

-         {{ end }}

      </a>

  

-     <p class="post-meta">

-         {{ partial "post_meta.html" . }}

-     </p>

      <div class="post-entry">

          {{ if .Truncated }}

          {{ .Summary }}

I tried with caching, but didn't bring any significant progress
the only relevant message on Hugo forum were this: https://pagure.io/fedora-l10n/fedora-localization-statistics/pull-request/46#request_diff
the hack works, but first generation isn't impacted, since I update content using scripts, the real time refresh is not useful

even if I like asciidoctor better, let's be pragmatic

Pull-Request has been merged by jibecfed

8 months ago