Skip to content

Commit b8f190e

Browse files
committed
improved layout and use of tables, css and head updated
1 parent 41b8887 commit b8f190e

6 files changed

Lines changed: 155 additions & 67 deletions

File tree

assets/html_preamble.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<hr style="border-top: 1px solid black;">
22
<div class='topnav' style='display: flex; justify-content: space-between; align-items: center;'>
3-
<a href="/index.html"><h2 style='margin-top: 0; margin-bottom: 0; margin-left:0px;'>mblognl</h2></a>
3+
<a href="/index.html"><h1 class="logo" style='margin-top: 0 !important; margin-bottom: 0 !important; margin-left:0px !important;'>mblognl</h1></a>
44
<div>
5-
<a href='/about.html' style='font-weight:bold; font-style:italic;'>About Me</a> |
6-
<a href='/archive.html' style='font-weight:bold; font-style:italic;'>Blog</a> |
7-
<a href='/books.html' style='font-weight:bold; font-style:italic;'>Books</a> |
8-
<a href='/rss.xml' style='font-weight:bold; font-style:italic;'>RSS</a>
5+
<a href='/about.html' class="areas" style='font-weight:bold; font-style:italic;'>About Me</a> |
6+
<a href='/archive.html' class="areas" style='font-weight:bold; font-style:italic;'>Blog</a> |
7+
<a href='/books.html' class="areas" style='font-weight:bold; font-style:italic;'>Books</a> |
8+
<a href='/rss.xml' class="areas" style='font-weight:bold; font-style:italic;'>RSS</a>
99
</div>
1010
</div>
1111
<hr style="border-top: 1px solid black;">

assets/stylesheet.css

Lines changed: 112 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,71 @@
2828
/* Headings */
2929
h1 {
3030
color: #e79686;
31-
font-size: 1.5em;
31+
font-size: 1em;
3232
text-align: center;
33-
margin-bottom: 0;
3433
width: 90%;
35-
}
34+
}
3635

37-
h2 {
38-
color: #7ec98f;
39-
font-size: 1em;
40-
margin-top: 20px;
41-
margin-bottom: 10px;
42-
border-bottom: 1px solid #7ec98f;
43-
display: flex;
44-
justify-content: space-between;
45-
}
36+
h1.logo:hover {
37+
color: #7ec98f;
38+
}
39+
40+
a.areas:hover {
41+
color: #e79686;
42+
}
43+
44+
/* h2 { */
45+
/* margin-bottom: 10px; */
46+
/* border-bottom: 1px solid #7ec98f; */
47+
/* display: flex; */
48+
/* justify-content: space-between; */
49+
/* } */
50+
51+
/* Allow the flex container to wrap */
52+
h2 {
53+
color: #7ec98f;
54+
font-size: 1em;
55+
margin-top: 0px;
56+
margin-bottom: 0;
57+
display: flex;
58+
justify-content: space-between;
59+
align-items: center; /* Good for vertical alignment */
60+
flex-wrap: wrap; /* This is the key change */
61+
border-top: 2px solid #7ec98f;
62+
padding-top: 0.5em;
63+
}
64+
65+
/* This rule controls the LAYOUT of the tag container */
66+
.tag {
67+
flex-basis: 100%; /* Make the container take up the full width */
68+
text-align: left; /* Push the tag to the right on its new line */
69+
margin-bottom: 0.5em; /* Add space between the tag and the bottom border */
70+
}
71+
72+
/* This rule controls the APPEARANCE of the tag itself */
73+
.tag span {
74+
background-color: #1c1e26;
75+
color: #dcdccc;
76+
border: 1px solid #dcdccc;
77+
padding: 2px;
78+
font-size: 0.6em;
79+
}
80+
81+
.tag span:hover {
82+
background-color: #dcdccc;
83+
color: #1c1e26;
84+
}
4685

