Compare commits
8 Commits
e82879434e
...
ae107a445a
| Author | SHA1 | Date | |
|---|---|---|---|
| ae107a445a | |||
| c1c83a8ca2 | |||
| 4f457874f3 | |||
| f5be44887b | |||
| 0d721d48a4 | |||
| d570c8f421 | |||
| 282b18f9a0 | |||
| c728748106 |
@@ -1,2 +1,5 @@
|
|||||||
[params]
|
[params]
|
||||||
katexCssUrl = "https://static.danilafe.com/katex/katex.min.css"
|
katexCssUrl = "//static.danilafe.com/katex/katex.min.css"
|
||||||
|
normalizeCssUrl = "//static.danilafe.com/normalize/normalize.css"
|
||||||
|
siteSourceUrl = "https://dev.danilafe.com/Web-Projects/blog-static/src/branch/master"
|
||||||
|
visNetworkJsUrl = "//static.danilafe.com/vis-network/vis-network.min.js"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h2>{{ .Title }} </h2>
|
<h2>{{ .Title }} </h2>
|
||||||
<script src="//unpkg.com/vis-network@9.1.0/dist/vis-network.min.js"></script>
|
<script src="{{ .Site.Params.visNetworkJsUrl }}"></script>
|
||||||
<script type="module" src="{{ .Site.BaseURL }}/graph/graph.js"></script>
|
<script type="module" src="{{ .Site.BaseURL }}/graph/graph.js"></script>
|
||||||
<style>
|
<style>
|
||||||
#graph-container {
|
#graph-container {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{ $scratch := .scratch }}
|
{{ $scratch := .scratch }}
|
||||||
{{ $scratch.Set "bestLength" -1 }}
|
{{ $scratch.Set "bestLength" -1 }}
|
||||||
{{ $scratch.Set "bestUrl" (printf "https://dev.danilafe.com/Web-Projects/blog-static/src/branch/master/code/%s" .path) }}
|
{{ $scratch.Set "bestUrl" (printf "%s/code/%s" .siteSourceUrl .path) }}
|
||||||
{{ $filePath := .path }}
|
{{ $filePath := .path }}
|
||||||
{{ range $module, $props := .submoduleLinks }}
|
{{ range $module, $props := .submoduleLinks }}
|
||||||
{{ $path := index $props "path" }}
|
{{ $path := index $props "path" }}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway&family=Lora&display=block" media="screen">
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway&family=Lora&display=block" media="screen">
|
||||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" media="screen">
|
<link rel="stylesheet" href="{{ .Site.Params.normalizeCssUrl }}" media="screen">
|
||||||
<link rel="stylesheet" href="{{ .Site.Params.katexCssUrl }}" crossorigin="anonymous">
|
<link rel="stylesheet" href="{{ .Site.Params.katexCssUrl }}" crossorigin="anonymous">
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
||||||
@@ -28,7 +28,6 @@
|
|||||||
<link rel="icon" type="image/png" href="{{ $icon.Permalink }}">
|
<link rel="icon" type="image/png" href="{{ $icon.Permalink }}">
|
||||||
|
|
||||||
{{ if .Site.IsServer }}
|
{{ if .Site.IsServer }}
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"
|
||||||
onload="renderMathInElement(document.body);"></script>
|
onload="renderMathInElement(document.body);"></script>
|
||||||
|
|||||||
@@ -5,8 +5,12 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a>
|
<a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a>
|
||||||
<a href="{{ relref . "about" }}">{{ i18n "about" }}</a>
|
<a href="{{ relref . "about" }}">{{ i18n "about" }}</a>
|
||||||
<a href="https://github.com/DanilaFe">GitHub</a>
|
{{ with .Site.Params.githubUsername }}
|
||||||
<a href="{{ .Site.BaseURL }}/Resume-Danila-Fedorin.pdf">{{ i18n "resume" }}</a>
|
<a href="https://github.com/{{ . }}">GitHub</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.resumeStaticFile }}
|
||||||
|
<a href="{{ .Site.BaseURL }}/{{ .Site.Params.resumeStaticFile }}">{{ i18n "resume" }}</a>
|
||||||
|
{{ end }}
|
||||||
<a href="{{ .Site.BaseURL }}/tags">{{ i18n "tags" }}</a>
|
<a href="{{ .Site.BaseURL }}/tags">{{ i18n "tags" }}</a>
|
||||||
<a href="{{ .Site.BaseURL }}/series">{{ i18n "series" }}</a>
|
<a href="{{ .Site.BaseURL }}/series">{{ i18n "series" }}</a>
|
||||||
<a href="{{ .Site.BaseURL }}/favorites">{{ i18n "favorites" }}</a>
|
<a href="{{ .Site.BaseURL }}/favorites">{{ i18n "favorites" }}</a>
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 1) "submoduleLinks" .Site.Params.submoduleLinks) }}
|
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 1) "siteSourceUrl" .Site.Params.siteSourceUrl "submoduleLinks" .Site.Params.submoduleLinks) }}
|
||||||
{{ partial "highlightgroup.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 1) "comment" ", entire file" "code" (readFile (printf "code/%s" (.Get 1))) "language" (.Get 0) "opts" "linenos=table") }}
|
{{ partial "highlightgroup.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 1) "comment" ", entire file" "code" (readFile (printf "code/%s" (.Get 1))) "language" (.Get 0) "opts" "linenos=table") }}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
{{ .Scratch.Set "opts" "" }}
|
{{ .Scratch.Set "opts" "" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 1) "submoduleLinks" .Site.Params.submoduleLinks) }}
|
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 1) "siteSourceUrl" .Site.Params.siteSourceUrl "submoduleLinks" .Site.Params.submoduleLinks) }}
|
||||||
{{ partial "linerangestr.html" (dict "scratch" .Scratch "from" (.Get 2) "to" (.Get 3)) }}
|
{{ partial "linerangestr.html" (dict "scratch" .Scratch "from" (.Get 2) "to" (.Get 3)) }}
|
||||||
|
|
||||||
{{ partial "highlightgroup.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 1) "comment" (.Scratch.Get "comment") "code" (delimit $lines "\n") "language" (.Get 0) "opts" (printf "linenos=table,linenostart=%d%s" (.Get 2) (.Scratch.Get "opts"))) }}
|
{{ partial "highlightgroup.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 1) "comment" (.Scratch.Get "comment") "code" (delimit $lines "\n") "language" (.Get 0) "opts" (printf "linenos=table,linenostart=%d%s" (.Get 2) (.Scratch.Get "opts"))) }}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 0) "submoduleLinks" .Site.Params.submoduleLinks) }}
|
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 0) "siteSourceUrl" .Site.Params.siteSourceUrl "submoduleLinks" .Site.Params.submoduleLinks) }}
|
||||||
{{ partial "group.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 0) "comment" ", entire file" "content" (safeHTML (printf "<pre><code>%s</code></pre>" (htmlEscape (readFile (printf "code/%s" (.Get 0))))))) }}
|
{{ partial "group.html" (dict "url" (.Scratch.Get "bestUrl") "path" (.Get 0) "comment" ", entire file" "content" (safeHTML (printf "<pre><code>%s</code></pre>" (htmlEscape (readFile (printf "code/%s" (.Get 0))))))) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user