From 85600e81b5c54aeeac3cd9d30db2d014d585f081 Mon Sep 17 00:00:00 2001 From: Arthur Le Meur Date: Thu, 4 Apr 2024 16:18:31 +0200 Subject: [PATCH] fix homepage display --- assets/sass/_custom.sass | 6 ++++- content/_index.md | 3 --- content/index.md | 34 -------------------------- layouts/_default/baseof.html | 3 ++- layouts/index.html | 47 ++++++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+), 39 deletions(-) delete mode 100644 content/index.md create mode 100644 layouts/index.html diff --git a/assets/sass/_custom.sass b/assets/sass/_custom.sass index 03fe740..7c6a19d 100644 --- a/assets/sass/_custom.sass +++ b/assets/sass/_custom.sass @@ -77,4 +77,8 @@ border-radius: 1.5rem width: fit-content padding: 5px 15px - margin: 30px auto \ No newline at end of file + margin: 30px auto + +.button_tally + padding: 0.2rem 0.75rem + line-height: 1 \ No newline at end of file diff --git a/content/_index.md b/content/_index.md index ab0d975..abc6cdb 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,9 +1,6 @@ --- title: "EDRlab members directory" -description: "Welcome to the EDRlab members directory!" -date: "2024-01-24" author: "EDRLab" -# layout: about tags: ["index"] --- diff --git a/content/index.md b/content/index.md deleted file mode 100644 index abc6cdb..0000000 --- a/content/index.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "EDRlab members directory" -author: "EDRLab" -tags: ["index"] ---- - - -Welcome to the EDRlab members directory! -
You can search or browse members list by professions, services provided and collaboration to EDRLab mains activities. - - -## Not yet a member? - -*The value returned by open-source and standards organizations is many multiples of a yearly membership cost, even for the most modest organization. Even being able to publish at scale regardless of the organizational size is riding on the community’s coat-tails. Presume if every publisher had its own distribution format, every bookstore had its own distribution channel, each with their own identifier and distribution methodology, you needed to produce a serape metadata file and develop reading software engines for every search site or library. Now consider the staff time that is saved because of things like EPUB, OPDS, ONIX, ISBN and the open-source Readium toolkits.* - -Consider [Becoming a member!](https://www.edrlab.org/become-a-member/). - -EDRLab is much more than a development laboratory: it is a community of practice for the publishing industry, in Europe and around the world. By becoming member of EDRLab you will: - -* Participate to the evolution of a real open ebook ecosystem (take it as a protection against the monopoly of proprietary platforms), -* Participate to the development of open-source software via the Readium project, -* Participate to the development of user-friendly Readium LCP DRM, especially useful for e-lending, -* Participate to the evolution of EPUB. Via EDRLab’s W3C membership: - * you’ll get feedback on what the W3C Publishing WG is working on, - * you’ll be able to present your ideas to the W3C Publishing WG, -* Participate to enhancements on ebook accessibility, -* Participate to EDRLab Working Groups (BDComicsManga, LCP evolutions …) and informative webinars, -* Provide strategic direction, new perspectives and your specific use cases by: - * giving advice on prospective open source projects and other undertakings of EDRLab that may be submitted to the membership for approval, - * participating to EDRLab Board of Director elections, - * running and serve on the EDRLab Board of Directors, -* Network, create business partnerships with other industry members, develop expert resource contracts, -* Attend the Digital Publishing Summit at discounted member rates. - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8f78998..91e9a9f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -30,7 +30,8 @@ {{- partialCached "scripts/google/tag-manager" (dict "noscript" true) }} {{- partial "header" . }}
- {{- block "main" . }}{{ end }} + {{ block "main" . }} + {{ end }}
{{- partialCached "icons" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..5de0e92 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,47 @@ +{{- define "main" }} +{{- $s := .Site.Params }} +{{- $p := .Params }} +{{- $scratch := newScratch }} +{{- if isset $p "image" }} + {{- $scratch.Set "image" $p.image }} +{{- else }} + {{ $scratch.Set "image" $s.fallBackOgImage }} +{{- end }} +{{- $image := $scratch.Get "image" }} +{{- $bg := absLangURL (path.Join "images" $image) }} +{{ $taxonomyObject := .Site.Taxonomies.active }} +
+
+

Current Members: {{ $taxonomyObject.Count "true" }}

+
+ {{- .Content }} + +
+ + {{- $showRelatedInArticle := true }} + {{- if eq $s.showRelatedInArticle false }} + {{- $showRelatedInArticle = false }} + {{- else if eq $p.showRelatedInArticle false }} + {{- $showRelatedInArticle = false }} + {{- end }} + {{- if ne $showRelatedInArticle false }} + {{- partial "related" . }} + {{- end }} + + {{- $showComments := true }} + {{- if eq $s.comments false }} + {{- $showComments = false }} + {{- else if eq $p.comments false }} + {{- $showComments = false }} + {{- end }} + {{- if ne $showComments false }} + {{- partial "comments" . }} + {{- end }} + {{- partial "i18nlist" . }} + +
+ {{- if ( ne $p.sidebar false ) }} + {{- partial "sidebar" . }} + {{ end }} +
+{{- end }}