Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--exampleSite/config.toml33
-rw-r--r--layouts/_default/section.html15
-rw-r--r--layouts/partials/commento.html6
-rw-r--r--layouts/partials/footer.html1
-rw-r--r--layouts/partials/footer_mathjax.html2
-rw-r--r--layouts/partials/goatcounter_analytics.html5
-rw-r--r--layouts/partials/head.html13
-rw-r--r--layouts/partials/share.html14
-rw-r--r--layouts/partials/social.html18
-rw-r--r--layouts/post/single.html4
11 files changed, 79 insertions, 34 deletions
diff --git a/README.md b/README.md
index 653dff9..64d37af 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ Blackburn is a clear and responsive theme for [Hugo](//gohugo.io).
* Last.fm
* Discogs
* Keybase
-* Client-side syntax highlighting by [Highlight.js](//highlightjs.org) (v9.12.0)
+* Client-side syntax highlighting by [Highlight.js](//highlightjs.org) (v10.6.0)
* Web analytics by Google Analytics
* Comments by Disqus
* Icons by Font Awesome (v5.9.0)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c746abc..d366abf 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -50,9 +50,30 @@ paginate = 10
[social]
# Link your social networking accouns to the side menu
# by entering your username or ID.
- twitter = "*"
- facebook = "*"
- instagram = "*"
- github = "yoshiharuyamashita"
- stackoverflow = "*"
- linkedin = "*" \ No newline at end of file
+ twitter="*"
+ # gnusocial="*"
+ facebook="*"
+ # weibo="*"
+ # tumblr="*"
+ instagram="*"
+ # flickr="*"
+ # photo500px="*"
+ # pinterest="*"
+ # youtube="*"
+ # vimeo="*"
+ # vine="*"
+ # slideshare="*"
+ linkedin="*"
+ # xing="*"
+ # reddit="*"
+ # hackernews="*"
+ github="yoshiharuyamashita"
+ # gitlab="*"
+ # bitbucket="*"
+ stackoverflow="*"
+ # serverfault="*"
+ # steam="*"
+ # mobygames="*"
+ # lastfm="*"
+ # discogs="*"
+ # keybase="*"
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
new file mode 100644
index 0000000..0081c00
--- /dev/null
+++ b/layouts/_default/section.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+ <main>
+ {{ .Content }}
+ <ul class="contents">
+ {{ range .Paginator.Pages }}
+ <li>{{.Title}}
+ <div>
+ {{ partial "summary.html" . }}
+ </div>
+ </li>
+ {{ end }}
+ </ul>
+ {{ partial "pagination.html" . }}
+ </main>
+{{ end }}
diff --git a/layouts/partials/commento.html b/layouts/partials/commento.html
new file mode 100644
index 0000000..c3fad2d
--- /dev/null
+++ b/layouts/partials/commento.html
@@ -0,0 +1,6 @@
+{{ with .Site.Params.commento }}
+<div id="commento_thread"></div>
+<script defer src="https://cdn.commento.io/js/commento.js"></script>
+<div id="commento"></div>
+<noscript>This site uses privacy-respecting comments integration provided by <a href="https://commento.io/">Commento</a>. Please enable Javascript to see comments.</noscript>
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 42af21b..f0fed05 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,6 +3,7 @@
<script src="{{ .Site.BaseURL }}js/ui.js"></script>
<script src="{{ .Site.BaseURL }}js/menus.js"></script>
+{{ partial "goatcounter_analytics.html" . }}
{{ partial "google_analytics.html" . }}
{{ partial "piwik_analytics.html" . }}
{{ partial "footer_mathjax" . }}
diff --git a/layouts/partials/footer_mathjax.html b/layouts/partials/footer_mathjax.html
index 2bacfd6..5319ec7 100644
--- a/layouts/partials/footer_mathjax.html
+++ b/layouts/partials/footer_mathjax.html
@@ -1,4 +1,4 @@
{{ if and (not .Params.disable_mathjax) (or (in (string .Content) "\\") (in (string .Content) "$")) }}
<script src="{{ "/js/math-code.js" | relURL }}"></script>
- <script async src="{{ .Site.Params.MathJaxCDN | default "//cdn.bootcss.com" }}/mathjax/{{ .Site.Params.MathJaxVersion | default "2.7.1" }}/MathJax.js?config=TeX-MML-AM_CHTML"></script>
+ <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{{ end }} \ No newline at end of file
diff --git a/layouts/partials/goatcounter_analytics.html b/layouts/partials/goatcounter_analytics.html
new file mode 100644
index 0000000..9810f2b
--- /dev/null
+++ b/layouts/partials/goatcounter_analytics.html
@@ -0,0 +1,5 @@
+{{ with .Site.Params.goatcounterAnalytics }}
+<!-- GoatCounter -->
+<script data-goatcounter="https://{{ . }}.goatcounter.com/count"
+ async src="//gc.zgo.at/count.js"></script>
+{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4eda3b6..2202ff4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -31,13 +31,14 @@
<link rel="stylesheet" href="/css/blackburn.css">
<!-- Icons -->
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.9.0/css/all.css">
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
<!-- Fonts -->
- <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
+ <link rel="preconnect" href="https://fonts.gstatic.com">
+ <link href="https://fonts.googleapis.com/css2?family=Raleway&display=swap" rel="stylesheet" type="text/css">
<!-- MathJax -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+ <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- RSS -->
{{ if .OutputFormats.Get "RSS" }}
@@ -46,10 +47,10 @@
{{ end }}
{{ with .Site.Params.highlightjs }}
- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ . }}.min.css">
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
+ <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/{{ . }}.min.css">
+ <script async src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script>
{{ range $.Site.Params.highlightjs_extra_languages }}
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{ . }}.min.js"></script>
+ <script async src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/languages/{{ . }}.min.js"></script>
{{ end }}
<script>hljs.initHighlightingOnLoad();</script>
{{ end }}
diff --git a/layouts/partials/share.html b/layouts/partials/share.html
index 544fa40..e46925a 100644
--- a/layouts/partials/share.html
+++ b/layouts/partials/share.html
@@ -1,16 +1,16 @@
-<h4><i class="fa-share-alt" aria-hidden="true"></i>&nbsp;Share!</h4>
+<h4><i class="fas fa-share-alt" aria-hidden="true"></i>&nbsp;Share!</h4>
<ul class="share-buttons">
- <li><a href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" title="Share on Facebook"><i class="fa-facebook" aria-hidden="true"></i><span class="sr-only">Share on Facebook</span></a>
+ <li><a href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" title="Share on Facebook"><i class="fab fa-facebook" aria-hidden="true"></i><span class="sr-only">Share on Facebook</span></a>
</li>&nbsp;&nbsp;&nbsp;
- <li><a href="https://twitter.com/intent/tweet?source={{ .Permalink }}&via=HorribleGeek" target="_blank" title="Tweet"><i class="fa-twitter" aria-hidden="true"></i><span class="sr-only">Tweet</span></a>
+ <li><a href="https://twitter.com/intent/tweet?source={{ .Permalink }}" target="_blank" title="Tweet"><i class="fab fa-twitter" aria-hidden="true"></i><span class="sr-only">Tweet</span></a>
</li>&nbsp;&nbsp;&nbsp;
- <li><a href="https://plus.google.com/share?url={{ .Permalink }}" target="_blank" title="Share on Google+"><i class="fa-google-plus" aria-hidden="true"></i><span class="sr-only">Share on Google+</span></a>
+ <li><a href="https://plus.google.com/share?url={{ .Permalink }}" target="_blank" title="Share on Google+"><i class="fab fa-google-plus" aria-hidden="true"></i><span class="sr-only">Share on Google+</span></a>
</li>&nbsp;&nbsp;&nbsp;
- <li><a href="http://www.tumblr.com/share?v=3&u={{ .Permalink }}" target="_blank" title="Post to Tumblr"><i class="fa-tumblr" aria-hidden="true"></i><span class="sr-only">Post to Tumblr</span></a>
+ <li><a href="http://www.tumblr.com/share?v=3&u={{ .Permalink }}" target="_blank" title="Post to Tumblr"><i class="fab fa-tumblr" aria-hidden="true"></i><span class="sr-only">Post to Tumblr</span></a>
</li>&nbsp;&nbsp;&nbsp;
- <li><a href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}" target="_blank" title="Pin it"><i class="fa-pinterest-p" aria-hidden="true"></i><span class="sr-only">Pin it</span></a>
+ <li><a href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}" target="_blank" title="Pin it"><i class="fab fa-pinterest-p" aria-hidden="true"></i><span class="sr-only">Pin it</span></a>
</li>&nbsp;&nbsp;&nbsp;
- <li><a href="http://www.reddit.com/submit?url={{ .Permalink }}" target="_blank" title="Submit to Reddit"><i class="fa-reddit-alien" aria-hidden="true"></i><span class="sr-only">Submit to Reddit</span></a>
+ <li><a href="http://www.reddit.com/submit?url={{ .Permalink }}" target="_blank" title="Submit to Reddit"><i class="fab fa-reddit-alien" aria-hidden="true"></i><span class="sr-only">Submit to Reddit</span></a>
</li>
</ul>
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index f1cc534..90bf047 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -4,7 +4,7 @@
{{ if .OutputFormats.Get "RSS" }}
<li class="pure-menu-item">
<a class="pure-menu-link" href='{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}'><i
- class="fas fa-rss"></i>RSS</a>
+ class="fas fa-rss fa-fw"></i>RSS</a>
</li>
{{ end }}
@@ -18,7 +18,7 @@
{{ with .Site.Social.gnusocial }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="{{ . }}" rel="me" target="_blank"><i class="fas fa-comment"></i>GNU social</a>
+ <a class="pure-menu-link" href="{{ . }}" rel="me" target="_blank"><i class="fas fa-comment fa-fw"></i>GNU social</a>
</li>
{{ end }}
@@ -28,12 +28,6 @@
</li>
{{ end }}
- {{ with .Site.Social.googleplus }}
- <li class="pure-menu-item">
- <a class="pure-menu-link" href="https://plus.google.com/+{{ . }}" rel="me" target="_blank"><i class="fab fa-google-plus-square fa-fw"></i>Google+</a>
- </li>
- {{ end }}
-
{{ with .Site.Social.weibo }}
<li class="pure-menu-item">
<a class="pure-menu-link" href="http://weibo.com/{{ . }}" rel="me" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
@@ -100,7 +94,7 @@
{{ with .Site.Social.linkedin }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="https://linkedin.com/in/{{ . }}" rel="me" target="_blank"><i class="fab fa-linkedin"></i></i>LinkedIn</a>
+ <a class="pure-menu-link" href="https://linkedin.com/in/{{ . }}" rel="me" target="_blank"><i class="fab fa-linkedin fa-fw"></i>LinkedIn</a>
</li>
{{ end }}
@@ -140,7 +134,7 @@
{{ with .Site.Social.bitbucket }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="https://bitbucket.org/{{ . }}" rel="me" target="_blank"><i class="fab fa-bitbucket"></i>Bitbucket</a>
+ <a class="pure-menu-link" href="https://bitbucket.org/{{ . }}" rel="me" target="_blank"><i class="fab fa-bitbucket fa-fw"></i>Bitbucket</a>
</li>
{{ end }}
@@ -166,7 +160,7 @@
{{ with .Site.Social.mobygames }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="https://www.mobygames.com/developer/sheet/view/developerId,{{ . }}" rel="me" target="_blank"><i class="fas fa-gamepad"></i>MobyGames</a>
+ <a class="pure-menu-link" href="https://www.mobygames.com/developer/sheet/view/developerId,{{ . }}" rel="me" target="_blank"><i class="fas fa-gamepad fa-fw"></i>MobyGames</a>
</li>
{{ end }}
@@ -188,7 +182,7 @@
{{ with .Site.Social.keybase }}
<li class="pure-menu-item">
- <a class="pure-menu-link" href="https://keybase.io/{{ . }}" rel="me" target="_blank"><i class="fas fa-key"></i>Keybase</a>
+ <a class="pure-menu-link" href="https://keybase.io/{{ . }}" rel="me" target="_blank"><i class="fas fa-key fa-fw"></i>Keybase</a>
</li>
{{ end }}
diff --git a/layouts/post/single.html b/layouts/post/single.html
index cb31618..f9f6f09 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -13,7 +13,9 @@
{{ partial "share.html" . }}
{{ partial "prev_next_post.html" . }}
-
+
+ {{ partial "commento.html" . }}
+
{{ partial "disqus.html" . }}
{{ partial "telegram.html" . }}