+ Adding proper index page building
+ Favicon to head section of pages * Fixed date formatting in multiple places + Skeleton for posts which I don't think is being used but I could be wrong
This commit is contained in:
parent
9e40ea463c
commit
dea636c3ae
@ -3,10 +3,19 @@
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="layout">
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
<!-- This is where we grab all the posts with their heaers and shit -->
|
||||
<div class="content">
|
||||
<!-- Title | date | description is all we want from each post -->
|
||||
{{ $articles := where .Site.Pages "Params.Category" "article" }}
|
||||
{{ range $articles }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<blockquote><p>{{.Date.Format "January 2, 2006"}}</p></blockquote>
|
||||
{{ if isset .Params "description" }}
|
||||
<blockquote><p>{{ .Description }}</p></blockquote>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
||||
{{ $title := print .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title}}{{end}}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
||||
|
13
themes/shockrah.xyz/layouts/partials/posts.html
Normal file
13
themes/shockrah.xyz/layouts/partials/posts.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ partial "metadata.html" }}
|
||||
<a class="summary" href="{{ .RelPermalink }}">
|
||||
<p>{{ .Summary }}</p>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user