We continue
authorPieter De Praetere <pieter.de.praetere@helptux.be>
Sat, 2 Jan 2021 15:13:05 +0000 (16:13 +0100)
committerPieter De Praetere <pieter.de.praetere@helptux.be>
Sat, 2 Jan 2021 15:13:05 +0000 (16:13 +0100)
content/stands/fosdem/_index.md
content/themes/community-advocacy/_index.md [new file with mode: 0644]
content/themes/world-wide-web/_index.md [new file with mode: 0644]
themes/fosdem/layouts/stands/list.html
themes/fosdem/layouts/stands/stand.html
themes/fosdem/layouts/themes/taxonomy.html [new file with mode: 0644]
themes/fosdem/layouts/themes/terms.html [new file with mode: 0644]
themes/fosdem/static/css/fosdem.css
themes/fosdem/static/css/lib/material-icons/4.0.0/MaterialIcons-Regular.woff2 [new file with mode: 0644]
themes/fosdem/static/img/lib/material-icons/community-advocacy.svg [new file with mode: 0644]

index 26c02479a4b49802d4180da77611b4251a1c30cb..0ebe8dbfad3d5c90d50c677e860548ff14adf6e7 100644 (file)
@@ -1,6 +1,7 @@
 ---
 title: FOSDEM
-theme: Community advocacy
+themes:
+ - Community advocacy
 website: https://www.fosdem.org
 logo: stands/fosdem/cogweel.png
 description: |
diff --git a/content/themes/community-advocacy/_index.md b/content/themes/community-advocacy/_index.md
new file mode 100644 (file)
index 0000000..5d59994
--- /dev/null
@@ -0,0 +1,7 @@
+---
+title: Community advocacy
+description: |
+    Free and Open Source software is made by communities. These stands have one thing in common: creating communities and
+    bringing them together.
+logo: img/lib/material-icons/community-advocacy.svg
+---
\ No newline at end of file
diff --git a/content/themes/world-wide-web/_index.md b/content/themes/world-wide-web/_index.md
new file mode 100644 (file)
index 0000000..e5a6630
--- /dev/null
@@ -0,0 +1,7 @@
+---
+title: World wide web
+description: |
+    Free and Open Source software is made by communities. These stands have one thing in common: creating communities and
+    bringing them together.
+logo: img/lib/material-icons/community-advocacy.svg
+---
\ No newline at end of file
index 54d941af870cfb633f8b823cfcff0880fe7d3fb3..7d59f54f8d324b911cde53d04ff5ecd60ed843a4 100644 (file)
@@ -12,7 +12,9 @@
                     <div class="card-body">
                         <h5 class="card-title"><a href="{{ .Permalink }}">{{ .Params.title }}</a></h5>
                         <p class="card-text">{{ .Params.description }}</p>
-                        <p class="card-text"><small class="text-muted"><a href="/themes/{{ .Params.theme }}">{{ .Params.theme }}</a></small></p>
+                        {{ range (.GetTerms "themes") }}
+                        <p class="card-text"><small class="text-muted"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></small></p>
+                        {{ end }}
                     </div>
                 </div>
             </div>
index 35f127b6eb8870af82a5c00807ef9c723f66a9ae..240e7b598d1477e2940823cab518b607e8429ecf 100644 (file)
@@ -1,5 +1,8 @@
 {{ define "title" }}
-{{ .Params.Theme}} - {{ .Params.Title }}
+{{ range (.GetTerms "themes") -}}
+{{ .LinkTitle }} - 
+{{ end -}}
+{{ .Params.Title }}
 {{ end }}
 {{ define "main" }}
 <div class="container">
@@ -7,7 +10,9 @@
         <div class="col">
             <nav aria-label="breadcrumb">
                 <ol class="breadcrumb">
-                    <li class="breadcrumb-item"><a href="/themes/{{ .Params.Theme }}">{{ .Params.Theme }}</a></li>
+                    {{ range (.GetTerms "themes") }}
+                        <li class="breadcrumb-item"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
+                    {{ end }}
                     <li class="breadcrumb-item active" aria-current="page"> {{ .Params.Title }} </li>
                 </ol>
             </nav>
