diff --git a/i18n/en.json b/i18n/en.json index 65f1a38..00a3412 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2,6 +2,9 @@ "worksOn": { "other": "Works on: " }, + "availableOn": { + "other": "Available on " + }, "status": { "other": "Status: " }, @@ -13,6 +16,12 @@ }, "translated": { "other": "Translated in: " + }, + "en": { + "other": "English" + }, + "fr": { + "other": "French" } } diff --git a/i18n/fr.json b/i18n/fr.json index afd9ddd..4c741a1 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -2,6 +2,9 @@ "worksOn": { "other": "Marche sur : " }, + "availableOn": { + "other": "Disponible sur " + }, "status": { "other": "Status : " }, @@ -13,6 +16,12 @@ }, "translated": { "other": "Traduit en : " + }, + "en": { + "other": "English" + }, + "fr": { + "other": "French" } } diff --git a/layouts/_default/app.html b/layouts/_default/app.html new file mode 100644 index 0000000..0094f0f --- /dev/null +++ b/layouts/_default/app.html @@ -0,0 +1,44 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{ partial "section-app-header.html" (dict "Data" .Params.SectionHeader "Site" .Site) }} +
+ +
+

{{ .Params.About.Title }}

+

{{ .Params.About.Content | markdownify }}

+
+ + + {{ range .Params.Sections }} +
+ {{ if eq .Type "text|image" }} +
+ {{ .Content | markdownify }} +
+
+ +
+ {{ else if eq .Type "image|text" }} +
+ +
+
+ {{ .Content | markdownify }} +
+ {{ else if eq .Type "text-image" }} +
+ {{ .Content | markdownify }} + +
+ {{ end }} +
+
+ {{ end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/apps-list.html b/layouts/apps-list.html new file mode 100644 index 0000000..9cd0099 --- /dev/null +++ b/layouts/apps-list.html @@ -0,0 +1,31 @@ +{{ define "main" }} + {{ partial "section1.html" (dict "Image" "/img/app0.png" "Content" .Content) }} +
+ {{ $site := .Site }} + {{ range .Site.Data.list }} + {{ $index := . }} + {{ $data := index $site.Data $site.Language.Lang }} + {{ with index $data.apps $index }} +
+
+
+

  {{ .name }}

+

{{ .description }}

+

{{ i18n "status" }} {{ .status }}

+

{{ i18n "worksOn" }}  + {{ range .platforms }}{{ . }}{{ end }} +

+

{{ i18n "translated" }}  + {{ range .translated }}{{ i18n . }}{{ end }} +

+ +
+
+
+ {{ end }} + {{ end }} +
+{{ end }} + diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index de9d464..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,4 +0,0 @@ -{{ define "main" }} -
-

Test

-{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0a6b5ff..de1a370 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -13,7 +13,7 @@
{{ .Site.Copyright }}
-
+
{{ .Site.Params.usingTheme }} Omegamma
{{ .Site.Params.poweredBy }} Hugo
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index eb85389..8002e30 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -48,7 +48,7 @@
  • - {{ i18n "language" 1 }} + {{ i18n "language" }}