You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2020/12/25 17:36:03 UTC

[directory-site] branch extract-head-add-charset-utf8 created (now 9fa7482)

This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a change to branch extract-head-add-charset-utf8
in repository https://gitbox.apache.org/repos/asf/directory-site.git.


      at 9fa7482  Extract head. Add charset utf8 meta attribute.

This branch includes the following new commits:

     new 9fa7482  Extract head. Add charset utf8 meta attribute.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[directory-site] 01/01: Extract head. Add charset utf8 meta attribute.

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch extract-head-add-charset-utf8
in repository https://gitbox.apache.org/repos/asf/directory-site.git

commit 9fa7482e64364a79cf02fd6d7e0cbc9875aace31
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Fri Dec 25 18:34:51 2020 +0100

    Extract head. Add charset utf8 meta attribute.
---
 layouts/_default/baseof.html | 9 +--------
 layouts/apacheds/baseof.html | 9 +--------
 layouts/api/baseof.html      | 9 +--------
 layouts/fortress/baseof.html | 9 +--------
 layouts/kerby/baseof.html    | 9 +--------
 layouts/mavibot/baseof.html  | 9 +--------
 layouts/partials/head.html   | 9 +++++++++
 layouts/scimple/baseof.html  | 9 +--------
 layouts/studio/baseof.html   | 9 +--------
 9 files changed, 17 insertions(+), 64 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b07b1e4..bf8db1c 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/green.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/server-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "green") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "home") }}
diff --git a/layouts/apacheds/baseof.html b/layouts/apacheds/baseof.html
index 375298b..936889e 100644
--- a/layouts/apacheds/baseof.html
+++ b/layouts/apacheds/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/green.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/server-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "green") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "apacheds") }}
diff --git a/layouts/api/baseof.html b/layouts/api/baseof.html
index e07b887..64d179a 100644
--- a/layouts/api/baseof.html
+++ b/layouts/api/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/brown.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/api-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "brown") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "api") }}
diff --git a/layouts/fortress/baseof.html b/layouts/fortress/baseof.html
index a28ebb2..9a588c9 100644
--- a/layouts/fortress/baseof.html
+++ b/layouts/fortress/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/fortress-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "turquoise") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "fortress") }}
diff --git a/layouts/kerby/baseof.html b/layouts/kerby/baseof.html
index a611d61..0a5de10 100644
--- a/layouts/kerby/baseof.html
+++ b/layouts/kerby/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/orange.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/api-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "orange") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "kerby") }}
diff --git a/layouts/mavibot/baseof.html b/layouts/mavibot/baseof.html
index 9954180..d2f232d 100644
--- a/layouts/mavibot/baseof.html
+++ b/layouts/mavibot/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/turquoise.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/mavibot-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "turquoise") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "mavibot") }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..e125152
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,9 @@
+<head>
+    <meta charset="utf-8">
+    <title>{{ .context.Title }} &mdash; Apache Directory</title>
+
+    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
+    <link href="/css/{{ .csscolor }}.css" rel="stylesheet" type="text/css"/>
+
+    <link rel="shortcut icon" href="/images/server-icon_16x16.png" />
+</head>
diff --git a/layouts/scimple/baseof.html b/layouts/scimple/baseof.html
index 1d9040c..bfabf39 100644
--- a/layouts/scimple/baseof.html
+++ b/layouts/scimple/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/brown.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/api-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "brown") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "scimple") }}
diff --git a/layouts/studio/baseof.html b/layouts/studio/baseof.html
index e15ad28..cb5b9ad 100644
--- a/layouts/studio/baseof.html
+++ b/layouts/studio/baseof.html
@@ -16,14 +16,7 @@
     limitations under the License.
 -->
 <html lang="en">
-<head>
-    <title>{{ .Title }} &mdash; Apache Directory</title>
-
-    <link href="/css/common.css" rel="stylesheet" type="text/css"/>
-    <link href="/css/blue.css" rel="stylesheet" type="text/css"/>
-
-    <link rel="shortcut icon" href="/images/studio-icon_16x16.png">
-</head>
+{{ partial "head.html" (dict "context" . "csscolor" "blue") }}
 <body>
 <div id="container">
     {{ partial "header.html" (dict "context" . "project" "studio") }}