From 46f3101a99d7d26dbc9592720d386a37b56f6579 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 10 Jan 2023 19:10:39 +0100 Subject: Switch to simple.css The simple.css projects shares the same values as my own CSS project (libweb). But at the end: I do not have to maintain it and it more advanced. --- .gitmodules | 6 +++--- libweb | 1 - simple.css | 1 + static/libweb.css | 1 - static/style.css | 1 + style.css | 1 + themes/bare/layouts/git/list.html | 32 ++++++++++++++------------------ themes/bare/layouts/git/single.html | 30 ++++++++++++++++-------------- themes/bare/layouts/index.html | 36 +++++++++++++++++++----------------- 9 files changed, 55 insertions(+), 54 deletions(-) delete mode 160000 libweb create mode 160000 simple.css delete mode 120000 static/libweb.css create mode 120000 static/style.css create mode 120000 style.css diff --git a/.gitmodules b/.gitmodules index 774fbe7..a3875af 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "libweb"] - path = libweb - url = https://cgit.xengineering.eu/libweb/ +[submodule "simple.css"] + path = simple.css + url = https://github.com/kevquirk/simple.css.git diff --git a/libweb b/libweb deleted file mode 160000 index a80f90e..0000000 --- a/libweb +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a80f90ecb8c80db6be077abaef2ed0ce289a4a2a diff --git a/simple.css b/simple.css new file mode 160000 index 0000000..43a7f93 --- /dev/null +++ b/simple.css @@ -0,0 +1 @@ +Subproject commit 43a7f939f26b201a3413bcb7d7667a970d369e38 diff --git a/static/libweb.css b/static/libweb.css deleted file mode 120000 index 9dd798c..0000000 --- a/static/libweb.css +++ /dev/null @@ -1 +0,0 @@ -../libweb/libweb.css \ No newline at end of file diff --git a/static/style.css b/static/style.css new file mode 120000 index 0000000..5191bf7 --- /dev/null +++ b/static/style.css @@ -0,0 +1 @@ +../style.css \ No newline at end of file diff --git a/style.css b/style.css new file mode 120000 index 0000000..9a2d3cd --- /dev/null +++ b/style.css @@ -0,0 +1 @@ +simple.css/simple.min.css \ No newline at end of file diff --git a/themes/bare/layouts/git/list.html b/themes/bare/layouts/git/list.html index f4cd50e..b8dc147 100644 --- a/themes/bare/layouts/git/list.html +++ b/themes/bare/layouts/git/list.html @@ -12,40 +12,36 @@ - + -
- -

Git repositories

-

This page shows all of my Git repositories. They are ordered by - their state attribute, which is defined in each section.

+
+

Git repositories

+
-

Active

-

The content of active repositories can be used right now.

+
+ Experimental
    {{- range.Pages }} - {{ if eq .Params.state "active" }} + {{ if eq .Params.state "experimental" }}
  • {{ .Params.friendly_name }} - {{.Description}}
  • {{ end }} {{ end -}}
-

Experimental

-

Experimental repositories are not ready to be used but maybe interesting enough to have a look at it.

+ Active
    {{- range.Pages }} - {{ if eq .Params.state "experimental" }} + {{ if eq .Params.state "active" }}
  • {{ .Params.friendly_name }} - {{.Description}}
  • {{ end }} {{ end -}}
-

Archived

-

Archived repositories will not be improved in the future unless the state will change.

+ Archived
    {{- range.Pages }} {{ if eq .Params.state "archived" }} @@ -54,10 +50,10 @@ {{ end -}}
-
-
- - +
diff --git a/themes/bare/layouts/git/single.html b/themes/bare/layouts/git/single.html index 3732715..092df5a 100644 --- a/themes/bare/layouts/git/single.html +++ b/themes/bare/layouts/git/single.html @@ -12,30 +12,32 @@ - + -
- +
+
-
-

{{ .Params.description }}

-

State: {{ .Params.state }}

-

Source code: cgit

-

Get updates: Atom feed

-

Clone repository: git clone https://cgit.xengineering.eu/{{ .Params.name }}

-
+
- {{.Content}} +

State: {{ .Params.state }}

-
-
- + {{.Content}} +
diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html index adc500d..9539278 100644 --- a/themes/bare/layouts/index.html +++ b/themes/bare/layouts/index.html @@ -12,30 +12,32 @@ - + -
- +

{{.Params.heading}}

+

Free and Open Source software and hardware projects

+
-
-

Contact

-

Mail: {{.Params.email}}

-

XMPP: {{.Params.xmpp}}

-

OpenPGP: {{.Params.openpgp.fingerprint}}

-
+
+

Contact

+ {{.Content}} -

My projects

+

My projects

Here is a list of all my published projects. The active ones are regularly used by myself.

-

Experimental

+ Experimental
    {{ range.Site.RegularPages }} {{ if eq .Section "git" }} @@ -46,7 +48,7 @@ {{ end }}
-

Active

+ Active
    {{ range.Site.RegularPages }} {{ if eq .Section "git" }} @@ -57,7 +59,7 @@ {{ end }}
-

Archived

+ Archived
    {{ range.Site.RegularPages }} {{ if eq .Section "git" }} @@ -68,10 +70,10 @@ {{ end }}
-
-
- - +
-- cgit v1.2.3-70-g09d2