Remove external resources

This commit is contained in:
jaseg 2022-03-01 11:11:15 +01:00
parent 072b2d38e2
commit 7e86971cf7
9 changed files with 23 additions and 14 deletions

View file

@ -10,7 +10,7 @@
{{ range (where .Data.Pages "Section" "!=" "") }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>

View file

@ -6,7 +6,7 @@
{{ range (where site.RegularPages "Section" "==" "posts") }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>

View file

@ -1,12 +1,4 @@
<header>
<!--
Syntax highlighting - defaults to atom light theme.
List here: https://github.com/isagalaev/highlight.js/tree/master/src/styles
-->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-light.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<nav>
<ul>
{{ $title := lower .Title }}
@ -17,14 +9,14 @@
{{ range .Site.Menus.main }}
{{ $name := lower .Name }}
<li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ else if eq $title (pluralize $name) }}current{{ end }}">
<a href="{{ .URL }}">~/{{ lower .Name }}</a>
<a href="{{ .RelPermalink }}">~/{{ lower .Name }}</a>
</li>
{{end}}
{{ range .Site.Menus.feed }}
{{ $name := lower .Name}}
<li class="pull-right">
<a href="{{ .URL }}">~/{{ lower .Name}}</a>
<a href="{{ .RelPermalink }}">~/{{ lower .Name}}</a>
</li>
{{end}}

View file

@ -1,7 +1,6 @@
/* @import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700|Source+Serif+Pro'); */
/* @import url('https://fonts.googleapis.com/css?family=Fredoka+One|Source+Serif+Pro'); */
@import url('https://fonts.googleapis.com/css?family=Baloo|Source+Serif+Pro');
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');
@import url('/css/webfonts.css');
body {
max-width: 800px;

View file

@ -0,0 +1,18 @@
@font-face {
font-family: 'Baloo';
font-style: normal;
font-weight: 400;
src: url(/fonts/baloo.ttf) format('truetype');
}
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
src: url(/fonts/source-serif-pro.ttf) format('truetype');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: normal;
font-weight: 400;
src: url(/fonts/ubuntu-mono.ttf) format('truetype');
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.