Remove hugo layout files

This commit is contained in:
Philipp Oppermann
2017-05-02 08:49:18 +02:00
parent 55b3378e8c
commit d109912798
18 changed files with 0 additions and 304 deletions

View File

@@ -1,11 +0,0 @@
{{ partial "header.html" . }}
<h1>Page not found</h1>
<p class="lead">
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
<a href="/">Head back home</a> to try finding it again.
</p>
<p>If you followed a link on this site, please <a href="https://github.com/phil-opp/blog_os/issues">report it</a>!
{{ partial "footer.html" . }}

View File

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

View File

@@ -1,11 +0,0 @@
{{ partial "header.html" . }}
<h1>Page not found</h1>
<p class="lead">
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
<a href="/">Head back home</a> to try finding it again.
</p>
<p>If you followed a link on this site, please <a href="https://github.com/phil-opp/blog_os/issues">report it</a>!
{{ partial "footer.html" . }}

View File

@@ -1,11 +0,0 @@
{{ partial "header.html" . }}
<article class="post">
<h1 class="post-title">{{ .Title }}</h1>
{{ .Content }}
</article>
{{ partial "disqus.html" . }}
{{ partial "anchorjs.html" . }}
{{ partial "footer.html" . }}

View File

@@ -1,56 +0,0 @@
{{ partial "header.html" . }}
<div class="front-page-introduction"><p>
This blog series creates a small operating system in the
<a href="https://www.rust-lang.org/">Rust programming language</a>. Each post
is a small tutorial and includes all needed code, so you can follow along if
you like. The source code is also available in the corresponding
<a href="https://github.com/phil-opp/blog_os">Github repository</a>.
</p>
<p>Latest post: {{ range first 1 (where .Site.Pages "Section" "post") }}
<strong><a href="{{ .RelPermalink }}">{{ .Title }}</a></strong>
{{ end }}
</p></div>
<div id="bare-bones" class="post-category bare-bones">Bare Bones</div>
<div class="posts bare-bones">
{{ range first 4 (where .Site.Pages.ByDate "Section" "post") }}
{{ .Render "teaser" }}
{{ end }}
</div>
<div id="memory-management" class="post-category memory-management">Memory Management</div>
<div class="posts memory-management">
{{ range first 4 (after 4 (where .Site.Pages.ByDate "Section" "post")) }}
{{ .Render "teaser" }}
{{ end }}
</div>
<div id="interrupts" class="post-category exceptions">Exceptions</div>
<div class="posts exceptions">
{{ range first 1 (after 9 (where .Site.Pages.ByDate "Section" "post")) }}
{{ .Render "teaser" }}
{{ end }}
{{ range first 1 (after 8 (where .Site.Pages.ByDate "Section" "post")) }}
{{ .Render "teaser" }}
{{ end }}
</div>
<hr>
<h1>Additional Resources</h1>
<ul>
{{ range (where .Site.Pages.ByDate "Section" "additional-resource") }}
<li>{{ .Render "link" }}
{{ end }}
</ul>
<hr>
<aside id="recent-updates">
<h1>Recent Updates</h1>
{{ partial "recent-updates.html" . }}
</aside>
<hr>
{{ partial "footer.html" . }}

View File

@@ -1,28 +0,0 @@
{{ partial "header.html" . }}
<article class="post">
<h1 class="post-title">{{ .Title }}</h1>
<time datetime="{{ .Date.Format "2006-01-02" }}" class="post-date">
{{ .Date.Format .Site.Params.date_format }}
{{ if isset .Params "updated" }}
(updated on {{ .Params.updated | dateFormat .Site.Params.date_format }})
{{ end }}
</time>
{{ .Content }}
</article>
<hr>
<div class="PageNavigation">
{{ if .PrevInSection }}
<a class="prev" href="{{ .PrevInSection.RelPermalink }}">&laquo; {{ .PrevInSection.Title }}</a>
{{ end }}
{{ if .NextInSection }}
<a class="next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }} &raquo;</a>
{{ end }}
</div>
<hr>
{{ partial "disqus.html" . }}
{{ partial "anchorjs.html" . }}
{{ partial "footer.html" . }}

