Remove leading slash from links so that theme is compatible with Hugo Themes Site
This commit is contained in:
@@ -8,4 +8,4 @@ theme = "aether"
|
||||
[params]
|
||||
brand = "aether"
|
||||
description = "aether Hugo theme for blogs"
|
||||
bgimg = "/img/ignasi_pattern_s.png"
|
||||
bgimg = "img/ignasi_pattern_s.png"
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>{{ if ne .URL "/" }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title>
|
||||
<title>{{ if not .IsHome }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title>
|
||||
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
||||
<!-- Standard favicon -->
|
||||
{{ if (fileExists "static/img/favicon.ico") -}}
|
||||
<link rel="icon" type="image/x-icon" href="{{ "/img/favicon.ico" | absURL}}">
|
||||
<link rel="icon" type="image/x-icon" href="{{ "img/favicon.ico" | absURL}}">
|
||||
{{- end }}
|
||||
<!-- Recommended favicon format -->
|
||||
{{ if (fileExists "static/img/favicon.png") -}}
|
||||
<link rel="icon" type="image/png" href="{{ "/img/favicon.png" | absURL}}">
|
||||
<link rel="icon" type="image/png" href="{{ "img/favicon.png" | absURL}}">
|
||||
{{- end }}
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
|
||||
<link rel="stylesheet" href="{{ "/css/style.css" | absURL}}" />
|
||||
<link rel="stylesheet" href="{{ "/css/xcode.css" | absURL}}" />
|
||||
<link rel="stylesheet" href="{{ "css/style.css" | absURL}}" />
|
||||
<link rel="stylesheet" href="{{ "css/xcode.css" | absURL}}" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="{{ "/css/latolatinfonts.css" | absURL}}" />
|
||||
<link rel="stylesheet" href="{{ "css/latolatinfonts.css" | absURL}}" />
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{ if isset $.Site.Params "bgimg" }}
|
||||
<style>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
|
||||
href="/" class="card home-card" style="background-image: url({{if isset .Site.Params "homeimg"}} {{ .Site.Params.homeimg | absURL | safeCSS }} {{ else }} /img/grey-cloud.jpg | absURL {{ end }} )" rel="bookmark" >
|
||||
href="{{ .Site.BaseURL }}" class="card home-card" style="background-image: url({{if isset .Site.Params "homeimg"}} {{ .Site.Params.homeimg | absURL | safeCSS }} {{ else }} img/grey-cloud.jpg | absURL {{ end }} )" rel="bookmark" >
|
||||
Home
|
||||
</a>
|
||||
@@ -1,5 +1,5 @@
|
||||
<nav class="nav-bar side-padding">
|
||||
<h1 class="nav-header"><a href="/" class="nav-text">
|
||||
<h1 class="nav-header"><a href="{{ .Site.BaseURL }}" class="nav-text">
|
||||
{{ if isset $.Site.Params "brand"}}
|
||||
{{- $.Site.Params.brand -}}
|
||||
{{ else }}
|
||||
@@ -17,7 +17,7 @@
|
||||
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ range $key, $value := .Site.Taxonomies.categories }}
|
||||
<li><a href="{{ (printf "%s%s" "/categories/" ($key | urlize)) | absURL }}" class="hamburger-menu-overlay-link">{{ $key | humanize }}</a></li>
|
||||
<li><a href="{{ (printf "%s%s" "categories/" ($key | urlize)) | absURL }}" class="hamburger-menu-overlay-link">{{ $key | humanize }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script src="{{ "/js/core.js" | absURL }}"></script>
|
||||
<script src="{{ "js/core.js" | absURL }}"></script>
|
||||
<script>
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
Reference in New Issue
Block a user