4786
h3 {
4887
color: #a89bb9;
4988
font-size: 0.8em;
50-
margin-top: 10px;
51-
margin-bottom: 5px;
52-
border-bottom: 1px solid #a89bb9;
53-
display: flex;
54-
justify-content: space-between;
89+
margin-top: 0px;
90+
margin-bottom: 0;
91+
border-top: 2px solid #7ec98f;
92+
display: flex;
93+
flex-wrap: wrap;
94+
justify-content: space-between;
95+
padding-top: 0.5em;
5596
}
5697

5798
h4 {
@@ -65,11 +106,51 @@
65106
p {
66107
text-align: justify;
67108
margin-bottom: 1.5em;
68-
}
109+
}
110+
111+
/* --- Org Mode Table Styling (Refined) --- */
112+
113+
/* Main table container (no changes here) */
114+
table {
115+
width: 100%;
116+
border-collapse: collapse;
117+
border: 1px solid #4c566a;
118+
border-radius: 0px;
119+
overflow: hidden;
120+
font-size: 0.8em;
121+
margin-bottom: 0.5em;
122+
margin-top: 0.5em;
123+
}
124+
125+
/* Table row styling (no changes here) */
126+
tr {
127+
border-bottom: 1px solid #4c566a;
128+
}
129+
130+
tr:last-child {
131+
border-bottom: none;
132+
}
133+
tr:hover {
134+
background-color: #3b4252;
135+
}
136+
137+
/* General cell styling (no changes here) */
138+
th, td {
139+
padding: 8px 8px;
140+
text-align: left;
141+
}
142+
143+
/* --- THIS IS THE UPDATED RULE --- */
144+
/* Specific styling for the "Key" column using its class */
145+
td.org-left {
146+
font-weight: bold;
147+
color: #a89bb9;
148+
}
69149

70150
ul {
71151
padding-left: 30px;
72152
font-size: 0.8em;
153+
margin-top: 0;
73154
}
74155

75156
/* Links */
@@ -199,20 +280,20 @@
199280
margin-bottom: 1em;
200281
}
201282

202-
/* Postamble styling */
203-
.postamble {
204-
text-align: center;
205-
font-size: 1em;
206-
}
283+
/* --- Postamble/Footer Styling --- */
284+
.postamble {
285+
margin-top: 3em;
286+
padding-top: 1.5em;
287+
border-top: 1px solid #4c566a;
288+
font-size: 0.9em;
289+
color: #616e88;
290+
}
207291

208-
.tag span {
209-
background-color: #ebcb8b;
210-
color: #3b4252;
211-
border: 1px solid #dcdccc;
212-
padding: 1px;
213-
border-radius: 4px;
214-
font-size: 0.4em;
215-
}
292+
/* You can also style the paragraph inside it if needed */
293+
.postamble p {
294+
margin: 0;
295+
text-align: center !important;
296+
}
216297

217298
.todo.TODO {
218299
background-color: #e79686;

build-site.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ https://ogbe.net/blog/blogging_with_org.html"
7979
(error "File not readable: %s" file)))
8080

8181
(setq org-html-postamble-format
82-
'(("en" "<div class=\"postamble\" style=\"text-align: center; margin-top: 20px; margin-bottom: 20px;\">
82+
'(("en" "<div class=\"postamble\">
8383
<p> Created by %c %s </p>
8484
</div>")))
8585

@@ -100,7 +100,6 @@ https://ogbe.net/blog/blogging_with_org.html"
100100
:with-tags t
101101
:with-toc nil
102102
:section-numbers nil
103-
;; --- CHANGE HERE: Disable sitemap in this component ---
104103
:auto-sitemap nil
105104
:time-stamp-file nil
106105
:html-doctype "html5"

content/about.org

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
#+author: mbrignall
33
#+TODO: TODO STARTED | DONE
44

5+
* General @@html:<i class="fa-regular fa-address-card"></i>@@
6+
57
[[./img/mbrignl.jpg]]
68

79
During the day I work as a Cyber Security professional in an Incident Response team. When not blocking attackers and analysing threats I can be found playing guitar.
810

9-
* Music things @@html:<i class="fa-regular fa-address-card"></i>@@
11+
* Music things @@html:<i class="fa-solid fa-music"></i>@@
1012

1113

1214
I am working on music for live performance hopefully before the end of the year (more on that soon).

content/books.org

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#+title: Previous Books
1+
#+title: Book Reviews
22
#+author: mbrignall
33
#+date: <2024-12-31>
44

55
* A Trading Game :finance:economics:currentaffairs:
66

7-
- Author: Gary Stephenson
8-
- Published date: 2025-01-30
7+
| Author | Gary Stephenson |
8+
| Published date | 2025-01-30 |
99

1010
#+begin_quote
1111
The rich get the assets, the poor get the debt, and then the poor have to pay their whole salary to the rich every year just to live in a house. The rich use that money to buy the rest of the assets from the middle class and then the problem gets worse every year.
@@ -21,8 +21,8 @@ Gary is clearly a very smart person. Someone who not only can convey complex ide
2121

2222
* America Over Water :folklore:music:america:
2323

24-
- Author: Shirley Collins
25-
- Published date: 2022-01-20
24+
| Author | Shirley Collins |
25+
| Published date | 2022-01-20 |
2626

2727
#+begin_quote
2828
If people don't like folk music, they haven't heard the real thing.
@@ -37,10 +37,12 @@ Shirley Collins writes her early days and travels with Folklorist, Alan Lomax as
3737

3838
@@html:<div style="clear: both;"></div>@@
3939

40+
#+keywords: folk
41+
4042
* The Cuckoo's Egg :cybersecurity:truecrime:
4143

42-
- Author: Clifford Stoll
43-
- Published date: 2005-09-13
44+
| Author | Clifford Stoll |
45+
| Published date | 2005-09-13 |
4446

4547
#+begin_quote
4648
The hacker didn't succeed through sophistication. Rather he poked at obvious places, trying to enter through unlock doors. Persistence, not wizardry, let him through.
@@ -68,17 +70,17 @@ On occasion the book felt a little like groundhog day due to the repetitive even
6870

6971
* Cult of the Dead Cow :cybersecurity:truecrime:hacking:tech:
7072

71-
- Author: Joseph Menn
72-
- Published date: 2020-06-02
73+
| Author | Joseph Menn |
74+
| Published date | 2020-06-02 |
7375

7476
[[https://www.littlebrown.co.uk/wp-content/uploads/2019/05/hbg-title-9781541724426-49.jpg?w=436]]
7577

7678
@@html:<div style="clear: both;"></div>@@
7779

7880
* Going Dark: The Secret Social Lives of Extremists :extremism:radicalisation:politics:
7981

80-
- Author: Julia Ebner
81-
- Published date: 2020-02-20
82+
| Author | Julia Ebner |
83+
| Published date | 2020-02-20 |
8284

8385
#+begin_quote
8486
Like the coronavirus pandemic, the current infodemic is a global phenomenon. We need to tackle it on an international level to avoid adding a third layer to this worldwide crisis: a societal one.
@@ -98,8 +100,8 @@ Additional content: [[https://www.youtube.com/watch?v=fAFV49e2W5M][Going Dark: T
98100

99101
* Rinsed: From Cartels to Crypto :truecrime:financial:technology:
100102

101-
- Author: Geoff White
102-
- Published date: 2024-06-13
103+
| Author | Geoff White |
104+
| Published date | 2024-06-13 |
103105

104106
#+begin_quote
105107
Rinsed is a triumph. If you want to understand how the chaotic world around us really works, read this book!
@@ -119,8 +121,11 @@ Money laundering and Cyber crime in general are mutually exclusive. Even the mos
119121

120122
* Podcasts:
121123

122-
- [[https://darknetdiaries.com/][Darknet Diaries]] (cybersecurity, hacking, fraud, technology)
123-
- [[https://www.qanonanonymous.com/][QAA Podcast]] (debunked conspiracy theories, current affairs, politics)
124-
- [[https://opensourcesecurity.io/category/podcast/][Open Source Security]] (cyber security, current affairs, technology)
125-
- [[https://www.otherworldpod.com/en-gb][Other World]] (paranormal, ghost/hauntings, unexplained experiences)
126-
- [[https://risky.biz/][Risky Biz]] (Cyber Security, Current Affairs, Threat Intelligence)
124+
Here is a list of podcasts I regularly listen to about a variety of topics:
125+
126+
127+
| [[https://darknetdiaries.com/][Darknet Diaries]] | cybersecurity, hacking, fraud, technology |
128+
| [[https://www.qanonanonymous.com/][QAA Podcast]] | debunked conspiracy theories, current affairs, politics |
129+
| [[https://opensourcesecurity.io/category/podcast/][Open Source Security]] | cyber security, current affairs, technology |
130+
| [[https://www.otherworldpod.com/en-gb][Other World]] | paranormal, ghost/hauntings, unexplained experiences |
131+
| [[https://risky.biz/][Risky Biz]] | Cyber Security, Current Affairs, Threat Intelligence |

content/index.org

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You'll likely find me talking about my favourite technologies. I may, from time
1313

1414
I hope you find something useful or thought-provoking!
1515

16-
*** Some topics, themes, and subjects
16+
Some topics, themes, and subjects:
1717

1818
- *Cybersecurity and Security Engineering*
1919
- *Web Development and Web Design*
@@ -23,12 +23,13 @@ I hope you find something useful or thought-provoking!
2323

2424
* Current Book(s) @@html:<i class="fa-solid fa-book"></i>@@
2525

26+
On rotation this month:
27+
2628
** To Anyone Who Ever Asks: The Life, Music, and Mystery of Connie Converse :music:folklore:
2729

28-
- Author: Howard Fishman
29-
- Publication date: 2024-05-02
30+
| Author | Howard Fishman |
31+
| Publication date | 2024-05-02 |
3032

31-
#+ATTR_HTML: :style float:left; margin-right: 15px; vertical-align: bottom; :width 75px
3233
https://shop.pem.org/cdn/shop/files/Untitled-2024-11-12T123048.527_1200x.jpg?v=1731432661
3334

3435
So far this book is awesome and intriguing. I have only read the first few chapters and listened to her music for sometime, but hadn't been aware of her strange career.
@@ -38,12 +39,13 @@ So far this book is awesome and intriguing. I have only read the first few chapt
3839

3940
* Previous Books @@html:<i class="fa-solid fa-book"></i>@@
4041

42+
Ongoing reads/ last completed book:
43+
4144
** Code: The Hidden Language of Computer Hardware and Software :computer:science:technology:
4245

43-
- Author: Charles Petzold
44-
- Publication date: 1999-09-29
46+
| Author | Charles Petzold |
47+
| Publication date | 1999-09-29 |
4548

46-
#+ATTR_HTML: :style float:left; margin-right: 15px; vertical-align: bottom; :width 75px
4749
https://m.media-amazon.com/images/I/61Hc-9h+-XL.jpg
4850

4951
I am half way through this book so far, it's fascinating. Covering the beginning of code/bits/bytes up to modern computing. It has illuminated some points of computing that I have not covered for some time. More on that soon.
@@ -57,13 +59,12 @@ In Progress... Still in progress.
5759

5860
@@html:<div style="clear: both;"></div>@@
5961

60-
6162
* Contact @@html:<i class="fa-solid fa-house"></i>@@
6263

6364
Feel free to reach out via email or GitHub:
6465

65-
- @@html:<i class="fa fa-envelope"></i>@@ [[mailto:hello@mbrig.nl][email me]]
66-
- @@html:<i class="fa-brands fa-github-alt"></i>@@ [[https://github.com/mbrignall][github/mbrignall]]
66+
| [[mailto:hello@mbrig.nl][email me]] | @@html:<i class="fa fa-envelope"></i>@@ |
67+
| [[https://github.com/mbrignall][github/mbrignall]] | @@html:<i class="fa-brands fa-github-alt"></i>@@ |
6768

6869
* Post Archive @@html:<i class="fa-solid fa-box-archive"></i>@@
6970

0 commit comments

Comments
 (0)