Skip to content

Commit 6128aff

Browse files
Add footer
1 parent 7becb5b commit 6128aff

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ We give the semantics of the various fields (all of whom are optional).
6262

6363
- `pronouns`: A string to show your pronouns.
6464

65+
- `footer`: Some data to put in the footer of the page. You can use it to put
66+
some disclaimer, or maybe to advertise basicpage. ☺️
67+
If nothing is provided, then the footer doesn't appear, and thus the
68+
horizontal that precedes is will not show either.
69+
6570
### OpenGraph
6671

6772
OpenGraph carries information that used by social media and messaging app to

pandoc/template.html4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,10 @@
152152
$include-after$
153153
$endfor$
154154
</main>
155+
$if(footer)$
156+
<footer>
157+
$footer$
158+
</footer>
159+
$endif$
155160
</body>
156161
</html>

src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gitlab: gitlab.com
2121
bitbucket: bitbucket.com
2222
bluesky: https://bsky.app/
2323
linkedin: https://www.linkedin.com
24+
footer: Based on the [basicpage template](https://github.com/basicpage/basicpage.github.io), made to be easy to use! 🎓
2425
---
2526

2627
I am a (fake) PhD student, working on 👽 science on all kinds of related topics.

website/style.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--headerbg: transparent;
44
--navbg: transparent;
55
--mainbg: transparent;
6+
--footerbg: transparent;
67
--navlink: #56473d;
78
--navborder: #56473d;
89
}
@@ -177,7 +178,19 @@ main h3, main h4, main h5, main h6 {
177178
margin-bottom: 6px;
178179
}
179180

180-
/* KBD */
181+
/*** FOOTER ***/
182+
183+
footer {
184+
width: auto;
185+
margin: auto;
186+
max-width: 920px;
187+
background: var(--footerbg);
188+
padding: 15px;
189+
padding-top: 30px;
190+
border-top: 1px solid var(--navborder);
191+
}
192+
193+
/* KBD (keyboard) */
181194

182195
kbd {
183196
background-color: #eee;

0 commit comments

Comments
 (0)