Merge branch 'base' into develop

This commit is contained in:
Daniil Krymov 2021-04-30 23:05:44 +02:00
commit 6b2f70a989
No known key found for this signature in database
GPG Key ID: 49FF57C32BD36752
5 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,4 @@
blank_issues_enabled: false
contact_links:
- name: PaperMod Discussions
url: https://github.com/adityatelange/hugo-PaperMod/discussions

View File

@ -0,0 +1,7 @@
---
name: New Blank Issue
about: Anything other than bug report
title: ""
labels: ""
assignees: ""
---

View File

@ -40,6 +40,9 @@
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
{{- if .Site.Params.ShowFullTextinRSS }}
<content>{{ .Content | html }}</content>
{{- end }}
</item>
{{- end }}
{{ end }}

View File

@ -25,14 +25,10 @@
{{- partial "extend_footer.html" . }}
<script>
window.onload = function () {
if (localStorage.getItem("menu-scroll-position")) {
document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position");
}
}
function menu_on_scroll() {
localStorage.setItem("menu-scroll-position", document.getElementById('menu').scrollLeft);
let menu = document.getElementById('menu')
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {

View File

@ -139,7 +139,7 @@
</span>
</div>
{{- $currentPage := . }}
<ul id="menu" onscroll="menu_on_scroll()">
<ul id="menu">
{{- range .Site.Menus.main }}
{{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
{{- $page_url:= $currentPage.Permalink | absLangURL }}