add fonts, css, scripts, remove share buttons, another minor fixes
This commit is contained in:
@@ -10,5 +10,5 @@
|
||||
<title>{{ .Title }}</title>
|
||||
{{ .Hugo.Generator }}
|
||||
{{ partial "highlightjs.html" }}
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css">
|
||||
<link href="{{ .Site.BaseURL }}/css/theme.min.css" rel="stylesheet" type="text/css">
|
||||
<link href="/css/fonts.css" rel="stylesheet" type="text/css">
|
||||
<link href="/css/theme.min.css" rel="stylesheet" type="text/css">
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/pojoaque.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script>
|
||||
<link rel="stylesheet" href="/css/pojoaque.min.css">
|
||||
<script src="/js/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
@@ -1,33 +1,17 @@
|
||||
<nav class="col-md-3">
|
||||
{{ if $.Site.Params.codeeditor_menu_mostrecentposts | default true }}
|
||||
<h3 class="home-link"><a href="{{ index .Site.Params "rootlink" | default .Site.BaseURL }}">{{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).root }}</a></h3>
|
||||
<div id="last-posts" class="open">
|
||||
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).mostrecentposts }}</h3>
|
||||
<ul>
|
||||
{{ range first 10 .Site.RegularPages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Taxonomies.tags }}
|
||||
<div id="tags" class="open">
|
||||
<h3 data-open="tags">{{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).tags }}</h3>
|
||||
<ul class="tags">
|
||||
{{ range $name, $taxonomy := . }}
|
||||
<li><a href="/tags/{{ $name | urlize }}">{{ $name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Taxonomies.categories }}
|
||||
<div id="categories" class="open">
|
||||
<h3 data-open="categories">{{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).categories }}</h3>
|
||||
<ul class="categories">
|
||||
<ul>
|
||||
{{ range $name, $taxonomy := . }}
|
||||
<li><a href="/categories/{{ $name | urlize }}">{{ $name }}</a></li>
|
||||
<ul> {{ $name }}:<br>
|
||||
{{ range $taxonomy.Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}"><b>{{ .Title }}</b></a><br>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<!-- Share on Twitter -->
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-via="kendo5731"></a>
|
||||
<script>!function (d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
|
||||
if (!d.getElementById(id)) {
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = p + '://platform.twitter.com/widgets.js';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}
|
||||
}(document, 'script', 'twitter-wjs');</script>
|
||||
|
||||
<div class="fb-share-button" data-href="{{ .Permalink }}" data-layout="button"></div>
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/{{ (default $.Site.Params.locale "en-US") }}/sdk.js#xfbml=1&version=v2.5";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
|
||||
Reference in New Issue
Block a user