fix links and titles, gen rss

This commit is contained in:
avitex 2020-04-12 03:49:16 +10:00
parent 446a5a1d0f
commit 6dddf991f7
Signed by: avitex
GPG Key ID: 38C76CBF3749D62C
5 changed files with 8 additions and 4 deletions

View File

@ -5,6 +5,7 @@ description = "Home of avitex"
compile_sass = true
highlight_code = true
build_search_index = true
generate_rss = true
taxonomies = [
{name = "blog/tags", rss = true},

View File

@ -1,4 +1,5 @@
+++
title = "Bio"
+++
Nothing here... yet

View File

@ -1,4 +1,5 @@
+++
title = "Social"
+++
## Identity

View File

@ -1,6 +1,6 @@
{% macro link(url) %}
{%- if url is starting_with("/") or url is starting_with("./") -%}
{{ get_url(path=url) }}
{{ get_url(path=url, trailing_slash=false) }}
{%- else -%}
{{ url }}
{%- endif -%}

View File

@ -6,9 +6,10 @@
<meta name="author" content="{{ config.extra.author }}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ get_url(path="site.css") }}"/>
<link rel="stylesheet" href="{{ get_url(path="fonts.min.css") }}"/>
<link rel="icon" type="image/png" href="{{ get_url(path="favicon.png") }}">
<link rel="stylesheet" href="{{ get_url(path="site.css") }}" />
<link rel="stylesheet" href="{{ get_url(path="fonts.min.css") }}" />
<link rel="icon" type="image/png" href="{{ get_url(path="favicon.png") }}" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") }}" />
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
</head>
<body>