Skip to content

Commit 32f832b

Browse files
committed
update to cover_with_nav style cover
1 parent 27d2aaa commit 32f832b

7 files changed

Lines changed: 48 additions & 10 deletions

File tree

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[deps]
2-
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
32
FranklinUtils = "dcd8a645-c81d-482f-af4b-568f72f3e16d"
3+
AcademicWebsite = "bf8d10fa-a935-41a3-9f31-ee6ce4bca516"
4+
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"

_layout/basic/stylesheets.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313

1414
{{if cover}}
1515
<link rel="stylesheet" href="/css/cover.css" />
16-
{{else}}
16+
{{end}}
1717
<link rel="stylesheet" href="/css/nav.css" />
1818
<link rel="stylesheet" href="/css/sidebar.css" />
1919
<link rel="stylesheet" href="/css/cards.css" />
2020
<link rel="stylesheet" href="/css/showcase.css" />
2121
<link rel="stylesheet" href="/css/software.css" />
2222
<link rel="stylesheet" href="/css/posts.css" />
23-
{{end}}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{insert extra/nav.html}}
2+
<div class="cover">
3+
<div class="cover-photo">{{author_img}}</div>
4+
5+
<div class="cover-body">
6+
<p class="title">{{author_name}}</p>
7+
8+
<!-- Pronouns are a class -->
9+
{{pronouns_heading}}
10+
11+
<!-- Bio is a class -->
12+
{{short_bio}}
13+
14+
<button class="cover-button">
15+
<a href="/assets/items/cv.pdf">CV</a>
16+
</button>
17+
</div>
18+
<div class="cover-links">{{cover_links}}</div>
19+
</div>

_sass/cover.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ body {
6363
display: block;
6464
margin-bottom: 10%;
6565
}
66+
67+
.cover-button {
68+
width: auto;
69+
padding: 10px;
70+
display: inline;
71+
color: theme.$primary-foreground;
72+
background-color: theme.$primary-background;
73+
border: none;
74+
align-content: center;
75+
76+
a {
77+
color: theme.$primary-foreground;
78+
font-size: theme.$xlarge-font;
79+
text-decoration: none;
80+
}
81+
}
6682
}
6783

6884
.cover-nav {

config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ ignore = [
2121
# RSS
2222

2323
generate_rss = true
24-
website_title = "Brian's Website"
25-
website_descr = "Brian's Academic Website"
26-
website_url = "https://cavenfish.github.io/"
24+
website_title = "Your Title"
25+
website_descr = "Your Description"
26+
website_url = "https://your-path.com/"
2727

2828
+++

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22

33
cover = true
4-
style = "default"
4+
style = "default_with_nav"
55

66
+++

utils/js/generate_jdenticons.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ function fill_toml(data, names) {
4040
function main() {
4141
const file = fs.readFileSync("./config.toml", "utf8");
4242
const data = toml.parse(file);
43-
const miss = find_missing_pics(data.team);
4443

45-
miss.map(generate_jdenticons);
44+
if (data.hasOwnPropery("team")) {
45+
const miss = find_missing_pics(data.team);
4646

47-
fill_toml(data, miss);
47+
miss.map(generate_jdenticons);
48+
49+
fill_toml(data, miss);
50+
}
4851
}
4952

5053
main();

0 commit comments

Comments
 (0)