Corregir urls de ficheros estáticos para poder publicar la web en una carpeta en vez de en la raíz

This commit is contained in:
Ales (Shagi) Zabala Alava 2021-09-17 12:39:22 +02:00
parent 406793b613
commit fd958653fe
4 changed files with 8 additions and 12 deletions

View File

@ -5,13 +5,13 @@
<title>{{ block "title" . }}
{{ .Site.Title }}
{{ end }}</title>
<link rel="stylesheet" href="/css/base.css">
<link rel="icon" href="/imgs/hm-favicon.png" type="image/png">
<link rel="stylesheet" href="{{ "css/base.css"|absURL }}">
<link rel="icon" href="{{ "imgs/hm-favicon.png"|absURL }}" type="image/png">
</head>
<body>
<header>
<a href="{{ "/" | absURL }}">
<img id="logo" src="/imgs/logo.png" alt="logo">
<a href="{{ ""|absURL }}">
<img id="logo" src="{{ "imgs/logo.png"|absURL }}" alt="logo">
</a>
{{ .Site.Title }}

View File

@ -3,18 +3,18 @@
<head>
<title>Hackmeeting 2019</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/home.css">
<link rel="stylesheet" href="{{ "css/home.css"|absURL }}">
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="http://es.hackmeeting.org/index.html">
<meta name="author" content="Hackmeeting">
<meta name="description" content="Autogestión, Hacktivismo, CryptoAnarquismo, Hackmeeting">
<link rel="icon" href="/imgs/hm-favicon.png" type="image/png">
<link rel="icon" href="{{ "imgs/hm-favicon.png"|absURL }}" type="image/png">
</head>
<body>
<header>
<img class="imgCenter" src="imgs/hm-favicon.png"/>
<img class="imgCenter" src="{{ "imgs/hm-favicon.png"|absURL }}"/>
<h1>{{ .Title }}</h2>
<h2>{{ .Params.when }}</h2>
<h2>{{ .Params.where }}</h2>

View File

@ -1,11 +1,6 @@
{{ define "main" }}
{{ .TableOfContents }}
{{ .Content }}
{{ range .Pages }}
{{ partial "nodo" . }}
{{ .Render "li" }}
{{ end }}
{{ end }}
{{ define "sidebar_menu" }}

View File

@ -3,6 +3,7 @@ body {
gap: 0 1em;
flex-wrap: wrap;
flex-direction: row;
margin: 0;
}
header {