Skip to content

Commit

Permalink
Allow additional links in the navbar and increased heading sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
awinterstein committed Jan 6, 2025
1 parent 7e5e755 commit 22743a9
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
12 changes: 10 additions & 2 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@

@layer base {
h1 {
@apply text-2xl;
@apply text-3xl;
}

h2 {
@apply text-xl;
@apply text-2xl;
@apply py-2;
}

h3 {
@apply text-xl;
}

h4 {
@apply text-lg;
}

p {
@apply pb-4;
}
Expand Down
2 changes: 1 addition & 1 deletion static/css/main.css

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@
</div>
<div class="hidden sm:block sm:ml-6">
<div class="nav-links flex space-x-4">
{{ macros::navbar_button(url="", text=trans(key="home", lang=lang)) }}
{% if config.extra.navbar.items %}
{% for item in config.extra.navbar.items %}
{% if lang == item.lang %}
{% for link in item.links %}
{{ macros::navbar_button(url=link.url, text=link.name) }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{{ macros::navbar_button(url="projects", text=trans(key="projects", lang=lang)) }}
{{ macros::navbar_button(url="skills", text=trans(key="skills", lang=lang)) }}

Expand Down Expand Up @@ -168,8 +176,15 @@
<div id="mobile-menu" class="sm:hidden fixed z-10 overflow-hidden">
<div
class="nav-links flex flex-col space-y-4 items-center w-screen bg-gray-200 dark:bg-gray-800 transition-all ease-out duration-500 h-0">
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
{{ macros::navbar_button(url="", text=trans(key="home", lang=lang)) }}
{% if config.extra.navbar.items %}
{% for item in config.extra.navbar.items %}
{% if lang == item.lang %}
{% for link in item.links %}
{{ macros::navbar_button(url=link.url, text=link.name) }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{{ macros::navbar_button(url="projects", text=trans(key="projects", lang=lang)) }}
{{ macros::navbar_button(url="skills", text=trans(key="skills", lang=lang)) }}

Expand Down
12 changes: 12 additions & 0 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ enable_multilingual = false

#main_skills_threshold = 5 # Set this variable to show all skills with at least n projects as main skills

[extra.navbar]
#title = ""

#items = [
# { lang = "en", links = [
# { url = "resume", name = "CV" },
# ] },
# { lang = "de", links = [
# { url = "resume", name = "Lebenslauf" },
# ] }
#]

[extra.sidebar]
#items = [
# { lang = "en", links = [
Expand Down

0 comments on commit 22743a9

Please sign in to comment.