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

View File

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

View File

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

View File

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