Revert "layouts: remove now needless standalone type"

Unfortunately the upstream variant still unconditionally includes
pagination which we do not want.

This reverts commit 32c63b7fbd.
This commit is contained in:
Harsh Shandilya 2020-08-30 22:36:44 +05:30
parent 3b14c74892
commit cb31e5e5d4
6 changed files with 58 additions and 0 deletions

View File

@ -1,6 +1,8 @@
+++
title = "About Me"
id = "about"
type = "standalone"
layout = "standalone"
aliases = [
"/about",
"/contact",

View File

@ -1,6 +1,8 @@
+++
title = "Android Password Store Privacy Policy"
id = "aps-privacy"
type = "standalone"
layout = "standalone"
+++
## Privacy Policy

View File

@ -1,6 +1,8 @@
+++
title = "Projects"
id = "projects"
type = "standalone"
layout = "standalone"
+++
Over the years I have worked on and contributed to various projects in the Android community. My personal projects can be found on [GitHub](https://github.com/msfjarvis),

View File

@ -1,5 +1,7 @@
+++
title = "Uses"
type = "standalone"
layout = "standalone"
+++
## Editor + Terminal

View File

@ -1,6 +1,8 @@
+++
title = "Viscerion Privacy Policy"
id = "viscerion-privacy"
type = "standalone"
layout = "standalone"
+++
## Privacy Policy

View File

@ -0,0 +1,48 @@
{{ define "styles" }}
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/post.scss" "dest" "css/post.css") }}
{{ end }}
{{ define "main" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
<div class="flex-wrapper">
<div class="post__container">
<div class="post">
<header class="post__header">
<h1 id="post__title">{{.Title}}</h1>
</header>
<article class="post__content">
{{ partial "anchored-headings.html" .Content }}
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
</article>
<footer class="post__footer">
{{ partial "social-icons.html" .}}
<p>{{ replace .Site.Copyright "{year}" now.Year }}</p>
</footer>
</div>
</div>
{{ if .Params.toc }}
<div class="toc-container">
{{ if .Site.Params.showPageTitleInTOC }} <div class="toc-post-title">{{ .Title }}</div> {{ end }}
{{ .TableOfContents }}
</div>
{{ end }}
</div>
{{ end }}
{{ define "scripts" }}
{{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}}
<script src="https://unpkg.com/prismjs@1.20.0/components/prism-core.min.js"></script>
{{/* Automatically loads the needed languages to highlight the code blocks. */}}
<script src="https://unpkg.com/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"
data-autoloader-path="https://unpkg.com/prismjs@1.20.0/components/"></script>
{{ if .Params.toc }}
<script src="/js/table-of-contents.js"></script>
{{ end }}
{{ end }}