]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/commitdiff
Begin huisstijl.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sat, 25 Nov 2023 14:33:53 +0000 (22:33 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sat, 25 Nov 2023 14:33:53 +0000 (22:33 +0800)
html/footer.html [new file with mode: 0644]
html/navbar.html [new file with mode: 0644]
maak-website.el

diff --git a/html/footer.html b/html/footer.html
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/html/navbar.html b/html/navbar.html
new file mode 100644 (file)
index 0000000..1309938
--- /dev/null
@@ -0,0 +1,18 @@
+<nav class="navbar navbar-expand-md d-flex justify-content-start" style="background-color: #bbddff;">
+  <div class="container-fluid d-flex justify-content-start flex-row">
+    <a class="navbar-brand" aria-current="page" href="/index.html">
+      <img src="/assets/logo-100.png" width="99" height="78"/></a>
+    <ul class="navbar-nav d-flex justify-content-start mb-2 mb-lg-0 fw-bold">
+      <li class="nav-item">
+       <a class="nav-link" href="http://photos.vanrenterghem.biz/">Photos</a></li>
+      <li class="nav-item">
+       <a class="nav-link" href="/posts">Blog</a></li>
+      <li class="nav-item">
+       <a class="nav-link" href="http://git.vanrenterghem.biz/">Projects</a></li>
+    </ul>
+  </div>
+  <div class="justify-content-end mb-2 mb-lg-0 d-none d-md-block">
+    <a class="navbar-brand fs-2 fw-bold" href="/index.html">vanrenterghem.biz</a>
+  </div>
+</nav>
+
index 74244b92fd4ff1dd8d0ba26880141bd7a3cc3b15..e0c8c065da961a9b82b7e70d050e6a7889ac3077 100644 (file)
@@ -1,5 +1,17 @@
 (require 'ox-publish)
 
+(setq org-html-doctype "html5")
+
+(defun website-header (info)
+  (with-temp-buffer
+    (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/navbar.html")
+    (buffer-string)))
+
+(defun website-footer (info)
+  (with-temp-buffer
+    (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/footer.html")
+    (buffer-string)))
+
 (setq org-publish-project-alist
       '(("orgfiles"
          :base-directory "~/websites/stage.vanrenterghem.biz/source/"
          :headline-levels 3
          :section-numbers nil
          :with-toc nil
-         :html-head "<link rel=\"stylesheet\"
-                  href=\"../other/mystyle.css\" type=\"text/css\"/>"
+         :html-head "<link href=\"/assets/styles/bootstrap-5.3.0/css/bootstrap.min.css\" rel=\"stylesheet\" />"
          :html-preamble t
         :recursive t
-        :auto-sitemap t)
+        :auto-sitemap t
+        :html-preamble website-header
+        :html-postamble website-footer
+        )
 
         ("assets"
-         :base-directory "~/websites/stage.vanrenterghem.biz/assets/"
-         :base-extension *
+         :base-directory "~/websites/stage.vanrenterghem.biz/source/assets/"
+         :base-extension any
+        :recursive t
          :publishing-directory "~/websites/stage.vanrenterghem.biz/target/assets/"
          :publishing-function org-publish-attachment)