View File

@@ -1,10 +0,0 @@
<article class="post">
<h1 class="post-title">
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</h1>
{{ .Summary }}
</article>

View File

@@ -1,10 +0,0 @@
{{ partial "header.html" . }}
<article class="post">
<h1 class="post-title">{{ .Title }}</h1>
{{ .Content }}
</article>
{{ partial "anchorjs.html" . }}
{{ partial "footer.html" . }}

View File

@@ -1,10 +0,0 @@
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-65296949-1', 'auto');
ga('send', 'pageview');
</script>

View File

@@ -1,6 +0,0 @@
<script type="text/javascript">
anchors.options = {
placement: 'left',
};
anchors.add('article h2, article h3, article h4, article h5, article h6');
</script>

View File

@@ -1,17 +0,0 @@
<div id="disqus_thread"></div>
<script>
(function() {
// Don't ever inject Disqus on localhost--it creates unwanted
// discussions from 'localhost:1313' on your Disqus account...
if (window.location.hostname == "localhost")
return;
var d = document, s = d.createElement('script');
s.src = '//phil-opp.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

View File

@@ -1,13 +0,0 @@
</main>
<footer class="footer">
<small>{{ $year := .Site.LastChange.Format "2006"}}
&copy;
<time datetime="{{ $year }}">{{ $year }}</time>. All rights reserved.
<a href="/contact.html">Contact</a>
</small>
</footer>
</div>
</body>
</html>

View File

@@ -1,40 +0,0 @@
<head>
<meta charset="UTF-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
<title>
{{ .Title }}{{ if not .IsHome }} &middot; {{ .Site.Title }}{{end}}
</title>
<link rel="canonical" href="{{ .Permalink }}">
<!-- CSS -->
<link rel="stylesheet" href="/css/poole.css">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/syntax.css">
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/apple-touch-icon-precomposed.png">
<link rel="shortcut icon" href="/images/favicon.ico">
<link href="/atom.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="/atom.xml" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
<!-- JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/2.0.0/anchor.min.js"></script>
<script src="js/toc.min.js"></script>
<script src="js/main.js"></script>
{{ partial "analytics.html" . }}
<!-- redirect from phil-opp.github.io/blog_os -->
<script type="text/javascript">
if (window.location.hostname == "phil-opp.github.io") {
window.location.href = "http://os.phil-opp.com/";
}
</script>
</head>

View File

@@ -1,18 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
<body>
<div class="container content">
<header class="masthead">
<h3 class="masthead-title">
<a href="/" title="Home">{{ .Site.Title }}</a>
<span class="navigation">
<small><a href="/atom.xml"><img src="/images/feed-icon.png" alt="RSS"></a></small><!-- image source: https://commons.wikimedia.org/wiki/File:Generic_Feed-icon.svg -->
</span>
<small>{{ replace .Site.Params.subtitle " " "&nbsp;" | safeHTML }}</small>
</h3>
</header>
<main>

View File

@@ -1,28 +0,0 @@
{{ partial "header.html" . }}
<article class="post">
<h1 class="post-title">{{ .Title }}</h1>
<time datetime="{{ .Date.Format "2006-01-02" }}" class="post-date">
{{ .Date.Format .Site.Params.date_format }}
{{ if isset .Params "updated" }}
(updated on {{ .Params.updated | dateFormat .Site.Params.date_format }})
{{ end }}
</time>
{{ .Content }}
</article>
<hr>
<div class="PageNavigation">
{{ if .PrevInSection }}
<a class="prev" href="{{ .PrevInSection.RelPermalink }}">&laquo; {{ .PrevInSection.Title }}</a>
{{ end }}
{{ if .NextInSection }}
<a class="next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }} &raquo;</a>
{{ end }}
</div>
<hr>
{{ partial "disqus.html" . }}
{{ partial "anchorjs.html" . }}
{{ partial "footer.html" . }}

View File

@@ -1,10 +0,0 @@
<article class="post">
<h1 class="post-title">
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</h1>
{{ .Summary }}
</article>

View File

@@ -1,24 +0,0 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
{{ range first 15 (where .Data.Pages "Section" "post") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>