Link and stylesheet tweaks
parent
d9e09095cc
commit
f410b83500
10
config.toml
10
config.toml
|
@ -1,13 +1,10 @@
|
||||||
base_url = "https://mat.services"
|
base_url = "https://mat.services"
|
||||||
title = "mat.services"
|
title = "mat.services"
|
||||||
description = "the personal website of matthew ess"
|
description = "the personal website of matthew ess"
|
||||||
|
|
||||||
default_language = "en"
|
default_language = "en"
|
||||||
|
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
|
|
||||||
build_search_index = false
|
build_search_index = false
|
||||||
|
|
||||||
generate_feed = true
|
generate_feed = true
|
||||||
|
|
||||||
theme = "apollo"
|
theme = "apollo"
|
||||||
|
@ -19,7 +16,6 @@ external_links_target_blank = true
|
||||||
external_links_no_referrer = true
|
external_links_no_referrer = true
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
theme = "auto"
|
|
||||||
favicon = "/favicon.svg"
|
favicon = "/favicon.svg"
|
||||||
stylesheets = []
|
stylesheets = []
|
||||||
|
|
||||||
|
@ -33,9 +29,9 @@ cdns = [
|
||||||
]
|
]
|
||||||
|
|
||||||
menu = [
|
menu = [
|
||||||
{ name = "/posts", url = "/posts" },
|
{ name = "/posts", url = "@/posts/_index.md" },
|
||||||
{ name = "/projects", url = "/projects" },
|
{ name = "/projects", url = "@/projects.md" },
|
||||||
{ name = "/about", url = "/about" },
|
{ name = "/about", url = "@/about.md" },
|
||||||
{ name = "git", url = "https://git.mat.services/explore/repos", external = true },
|
{ name = "git", url = "https://git.mat.services/explore/repos", external = true },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -29,16 +29,16 @@
|
||||||
<link href={{ cdn }} rel="stylesheet">
|
<link href={{ cdn }} rel="stylesheet">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% endif %}
|
|
||||||
<link href={{ get_url(path="fonts.css" ) }} rel="stylesheet" />
|
<link href={{ get_url(path="fonts.css" ) }} rel="stylesheet" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# RSS #}
|
{# RSS #}
|
||||||
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml",
|
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href={{ get_url(path="atom.xml" ,
|
||||||
trailing_slash=false) }}">
|
trailing_slash=false) }}>
|
||||||
|
|
||||||
{# Theme #}
|
{# 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/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/dark.css" ) }}
|
||||||
media="(prefers-color-scheme: dark)" />
|
media="(prefers-color-scheme: dark)" />
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="main.css" ) }} />
|
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="main.css" ) }} />
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
{% for menu in config.extra.menu %}
|
{% for menu in config.extra.menu %}
|
||||||
{%- set external = menu.external | default(value=false) -%}
|
{%- set external = menu.external | default(value=false) -%}
|
||||||
{%- if external %}
|
{%- 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 %}
|
{%- else %}
|
||||||
<a href={{ menu.url }}>{{ menu.name }}</a>
|
<a href={{ get_url(path=menu.url) }}>{{ menu.name }}</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue