From f59d0138698a8d4b7dced0b4e53721e8e7f7414e Mon Sep 17 00:00:00 2001 From: Laurens Date: Wed, 1 May 2024 16:45:28 +0200 Subject: [PATCH] read more button to text --- assets/scss/custom.scss | 7 ++++- hugo_stats.json | 3 +- layouts/index.html | 19 ++++++------ public/css/style.css | 12 +++----- public/index.html | 65 ++++++++++++++++++++++------------------- 5 files changed, 57 insertions(+), 49 deletions(-) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 2d0a57f9..31224301 100755 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -72,4 +72,9 @@ margin-right: 10px; max-width: 100px; /* Adjust as needed */ max-height: 100px; /* Adjust as needed */ - } \ No newline at end of file + } + + .read-more-link { + color: #FF6E00; /* Use the variable defined in theme.json */ + } + \ No newline at end of file diff --git a/hugo_stats.json b/hugo_stats.json index 52ff998e..18703106 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -162,7 +162,6 @@ "md:col-8", "md:col-9", "md:hidden", - "md:order-1", "md:order-2", "ml-2", "ml-4", @@ -199,6 +198,7 @@ "pl-2", "pr-5", "pr-8", + "primary", "pt-14", "pt-7", "px-2", @@ -209,6 +209,7 @@ "py-2", "py-7", "py-[2.5px]", + "read-more-link", "relative", "rounded", "rounded-2xl", diff --git a/layouts/index.html b/layouts/index.html index eeda9611..c1b21e8f 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -38,7 +38,7 @@ {{ end }} - +

Consortium

@@ -51,19 +51,20 @@

{{ .title | markdownify }}

-

{{ .content | markdownify }}

- {{ with .button }} {{ if .enable }} - - {{ .label }} - - - {{ end }} {{ end }} +

{{ .content | markdownify }} + {{ with .button }} {{ if .enable }} + + Read more + + + {{ end }} {{ end }} +

{{ end }} - + {{ range $i, $e:= .Params.features }} diff --git a/public/css/style.css b/public/css/style.css index 2f42924c..8d9914ea 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -3080,6 +3080,10 @@ input#nav-toggle:checked ~ #nav-menu { max-height: 100px; /* Adjust as needed */ } +.read-more-link { + color: #FF6E00; + /* Use the variable defined in theme.json */ } + @media (min-width: 540px) { .sm\:col-10 { @@ -3120,10 +3124,6 @@ input#nav-toggle:checked ~ #nav-menu { width: 83.33333333333334%; } - .md\:order-1 { - order: 1; - } - .md\:order-2 { order: 2; } @@ -3189,10 +3189,6 @@ input#nav-toggle:checked ~ #nav-menu { @media (min-width: 768px) { - .md\:order-1 { - order: 1; - } - .md\:order-2 { order: 2; } diff --git a/public/index.html b/public/index.html index 559b8247..daa1d340 100644 --- a/public/index.html +++ b/public/index.html @@ -981,8 +981,9 @@

Consortium

-

The Consortium behind the Fediversity project is a cooperation between NLnet, Open Internet Discourse Foundation, NORDUnet and Tweag.

- +

The Consortium behind the Fediversity project is a cooperation between NLnet, Open Internet Discourse Foundation, NORDUnet and Tweag. + +

@@ -991,13 +992,14 @@

NLnet

-

NLnet supports organisations and people who contribute to an open internet for all. They fund projects that help fix the internet through open hardware, open software, open standards, open science and open data.

- - - Learn more - - - +

NLnet supports organisations and people who contribute to an open internet for all. They fund projects that help fix the internet through open hardware, open software, open standards, open science and open data. + + + Read more + + + +

@@ -1006,13 +1008,14 @@

Open Internet Discourse

-

The Open Internet Discourse Foundation (OID) is founded on the belief that everyone deserves the freedom to express themselves and use the internet without constraints, and is committed to help build a better internet where individuals can truly be who they are.

- - - Learn more - - - +

The Open Internet Discourse Foundation (OID) is founded on the belief that everyone deserves the freedom to express themselves and use the internet without constraints, and is committed to help build a better internet where individuals can truly be who they are. + + + Read more + + + +

@@ -1021,13 +1024,14 @@

Tweag

-

Tweag is the open source program office (OSPO) of Modus Create, and has extensive experience working with Nix, and many people at the forefront of the Nix community are Tweagers.

- - - Learn more - - - +

Tweag is the open source program office (OSPO) of Modus Create, and has extensive experience working with Nix, and many people at the forefront of the Nix community are Tweagers. + + + Read more + + + +

@@ -1036,13 +1040,14 @@

NORDUnet

-

NORDUnet is a collaboration of the National Research and Education Networks of the Nordic countries.

- - - Learn more - - - +

NORDUnet is a collaboration of the National Research and Education Networks of the Nordic countries. + + + Read more + + + +