Link and stylesheet tweaks

pull/1/head
mat ess 2022-08-12 19:00:13 -04:00
parent d9e09095cc
commit f410b83500
3 changed files with 10 additions and 14 deletions

View File

@ -1,13 +1,10 @@
base_url = "https://mat.services"
title = "mat.services"
description = "the personal website of matthew ess"
default_language = "en"
compile_sass = true
build_search_index = false
generate_feed = true
theme = "apollo"
@ -19,7 +16,6 @@ external_links_target_blank = true
external_links_no_referrer = true
[extra]
theme = "auto"
favicon = "/favicon.svg"
stylesheets = []
@ -33,9 +29,9 @@ cdns = [
]
menu = [
{ name = "/posts", url = "/posts" },
{ name = "/projects", url = "/projects" },
{ name = "/about", url = "/about" },
{ name = "/posts", url = "@/posts/_index.md" },
{ name = "/projects", url = "@/projects.md" },
{ name = "/about", url = "@/about.md" },
{ name = "git", url = "https://git.mat.services/explore/repos", external = true },
]

View File

@ -29,16 +29,16 @@
<link href={{ cdn }} rel="stylesheet">
{% endfor %}
{% else %}
{% endif %}
<link href={{ get_url(path="fonts.css" ) }} rel="stylesheet" />
{% endif %}
{# RSS #}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml",
trailing_slash=false) }}">
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href={{ get_url(path="atom.xml" ,
trailing_slash=false) }}>
{# Theme #}
<link rel="stylesheet" type="text/css" href="{{ get_url(path="theme/light.css") }}" />
<link rel="stylesheet" type="text/css" href="{{ get_url(path="theme/dark.css") }}"
<link rel="stylesheet" type="text/css" href={{ get_url(path="theme/light.css" ) }} />
<link rel="stylesheet" type="text/css" href={{ get_url(path="theme/dark.css" ) }}
media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="main.css" ) }} />

View File

@ -7,9 +7,9 @@
{% for menu in config.extra.menu %}
{%- set external = menu.external | default(value=false) -%}
{%- if external %}
<a href={{ menu.url }} target="_blank" rel="noopener noreferrer">{{ menu.name }}</a>
<a href={{ get_url(path=menu.url) }} target="_blank" rel="noopener noreferrer">{{ menu.name }}</a>
{%- else %}
<a href={{ menu.url }}>{{ menu.name }}</a>
<a href={{ get_url(path=menu.url) }}>{{ menu.name }}</a>
{%- endif -%}
{% endfor %}
</nav>