*Major Overhaul* Give theme a modern look!
This commit is contained in:
42
layouts/_default/home.html
Normal file
42
layouts/_default/home.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
|
||||
{{ partial "head.html" . }}
|
||||
<body class="list-body">
|
||||
{{ partial "nav-bar.html" . }}
|
||||
<main class="card-container side-gutter">
|
||||
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
|
||||
<header class="home-header">
|
||||
<div class="home-blob-text-container">
|
||||
{{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
|
||||
{{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}
|
||||
</div>
|
||||
{{ with resources.Get "img/faceshot.png" -}}
|
||||
<div class="home-faceshot-card">
|
||||
<img class="home-faceshot" src="{{ .Permalink }}" >
|
||||
</div>
|
||||
{{ end -}}
|
||||
</header>
|
||||
{{- end }}
|
||||
{{ with .Content -}}
|
||||
<section class="list-header-content">
|
||||
{{ . }}
|
||||
</section>
|
||||
{{- end }}
|
||||
{{ $pages := .Pages }}
|
||||
{{ if .IsHome }}
|
||||
{{ $pages = .Site.RegularPages }}
|
||||
{{ end }}
|
||||
{{ $paginator := .Paginate (where $pages "Params.displayinlist" "!=" false) -}}
|
||||
{{- range $paginator.Pages -}}
|
||||
{{ .Render "li" }}
|
||||
{{- end }}
|
||||
</main>
|
||||
{{ if or ($paginator.HasPrev) ($paginator.HasNext) -}}
|
||||
<nav class="pagination-nav side-padding">
|
||||
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination-newer pagination-text">< Newer Posts</a>{{ end }}
|
||||
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination-older pagination-text">Older Posts ></a>{{ end }}
|
||||
</nav>
|
||||
{{- end }}
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
<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 bc-next" rel="bookmark" >
|
||||
{{ with .Resources.GetMatch "featuredImage" }}
|
||||
<div class="card-img-container">
|
||||
<p class="card-img-overlay">Next Article</p>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{{ with $.Resources.GetMatch (replace (.Title) (path.Ext (.Title)) ".webp") -}}
|
||||
<source srcset="{{ .Permalink }}" type="image/webp">
|
||||
{{- end }}
|
||||
{{ $thumbnail := .Fit "400x300 Lanczos" }}
|
||||
{{ $thumbnail := .Fit "800x600 Lanczos" }}
|
||||
<source srcset="{{ $thumbnail.Permalink }}">
|
||||
<img src="{{ $thumbnail.Permalink }}" class="card-img" {{ with .Params.description -}} alt="{{ . }}" {{- end }}>
|
||||
</picture>
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
{{ with .PrevInSection }}
|
||||
{{ .Render "li-next" }}
|
||||
{{ end }}
|
||||
{{ partial "home-card.html" . }}
|
||||
</nav>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "scripts.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
<footer>
|
||||
|
||||
<footer class="side-padding">
|
||||
<a href="{{ $.Site.BaseURL }}" class="footer-link">
|
||||
{{ with resources.Get "icons/home-page.png" }}
|
||||
<img class="footer-icon" src="{{ .Permalink }}">
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ if isset $.Site.Params "github"}}
|
||||
<a href="{{ $.Site.Params.github }}" class="footer-link">
|
||||
{{ with resources.Get "icons/github.png" }}
|
||||
<img class="footer-icon" src="{{ .Permalink }}" />
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if isset $.Site.Params "linkedin"}}
|
||||
<a href="{{ $.Site.Params.linkedin }}" class="footer-link">
|
||||
{{ with resources.Get "icons/linkedin.png" }}
|
||||
<img class="footer-icon" src="{{ .Permalink }}" />
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</footer>
|
||||
@@ -27,9 +27,8 @@
|
||||
{{ end -}}
|
||||
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
|
||||
{{ $mainStyle := resources.Get "css/style.css" }}
|
||||
{{ $fontStyle := resources.Get "css/latolatinfonts.css" }}
|
||||
{{ $overrideStyle := resources.Get "css/override.css" }}
|
||||
{{ $style := slice $normalizeStyle $fontStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
|
||||
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
|
||||
<link href="{{ $style.Permalink }}" rel="stylesheet">
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
|
||||
Reference in New Issue
Block a user