Remove some unnecessary spacing
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
|
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
|
||||||
href="{{ .Permalink }}" class="card blog-card" rel="bookmark" >
|
href="{{ .Permalink }}" class="card blog-card" rel="bookmark" >
|
||||||
{{ if isset .Params "featuredimage" }}
|
{{ if isset .Params "featuredimage" -}}
|
||||||
<div class="card-img-container">
|
<div class="card-img-container">
|
||||||
<picture>
|
<picture>
|
||||||
{{ if (fileExists (printf "%s/%s" "static" (replace (.Params.featuredimage) (path.Ext .Params.featuredimage) ".webp"))) -}}
|
{{ if (fileExists (printf "%s/%s" "static" (replace (.Params.featuredimage) (path.Ext .Params.featuredimage) ".webp"))) -}}
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<img src="{{.Params.featuredimage | absURL }}" class="card-img" {{ if isset .Params "featuredimagedescription" }}alt="{{.Params.featuredimagedescription}}"{{end}}>
|
<img src="{{.Params.featuredimage | absURL }}" class="card-img" {{ if isset .Params "featuredimagedescription" }}alt="{{.Params.featuredimagedescription}}"{{end}}>
|
||||||
</picture>
|
</picture>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
<article class="card-body">
|
<article class="card-body">
|
||||||
<h2 class="card-title">{{ .Title }}</h2>
|
<h2 class="card-title">{{ .Title }}</h2>
|
||||||
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}</p>
|
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}</p>
|
||||||
|
|||||||
@@ -8,17 +8,17 @@
|
|||||||
<p class="list-header-subtext">{{ .Description }}</p>
|
<p class="list-header-subtext">{{ .Description }}</p>
|
||||||
<h1 class="list-header-title">{{ .Title }}</h1>
|
<h1 class="list-header-title">{{ .Title }}</h1>
|
||||||
</header>
|
</header>
|
||||||
{{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) }}
|
{{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
|
||||||
{{ range $paginator.Pages }}
|
{{- range $paginator.Pages -}}
|
||||||
{{ .Render "li" }}
|
{{ .Render "li" }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</main>
|
</main>
|
||||||
{{ if or ($paginator.HasPrev) ($paginator.HasNext) }}
|
{{ if or ($paginator.HasPrev) ($paginator.HasNext) -}}
|
||||||
<nav class="pagination-nav side-padding">
|
<nav class="pagination-nav side-padding">
|
||||||
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination-newer">< Newer Posts</a>{{ end }}
|
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination-newer">< Newer Posts</a>{{ end }}
|
||||||
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination-older">Older Posts ></a>{{ end }}
|
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination-older">Older Posts ></a>{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
{{ partial "scripts.html" . }}
|
{{ partial "scripts.html" . }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -4,14 +4,12 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>{{ if not .IsHome }}{{ .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}}" />
|
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
||||||
<!-- Standard favicon -->
|
|
||||||
{{ if (fileExists "static/img/favicon.ico") -}}
|
{{ 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 }}
|
{{ end -}}
|
||||||
<!-- Recommended favicon format -->
|
|
||||||
{{ if (fileExists "static/img/favicon.png") -}}
|
{{ 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 }}
|
{{ end -}}
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
|
||||||
<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="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/main.min.css" | absURL}}" />
|
<link rel="stylesheet" href="{{ "css/main.min.css" | absURL}}" />
|
||||||
@@ -19,11 +17,11 @@
|
|||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ if isset $.Site.Params "bgimg" }}
|
{{ if isset $.Site.Params "bgimg" -}}
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background: #ecedef url("{{ $.Site.Params.bgimg | absURL | safeCSS }}") repeat;
|
background: #ecedef url("{{ $.Site.Params.bgimg | absURL | safeCSS }}") repeat;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</head>
|
</head>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<nav class="nav-bar side-padding">
|
<nav class="nav-bar side-padding">
|
||||||
<h1 class="nav-header"><a href="{{ .Site.BaseURL }}" class="nav-text">
|
<h1 class="nav-header"><a href="{{ .Site.BaseURL }}" class="nav-text">
|
||||||
{{ if isset $.Site.Params "brand"}}
|
{{- if isset $.Site.Params "brand"}}
|
||||||
{{- $.Site.Params.brand -}}
|
{{- $.Site.Params.brand -}}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{- $.Site.Title -}}
|
{{- $.Site.Title -}}
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
</a></h1>
|
</a></h1>
|
||||||
<div class="hamburger-menu">
|
<div class="hamburger-menu">
|
||||||
<button onclick="hamburgerMenuPressed.call(this)" aria-haspopup="true" aria-expanded="false" aria-controls="menu" aria-label="Menu">
|
<button onclick="hamburgerMenuPressed.call(this)" aria-haspopup="true" aria-expanded="false" aria-controls="menu" aria-label="Menu">
|
||||||
@@ -13,12 +13,12 @@
|
|||||||
</button>
|
</button>
|
||||||
<ul id="menu" class="hamburger-menu-overlay">
|
<ul id="menu" class="hamburger-menu-overlay">
|
||||||
<li><a href="{{ .Site.BaseURL }}" class="hamburger-menu-overlay-link">Home</a></li>
|
<li><a href="{{ .Site.BaseURL }}" class="hamburger-menu-overlay-link">Home</a></li>
|
||||||
{{ range where .Site.Pages "Params.displayinmenu" true }}
|
{{ range where .Site.Pages "Params.displayinmenu" true -}}
|
||||||
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
|
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
{{ range $key, $value := .Site.Taxonomies.categories }}
|
{{ 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 }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
Reference in New Issue
Block a user