1
Fork 0

Remove old templates

This commit is contained in:
Jake Howard 2017-10-24 20:25:19 +01:00
parent 26bdef3fd4
commit 360d8bc1a3
Signed by: jake
GPG key ID: 57AFB45680EDD477
23 changed files with 0 additions and 369 deletions

View file

View file

@ -1,20 +0,0 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
{{ partial "content.html" . }}
{{ if ne .Params.hide_pages "true" }}
<div class="row">
{{ $parent := . }}
{{ $sorted_pages := sort .Site.Pages (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}}
{{ $valid_pages := where $sorted_pages ".Parent" "!=" nil }}
{{ $valid_pages := where $valid_pages ".Params.hide_in_list" "!=" "true" }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ if $parent.Params.show_images }}
{{ partial "box_image.html" . }}
{{ else }}
{{ partial "box.html" . }}
{{ end }}
{{ end }}
</div>
{{ end }}
</section>
{{ partial "page_end.html" . }}

View file

@ -1,17 +0,0 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
{{ partial "content.html" . }}
<div class="search-input-container">
<input id="search" type="text" placeholder="&#8981;"/>
</div>
<div class="row search-results">
{{ $valid_pages := where .Site.Pages ".Parent" "!=" nil }}
{{ $valid_pages := where $valid_pages "Kind" "page" }}
{{ $valid_pages := where $valid_pages ".UniqueID" "!=" .UniqueID }}
{{ range (sort $valid_pages ".LinkTitle") }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
</section>
{{ partial "page_end.html" . }}

View file

@ -1,5 +0,0 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
{{ partial "content.html" . }}
</section>
{{ partial "page_end.html" . }}

View file

@ -1,10 +0,0 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
{{ partial "content.html" . }}
<div class="row">
{{ range .Pages.ByTitle }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
</section>
{{ partial "page_end.html" . }}

View file

@ -1,10 +0,0 @@
{{ partial "page_start.html" . }}
<section id="main" class="container">
{{ partial "content.html" . }}
<div class="row">
{{ range .Pages.ByTitle }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
</section>
{{ partial "page_end.html" . }}

View file

@ -1,94 +0,0 @@
{{ partial "page_start.html" . }}
<section id="banner">
<h2>{{ title .Site.Title }}</h2>
<p><i>{{ title .Site.Params.author_name }}</i></p>
</section>
<section id="main" class="container">
<section class="box special">
<header class="major">
<h2>{{ plainify .Content }}</h2>
<p>I'm Jake. A software engineer with a passion for security and privacy. This is my website, a home for my projects, blog posts, and anything else for that matter.</p>
</header>
</section>
<section class="box special features">
<div class="features-row">
<section>
{{ with .Site.GetPage "section" "posts" }}
<a href="{{ .Permalink }}" class="no-underline">
<span class="icon major fa-comments accent2"></span>
<h3>{{ .LinkTitle }}</h3>
</a>
<p>
{{ partial "summary_string.html" . }}
</p>
{{ end }}
</section>
<section>
{{ with .Site.GetPage "section" "projects" }}
<a href="{{ .Permalink }}" class="no-underline">
<span class="icon major fa-code accent3"></span>
<h3>{{ .LinkTitle }}</h3>
</a>
<p>
{{ partial "summary_string.html" . }}
</p>
{{ end }}
</section>
</div>
<div class="features-row">
<section>
{{ with .Site.GetPage "section" "setup" }}
<a href="{{ .Permalink }}" class="no-underline">
<span class="icon major fa-desktop accent4"></span>
<h3>{{ .LinkTitle }}</h3>
</a>
<p>
{{ partial "summary_string.html" . }}
</p>
{{ end }}
</section>
<section>
{{ with .Site.GetPage "section" "robotics" }}
<a href="{{ .Permalink }}" class="no-underline">
<span class="icon major fa-cogs accent5"></span>
<h3>{{ .LinkTitle }}</h3>
</a>
<p>
{{ partial "summary_string.html" . }}
</p>
{{ end }}
</section>
</div>
</section>
<div class="index-list" id="projects">
<div class="align-center">
<h2><a href="/projects/">Projects</a></h2>
</div>
<div class="row">
{{ range first .Site.Params.index_items (where .Data.Pages.ByDate "Section" "projects") }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
<div class="align-center">
<h4><a href="/projects/">All Projects</a></h4>
</div>
</div>
<div class="index-list" id="recent-posts">
<div class="align-center">
<h2><a href="/posts/">Recent Posts</a></h2>
</div>
<div class="row">
{{ range first .Site.Params.index_items (where .Data.Pages.ByDate "Section" "posts") }}
{{ partial "box_image.html" . }}
{{ end }}
</div>
<div class="align-center">
<h4><a href="/posts/">All Posts</a></h4>
</div>
</div>
</section>
{{ partial "page_end.html" . }}

View file

@ -1,8 +0,0 @@
<div class="col-sm-6">
<section class="box special">
<a href="{{ .Permalink }}">
<h3>{{ title .LinkTitle }}</h3>
</a>
{{ partial "summary_string.html" . }}
</section>
</div>

View file

@ -1,16 +0,0 @@
<div class="col-sm-6">
<section class="box special image">
{{ if .Params.image }}
<a href="{{ .Permalink }}">
<span class="image featured" data-image="{{ .Params.image }}"></span>
</a>
{{ end }}
{{ if .Params.date }}
<small title="{{ .Date.Format "January 2 2006" }}">{{ .Date.Format "2006-01-02" }}</small>
{{ end }}
<a href="{{ .Permalink }}">
<h3>{{ title .LinkTitle }}</h3>
</a>
{{ partial "summary_string.html" . }}
</section>
</div>

View file

@ -1,18 +0,0 @@
<header>
<h2>{{ title .Title }}</h2>
{{ partial "subtitle_string.html" . }}
{{ if .Params.date }}
<small title="{{ .Date.Format "January 2 2006" }}">{{ .Date.Format "2006-01-02" }}</small>
{{ end }}
</header>
{{ if .Content }}
<div class="box">
{{ if .Params.image }}
<span class="image featured main" data-image="{{ .Params.image }}"></span>
{{ end }}
{{ .Content }}
</div>
{{ end }}
{{ partial "tags.html" . }}

View file

@ -1,21 +0,0 @@
<footer id="footer">
<ul class="icons">
{{ range .Site.Data.social.footer_accounts }}
{{ $account := index $.Site.Data.social.accounts . }}
<li><a href="{{ $account.link }}" class="icon {{ $account.icon }}">
<span class="label">{{ $account.name }}</span>
</a></li>
{{ end }}
</ul>
<ul class="copyright">
<li>&copy; {{ title .Site.Params.author }} {{ now.Year }}.</li>
{{ if .OutputFormats.Get "txt" }}
{{ with .OutputFormats.Get "txt" }}
<li><a href="{{ .Permalink }}">View Raw</a></li>
{{ end }}
{{ else }}
<li><a href="{{ .Site.Data.social.accounts.github.link }}theorangeone.net">View Source</a></li>
{{ end }}
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>

View file

@ -1,23 +0,0 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" />
<meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" />
<link rel="icon" type="image/png" href="/img/logo-transparent.png" />
<link rel="stylesheet" href="/css/style.css" />
{{ if .Parent }}
{{ if ne .Parent .Site.Home }}
<title>{{ .Title }} | {{ .Parent.Title }} | {{ .Site.Title }}</title>
{{ end }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
{{ else }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
{{ end }}
{{ partial "metadata.html" . }}
</head>

View file

@ -1,15 +0,0 @@
<header id="header" {{ if .IsHome }}class="alt"{{ end }}>
<h1><a href="/" class="navbar-brand">{{ title .Site.Title }}</a></h1>
<nav id="nav">
<ul>
{{ partial "navbar/sections.html" . }}
{{ partial "navbar/pages.html" . }}
<li class="top-level">
<a class="show-mobile" href="/">Home</a>
</li>
</ul>
</nav>
</header>

View file

@ -1 +0,0 @@
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>

View file

@ -1,7 +0,0 @@
{{ range where .Site.Pages.ByTitle "Kind" "page" }}
{{ if eq .Section "" }}
<li class="top-level">
{{ partial "navbar/link-item.html" . }}
</li>
{{ end }}
{{ end }}

View file

@ -1,34 +0,0 @@
{{ $valid_children := where (where .Site.Pages ".Parent" "!=" nil) ".Params.hide_in_nav" "!=" "true" }}
{{ $home := .Site.GetPage "home" }}
{{ range where .Site.Pages.ByTitle "Kind" "section" }}
{{ if eq .Parent $home }}
{{ $sorted_pages := sort $valid_children (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}}
{{ $children := where $sorted_pages ".Parent.UniqueID" .UniqueID }}
<li class="top-level">
{{ partial "navbar/link-item.html" . }}
{{ if $children }}
<ul>
{{ range first .Site.Params.nav_items $children }}
<li>
{{ partial "navbar/link-item.html" . }}
{{ $children := where $sorted_pages ".Parent.UniqueID" .UniqueID }}
{{ if $children }}
<ul>
{{ range first .Site.Params.nav_items $children }}<li>{{ partial "navbar/link-item.html" . }}</li>{{ end }}
{{ if ge (len $children) .Site.Params.nav_items }}
<li><a href="{{ .Permalink }}"><i>See more</i></a></li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
{{ if ge (len $children) .Site.Params.nav_items }}
<li><a href="{{ .Permalink }}"><i>See more</i></a></li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
{{ end }}

View file

@ -1,5 +0,0 @@
{{ partial "footer.html" . }}
</div>
{{ partial "scripts.html" . }}
</body>
</html>

View file

@ -1,11 +0,0 @@
<!DOCTYPE HTML>
<html>
{{ partial "head.html" . }}
{{ if .IsHome }}
<body class="landing">
{{ else }}
<body>
{{ end }}
{{ partial "navbar/index.html" . }}
<div id="page-wrapper">

View file

@ -1,2 +0,0 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="/js/app.js"></script>

View file

@ -1,7 +0,0 @@
{{ if .Params.subtitle }}
<p>{{ .Params.subtitle | markdownify }}</p>
{{ else if .Params.repo }}
<p>{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}</p>
{{ else if .Params.gist }}
<p>{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}</p>
{{ end }}

View file

@ -1,13 +0,0 @@
{{ if eq .Section "posts" }}
{{ .Summary | truncate .Site.Params.summary_length "..." }}
{{ else }}
{{ if .Params.subtitle }}
{{ .Params.subtitle | markdownify }}
{{ else if .Params.repo }}
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
{{ else if .Params.gist }}
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
{{ else }}
{{ .Summary | truncate .Site.Params.summary_length "..." }}
{{ end }}
{{ end }}

View file

@ -1,9 +0,0 @@
{{ if .Params.tags }}
<div class="align-center" id="tags">
{{ range .Params.tags }}
<h5><a href="/tags/{{ urlize . }}" class="badge badge-dark">
<i class="fa fa-tag"></i> {{ . }}
</a></h5>
{{ end }}
</div>
{{ end }}

View file

@ -1,23 +0,0 @@
{{ partial "page_start.html" . }}
<div id="page-wrapper">
<section id="main" class="container">
{{ partial "content.html" . }}
<div class="box">
<ul class="actions fir">
{{ if .Params.download_url }}
<li><a class="button special fit" href="{{ .Params.download_url }}">Download {{ .Title }}</a></li>
{{ end }}
{{ if .Params.repo }}
{{ $data := getJSON "https://api.github.com/repos/" .Params.repo }}
<li><a class="button special fit" href="{{ $data.html_url }}"><i class="fa fa-github fa-lg"></i> View Source</a></li>
{{ end }}
{{ if .Params.gist }}
{{ $data := getJSON "https://api.github.com/gists/" .Params.gist }}
<li><a class="button special fit" href="{{ $data.html_url }}"><i class="fa fa-github fa-lg"></i> View Source</a></li>
{{ end }}
</ul>
</div>
</section>
</div>
{{ partial "page_end.html" . }}