Skip to content

Commit 1ef12c5

Browse files
committed
fix title
1 parent 8dbadd5 commit 1ef12c5

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ if emacs --batch \
120120
;; Custom sitemap function to exclude author
121121
(defun blog/sitemap-function (title list)
122122
\"Generate sitemap as an Org file without author metadata.\"
123-
(concat \"#+TITLE: \\n\" ; Empty title
123+
(concat \"#+TITLE: Noob Notes\\n\"
124124
\"#+AUTHOR:\\n\"
125-
\"#+OPTIONS: author:nil toc:nil num:nil\\n\\n\"
125+
\"#+OPTIONS: author:nil toc:nil num:nil h:0\\n\\n\"
126126
(org-list-to-org list)))
127127
128128
;; Publishing configuration

posts/index.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#+TITLE:
1+
#+TITLE: Noob Notes
22
#+AUTHOR:
3-
#+OPTIONS: author:nil toc:nil num:nil
3+
#+OPTIONS: author:nil toc:nil num:nil h:0
44

55
- [[file:2024-10-02-babylon.org][What is Babylon?]]
66
- [[file:2024-06-30-syntax-highlighting-test.org][Syntax Highlighting Test]]

static/css/blog.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,14 @@ img {
614614
display: none;
615615
}
616616

617+
/* Hide the h1 title when it contains "Noob Notes - Blog" */
618+
#content > h1.title:first-child {
619+
display: none;
620+
}
621+
#content > h1.title:first-child + .org-ul {
622+
margin-top: 0;
623+
}
624+
617625
/* Homepage posts list */
618626
#content > .org-ul {
619627
max-width: 48rem;

0 commit comments

Comments
 (0)