diff --git a/themes/fosdem/layouts/themes/taxonomy.html b/themes/fosdem/layouts/themes/taxonomy.html
new file mode 100644 (file)
index 0000000..96c57a3
--- /dev/null
@@ -0,0 +1,27 @@
+{{ define "main" }}
+<div class="container">
+    <div class="row">
+        <div class="col-md-12 text-center">
+            <h4>Welcome to the {{ .Title }} corner!</h4>
+        </div>
+    </div>
+    <div class="row mb-4 mt-3">
+        <div class="col">
+            <p>{{ .Params.Description }}</p>
+        </div>
+    </div>
+    <div class="row">
+    {{ range .Pages }}
+        <div class="col">
+            <div class="card mb-3 border-0" style="width: 18rem;">
+                <img src="{{ .Params.Logo | relURL }}" class="card-img border-0" alt="{{ .Params.Title }} logo" />
+                <div class="card-body">
+                    <h5 class="card-title h6"><a href="{{ .Permalink }}">{{ .Params.Title }}</a></h5>
+                    <p class="card-text text-justify">{{ .Params.Description }}</p>
+                </div>
+            </div>
+        </div>
+    {{ end }}
+    </div>
+</div>
+{{ end }}
\ No newline at end of file
diff --git a/themes/fosdem/layouts/themes/terms.html b/themes/fosdem/layouts/themes/terms.html
new file mode 100644 (file)
index 0000000..2684f49
--- /dev/null
@@ -0,0 +1,26 @@
+{{ define "main" }}
+<div class="container">
+    <div class="row">
+        <div class="col"><h4>Welcome to our themes page!</h4></div>
+    </div>
+    <div class="row mt-3">
+        <div class="col">
+            <p>There are over 50 stands at FOSDEM, and it is not always easy to find what you are looking for. To ease your search, we have organised all stands per theme, so related projects are closer together.</p>
+            <p>Not only can you find your favourite stand easier and faster, but it also allows related projects to talk to each other and maybe collaborate on common issues. We encourage fraternizing!</p>
+        </div>
+    </div>
+    <div class="row mt-3">
+    {{ range .Data.Terms.ByCount }}
+        <div class="col">
+            <div class="card mb-3 border-0" style="width: 18rem;">
+                <img src="{{ .Page.Params.Logo | relURL }}" class="card-img border-0" alt="{{ .Page.Title }} logo" style="max-width: 12rem"/>
+                <div class="card-body">
+                    <h5 class="card-title h6"><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a></h5>
+                    <p class="card-text text-justify">{{ .Page.Params.Description }}</p>
+                </div>
+            </div>
+        </div>
+    {{ end }}
+    </div>
+</div>
+{{ end }}
\ No newline at end of file
index 500c3ea9cca246db5d4fa8acf83df454d8b069e7..dd44843eaa0cd255c1db815244f623a0abffd13d 100644 (file)
@@ -1,3 +1,51 @@
+@font-face {
+    font-family: 'Material Icons';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Material Icons'),
+      local('MaterialIcons-Regular'),
+      url(/css/lib/material-icons/4.0.0/MaterialIcons-Regular.woff2) format('woff2')
+}
+
+.material-icons {
+    font-family: 'Material Icons';
+    font-weight: normal;
+    font-style: normal;
+    font-size: 24px;  /* Preferred icon size */
+    display: inline-block;
+    line-height: 1;
+    text-transform: none;
+    letter-spacing: normal;
+    word-wrap: normal;
+    white-space: nowrap;
+    direction: ltr;
+  
+    /* Support for all WebKit browsers. */
+    -webkit-font-smoothing: antialiased;
+    /* Support for Safari and Chrome. */
+    text-rendering: optimizeLegibility;
+  
+    /* Support for Firefox. */
+    -moz-osx-font-smoothing: grayscale;
+  
+    /* Support for IE. */
+    font-feature-settings: 'liga';
+}
+
+/* Rules for sizing the icon. */
+.material-icons.md-18 { font-size: 18px; }
+.material-icons.md-24 { font-size: 24px; }
+.material-icons.md-36 { font-size: 36px; }
+.material-icons.md-48 { font-size: 48px; }
+
+/* Rules for using icons as black on a light background. */
+.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
+.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }
+
+/* Rules for using icons as white on a dark background. */
+.material-icons.md-light { color: rgba(255, 255, 255, 1); }
+.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }
+
 body {
     font-weight: normal;
     font-size: 14px;
diff --git a/themes/fosdem/static/css/lib/material-icons/4.0.0/MaterialIcons-Regular.woff2 b/themes/fosdem/static/css/lib/material-icons/4.0.0/MaterialIcons-Regular.woff2
new file mode 100644 (file)
index 0000000..84084a5
Binary files /dev/null and b/themes/fosdem/static/css/lib/material-icons/4.0.0/MaterialIcons-Regular.woff2 differ
diff --git a/themes/fosdem/static/img/lib/material-icons/community-advocacy.svg b/themes/fosdem/static/img/lib/material-icons/community-advocacy.svg
new file mode 100644 (file)
index 0000000..1dcef1b
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><rect fill="none" height="24" width="24"/><g><path d="M12,12.75c1.63,0,3.07,0.39,4.24,0.9c1.08,0.48,1.76,1.56,1.76,2.73L18,18H6l0-1.61c0-1.18,0.68-2.26,1.76-2.73 C8.93,13.14,10.37,12.75,12,12.75z M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1 C4.76,14.04,4.39,14,4,14c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85 C21.93,14.21,20.99,14,20,14c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M12,6c1.66,0,3,1.34,3,3 c0,1.66-1.34,3-3,3s-3-1.34-3-3C9,7.34,10.34,6,12,6z"/></g></svg>
\ No newline at end of file