add fonts, css, scripts, remove share buttons, another minor fixes

This commit is contained in:
root 2018-11-23 09:20:45 +00:00
parent 4217a2dd1b
commit 362baca757
12 changed files with 65 additions and 56 deletions

View File

@ -1,12 +1,22 @@
{{ partial "top.html" . }} {{ partial "top.html" . }}
{{ $paginator := .Paginate .Data.Pages.ByPublishDate }} {{ $paginator := .Paginate .Data.Pages.ByPublishDate }}
<div class="articles-list"> <div>
{{ range $paginator.Pages }} <p align="right">свободная область, но чтоб там можно было написать свой текст</p>
</div><br>
{{ with .Site.Taxonomies.categories }}
<div>
<ul class="categories">
{{ range $name, $taxonomy := . }}
<li><h3>{{ $name }}</h3></li>
{{ range $taxonomy.Pages }}
<article> <article>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a> - {{ dateFormat "2006-01-02 15:04:05" .Date }}</h3> <a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Summary }}
</article> </article>
{{ end }} {{ end }}
{{ end }}
</ul>
</div> </div>
{{ end }}
{{ template "_internal/pagination.html" . }} {{ template "_internal/pagination.html" . }}
{{ partial "bottom.html" . }} {{ partial "bottom.html" . }}

View File

@ -10,5 +10,5 @@
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
{{ .Hugo.Generator }} {{ .Hugo.Generator }}
{{ partial "highlightjs.html" }} {{ partial "highlightjs.html" }}
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css"> <link href="/css/fonts.css" rel="stylesheet" type="text/css">
<link href="{{ .Site.BaseURL }}/css/theme.min.css" rel="stylesheet" type="text/css"> <link href="/css/theme.min.css" rel="stylesheet" type="text/css">

View File

@ -1,3 +1,3 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/pojoaque.min.css"> <link rel="stylesheet" href="/css/pojoaque.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script> <script src="/js/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script> <script>hljs.initHighlightingOnLoad();</script>

View File

@ -1,33 +1,17 @@
<nav class="col-md-3"> <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> <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 }} {{ with .Site.Taxonomies.categories }}
<div id="categories" class="open"> <div id="categories" class="open">
<h3 data-open="categories">{{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).categories }}</h3> <h3 data-open="categories">{{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).categories }}</h3>
<ul class="categories"> <ul>
{{ range $name, $taxonomy := . }} {{ range $name, $taxonomy := . }}
<li><a href="/categories/{{ $name | urlize }}">{{ $name }}</a></li> <ul>&nbsp;&nbsp;&nbsp;{{ $name }}:<br>
{{ range $taxonomy.Pages }}
<li>
<a href="{{ .Permalink }}"><b>{{ .Title }}</b></a><br>
</li>
{{ end }}
</ul>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>

View File

@ -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>

32
static/css/fonts.css Normal file
View File

@ -0,0 +1,32 @@
/* latin-ext */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(/fonts/HI_SiYsKILxRpg3hIP6sJ7fM7PqlM-vWjMY.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(/fonts/HI_SiYsKILxRpg3hIP6sJ7fM7PqlPevW.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 700;
src: local('Source Code Pro Bold'), local('SourceCodePro-Bold'), url(/fonts/HI_XiYsKILxRpg3hIP6sJ7fM7Pqths7Dvecq_mk.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 700;
src: local('Source Code Pro Bold'), local('SourceCodePro-Bold'), url(/fonts/HI_XiYsKILxRpg3hIP6sJ7fM7Pqths7Ds-cq.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

1
static/css/pojoaque.min.css vendored Normal file
View File

@ -0,0 +1 @@
.hljs{display:block;overflow-x:auto;padding:0.5em;color:#dccf8f;background:url(pojoaque.jpg) repeat scroll left top #181914}.hljs-comment,.hljs-quote{color:#586e75;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-addition{color:#b64926}.hljs-number,.hljs-string,.hljs-doctag,.hljs-regexp{color:#468966}.hljs-title,.hljs-section,.hljs-built_in,.hljs-name{color:#ffb03b}.hljs-variable,.hljs-template-variable,.hljs-class .hljs-title,.hljs-type,.hljs-tag{color:#b58900}.hljs-attribute{color:#b89859}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-subst,.hljs-meta{color:#cb4b16}.hljs-deletion{color:#dc322f}.hljs-selector-id,.hljs-selector-class{color:#d3a60c}.hljs-formula{background:#073642}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}

Binary file not shown.

Binary file not shown.

3
static/js/highlight.min.js vendored Normal file

File diff suppressed because one or more lines are too long