mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-18 07:17:49 +00:00
Move everything into a “blog” directory
This commit is contained in:
10
blog/layouts/partials/analytics.html
Normal file
10
blog/layouts/partials/analytics.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<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>
|
||||
6
blog/layouts/partials/anchorjs.html
Normal file
6
blog/layouts/partials/anchorjs.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<script type="text/javascript">
|
||||
anchors.options = {
|
||||
placement: 'left',
|
||||
};
|
||||
anchors.add('article h2, article h3, article h4, article h5, article h6');
|
||||
</script>
|
||||
17
blog/layouts/partials/disqus.html
Normal file
17
blog/layouts/partials/disqus.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<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>
|
||||
13
blog/layouts/partials/footer.html
Normal file
13
blog/layouts/partials/footer.html
Normal file
@@ -0,0 +1,13 @@
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<small>{{ $year := .Site.LastChange.Format "2006"}}
|
||||
©
|
||||
<time datetime="{{ $year }}">{{ $year }}</time>. All rights reserved.
|
||||
<a href="/contact.html">Contact</a>
|
||||
</small>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
42
blog/layouts/partials/head.html
Normal file
42
blog/layouts/partials/head.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<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 }} · {{ .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">
|
||||
|
||||
{{ if .RSSlink }}
|
||||
<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 }}" />
|
||||
{{ end }}
|
||||
|
||||
<!-- 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>
|
||||
18
blog/layouts/partials/header.html
Normal file
18
blog/layouts/partials/header.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!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 " " " " | safeHTML }}</small>
|
||||
</h3>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
1
blog/layouts/partials/recent-updates.html
Normal file
1
blog/layouts/partials/recent-updates.html
Normal file
@@ -0,0 +1 @@
|
||||
<ul><li><a href='https://github.com/phil-opp/blog_os/pull/235'>Add a “Recent Updates” section to the front page</a> <time datetime="2016-10-04 17:32:57 UTC">Oct 04</datetime><li><a href='https://github.com/phil-opp/blog_os/pull/230'>Use crates.io version of multiboot2</a> <time datetime="2016-09-27 11:49:36 UTC">Sep 27</datetime><li><a href='https://github.com/phil-opp/blog_os/pull/229'>Update bit_field to 0.5.0 and use new trait based API</a> <time datetime="2016-09-27 11:36:29 UTC">Sep 27</datetime><li><a href='https://github.com/phil-opp/blog_os/pull/221'>Use rustup for cross compiling and also explain xargo</a> <time datetime="2016-09-22 13:59:20 UTC">Sep 22</datetime><li><a href='https://github.com/phil-opp/blog_os/pull/219'>“Returning from Exceptions”</a> <time datetime="2016-09-21 13:26:16 UTC">Sep 21</datetime></ul>
|
||||
Reference in New Issue
Block a user