From 31143acc0906d0fae7fa3c1e29dfba7ac4a44f9a Mon Sep 17 00:00:00 2001 From: Thomas Jarrand Date: Mon, 9 Dec 2019 15:13:27 +0100 Subject: [PATCH 1/2] Lightweight CSS/JS theme --- public/404.html | 84 +++------ public/categories/index.html | 154 ++++------------ public/css/light.css | 67 +++++++ public/css/main.css | 5 +- public/index.html | 174 ++++-------------- public/tags/index.html | 154 ++++------------ .../layouts/_default/baseof.html | 1 - themes/beautifulhugo/layouts/index.html | 50 +++-- .../layouts/partials/footer.html | 144 ++++++--------- .../beautifulhugo/layouts/partials/head.html | 40 +--- .../layouts/partials/header.html | 78 +++----- themes/beautifulhugo/static/css/light.css | 67 +++++++ themes/beautifulhugo/static/css/main.css | 5 +- 13 files changed, 366 insertions(+), 657 deletions(-) create mode 100644 public/css/light.css create mode 100644 themes/beautifulhugo/static/css/light.css diff --git a/public/404.html b/public/404.html index 1bf6ac7..91d001a 100644 --- a/public/404.html +++ b/public/404.html @@ -36,46 +36,14 @@ - - - - - + + + - - - - -
@@ -103,39 +71,31 @@ - diff --git a/public/categories/index.html b/public/categories/index.html index 4c0d0aa..d4aba0d 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -37,94 +37,15 @@ - - - - - + + + - - - - - - - - - - - @@ -137,22 +58,17 @@
-
-
-
-
- -

Categories

- - -
- - - -
-
+
+ +

Categories

+ + +
+ + +
@@ -176,39 +92,31 @@ - diff --git a/public/css/light.css b/public/css/light.css new file mode 100644 index 0000000..adb91cc --- /dev/null +++ b/public/css/light.css @@ -0,0 +1,67 @@ +body { + font-family: Georgia, Cambria, "Times New Roman", Times, serif; + font-size: 18px; + color: #404040; + background: #FFF; + margin: 0; + padding: 0; + display: flex; + flex-flow: column; + align-items: center; +} + +.container { + width: 680px; + max-width: 100%; +} + +.page-heading { + margin: 2em 0 1em; + font-size: 1.2em; + font-weight: bold; + text-align: center; + font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; +} + +hr.small { + max-width: 100px; + margin: 15px auto; + border-width: 4px; + border-color: inherit; + border-radius: 3px; + border-top: 4px solid #404040; + border-bottom: 0; + border-left: 0; + border-right: 0; +} + +p, li { + line-height: 1.5; + text-align: justify; +} + +a, a:visited { + color: #404040; + text-decoration-color: #999; + text-decoration-style: dotted; +} + +a:hover { + text-decoration-color: #404040; +} + +code { + color: #c7254e; + background-color: #f9f2f4; +} + +.footer { + margin-top: 2em; + padding: 2em 0; + border-top: 1px solid #ccc; + font-size: 0.8em; +} + +.credits { + text-align: center; +} diff --git a/public/css/main.css b/public/css/main.css index 0be1d18..2710684 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -1,7 +1,7 @@ /* --- General --- */ body { - font-family: 'Lora', 'Times New Roman', serif; + font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; color: #404040; position: relative; @@ -34,7 +34,6 @@ p a { color: #008AFF; } h1,h2,h3,h4,h5,h6 { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 800; } a { @@ -768,7 +767,7 @@ div.splitbox div.right { padding: 15px 25px; } } -.disqus-comments button:hover, +.disqus-comments button:hover, .disqus-comments button:focus { color: #FFF; background: #0085a1; diff --git a/public/index.html b/public/index.html index 16efeb6..def6b17 100644 --- a/public/index.html +++ b/public/index.html @@ -41,94 +41,15 @@ Malheureusement, les monumentales richesses produites par les machines et les pr - - - - - + + + - - - - - - - - - - - @@ -141,22 +62,17 @@ Malheureusement, les monumentales richesses produites par les machines et les pr
-
-
-
-
- -

Appel des travailleuses et travailleurs du numérique pour une autre réforme des retraites

- - -
- - - -
-
+
+ +

Appel des travailleuses et travailleurs du numérique pour une autre réforme des retraites

+ + +
+ + +
@@ -166,10 +82,9 @@ Malheureusement, les monumentales richesses produites par les machines et les pr
-
- -
-

L'automatisation peut être une chance pour l'humanité : elle permet de déléguer aux machines + +

+

L'automatisation peut être une chance pour l'humanité : elle permet de déléguer aux machines toujours plus de tâches fastidieuses, ingrates, complexes, ennuyeuses ou non épanouissantes. Les progrès fulgurants effectués au cours des dernières décennies dans les domaines de l'électronique, de l'informatique, des réseaux et de l'intelligence artificielle permettent tous les jours un peu plus @@ -353,16 +268,15 @@ Pour ce faire, créez un compte GitHub.com si vous n'en avez pas, ajoutez votre

  • Syndicat de l'industrie informatique CNT-Solidarité Ouvrière
  • -
    +
    + + +
    - -
    - - -
    -
    + +
    @@ -375,39 +289,31 @@ Pour ce faire, créez un compte GitHub.com si vous n'en avez pas, ajoutez votre - diff --git a/public/tags/index.html b/public/tags/index.html index e08e399..1af9865 100644 --- a/public/tags/index.html +++ b/public/tags/index.html @@ -37,94 +37,15 @@ - - - - - + + + - - - - - - - - - - - @@ -137,22 +58,17 @@
    -
    -
    -
    -
    - -

    Tags

    - - -
    - - - -
    -
    +
    + +

    Tags

    + + +
    + + +
    @@ -176,39 +92,31 @@ - diff --git a/themes/beautifulhugo/layouts/_default/baseof.html b/themes/beautifulhugo/layouts/_default/baseof.html index a67d0c4..1ebdb15 100644 --- a/themes/beautifulhugo/layouts/_default/baseof.html +++ b/themes/beautifulhugo/layouts/_default/baseof.html @@ -4,7 +4,6 @@ {{ partial "head.html" . }} - {{ partial "nav.html" . }} {{ block "header" . }}{{ partial "header.html" . }}{{ end }} {{ block "main" . }}{{ end }} {{ partial "footer.html" . }} diff --git a/themes/beautifulhugo/layouts/index.html b/themes/beautifulhugo/layouts/index.html index 8b7f9bc..ea37da4 100644 --- a/themes/beautifulhugo/layouts/index.html +++ b/themes/beautifulhugo/layouts/index.html @@ -1,35 +1,33 @@ {{ define "main" }}
    -
    - {{ with .Content }} -
    - {{.}} -
    - {{ end }} + {{ with .Content }} +
    + {{.}} +
    + {{ end }} -
    - {{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} - {{ range $pag.Pages }} - {{ partial "post_preview" . }} - {{ end }} -
    - - {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} - +
    + {{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} + {{ range $pag.Pages }} + {{ partial "post_preview" . }} {{ end }}
    + + {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} + + {{ end }}
    {{ end }} diff --git a/themes/beautifulhugo/layouts/partials/footer.html b/themes/beautifulhugo/layouts/partials/footer.html index e3c4fe0..2812d9e 100644 --- a/themes/beautifulhugo/layouts/partials/footer.html +++ b/themes/beautifulhugo/layouts/partials/footer.html @@ -1,97 +1,63 @@ {{ if eq .Type "page" }} {{ partial "page_meta.html" . }} {{ end }} -