1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Fix: fix relative links on different domains

This commit is contained in:
rohan kumar 2020-11-18 17:02:24 -08:00
parent a4874efc07
commit e614497a36
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ theme = "etch-custom"
enableInlineShortcodes = true enableInlineShortcodes = true
# disablePathToLower = true # disablePathToLower = true
# uglyurls = true uglyurls = true
pygmentsCodeFences = true pygmentsCodeFences = true
pygmentsUseClasses = true pygmentsUseClasses = true
@ -24,14 +24,14 @@ name = "Rohan Kumar"
identifier = "posts" identifier = "posts"
name = "posts" name = "posts"
title = "posts" title = "posts"
url = "/posts/" url = "/posts.html"
weight = 10 weight = 10
[[menu.main]] [[menu.main]]
identifier = "about" identifier = "about"
name = "about" name = "about"
title = "about" title = "about"
url = "/about/" url = "/about.html"
weight = 20 weight = 20
[permalinks] [permalinks]

View file

@ -24,4 +24,4 @@ esac
rsync -rvzP --exclude "gemini" --exclude "*.gmi" public/ "$www_prefix/" rsync -rvzP --exclude "gemini" --exclude "*.gmi" public/ "$www_prefix/"
rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/" rsync -rvzP --exclude "*.html" public/gemini/ public/about public/posts "$gemini_prefix/"
rsync -rvzP public/posts/gemini/index.xml "$gemini_prefix/feed.xml" rsync -rvzP public/posts/gemini.xml "$gemini_prefix/feed.xml"

View file

@ -9,9 +9,9 @@
{{ $resources := slice -}} {{ $resources := slice -}}
{{ $resources = $resources | append (resources.Get "css/main.css") -}} {{ $resources = $resources | append (resources.Get "/css/main.css") -}}
{{ $resources = $resources | append (resources.Get "css/min770px.css") -}} {{ $resources = $resources | append (resources.Get "/css/min770px.css") -}}
{{ $dark := .Site.Params.dark | default "auto" -}} {{ $dark := .Site.Params.dark | default "auto" -}}
{{ if not (eq $dark "off") -}} {{ if not (eq $dark "off") -}}