Browse Source

actualización del tema hermit

master
tarteka 2 years ago
parent
commit
33cb8e9175
25 changed files with 189 additions and 76 deletions
  1. +25
    -0
      themes/hermit/README.md
  2. +1
    -0
      themes/hermit/archetypes/posts.md
  3. +9
    -3
      themes/hermit/assets/js/main.js
  4. +66
    -12
      themes/hermit/assets/scss/style.scss
  5. +1
    -1
      themes/hermit/exampleSite/config.toml
  6. +1
    -0
      themes/hermit/exampleSite/content/posts/goisforlovers.md
  7. +1
    -0
      themes/hermit/exampleSite/content/posts/hugoisforlovers.md
  8. +1
    -0
      themes/hermit/exampleSite/content/posts/migrate-from-jekyll.md
  9. +41
    -0
      themes/hermit/exampleSite/content/posts/the-figure-shortcode.md
  10. +3
    -0
      themes/hermit/i18n/en.toml
  11. +0
    -29
      themes/hermit/i18n/es.toml
  12. +3
    -0
      themes/hermit/i18n/zh-hans.toml
  13. +0
    -4
      themes/hermit/layouts/404.html
  14. +8
    -2
      themes/hermit/layouts/_default/baseof.html
  15. +1
    -2
      themes/hermit/layouts/_default/list.html
  16. +3
    -4
      themes/hermit/layouts/_default/single.html
  17. +2
    -6
      themes/hermit/layouts/index.html
  18. +3
    -0
      themes/hermit/layouts/partials/comments.html
  19. +1
    -1
      themes/hermit/layouts/partials/footer.html
  20. +5
    -2
      themes/hermit/layouts/partials/header.html
  21. +8
    -5
      themes/hermit/layouts/posts/single.html
  22. +2
    -1
      themes/hermit/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.content
  23. +1
    -1
      themes/hermit/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.json
  24. +2
    -2
      themes/hermit/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content
  25. +1
    -1
      themes/hermit/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json

+ 25
- 0
themes/hermit/README.md View File

@ -68,11 +68,36 @@ The following icons are supported, please make sure the `name` filed is exactly
* youtube
* email
If that's not enough, you can see [Overriding templates](#overriding-templates) section.
### Manage content
* Keep your regular pages in the `content` folder. To create a new page, run `hugo new page-title.md`
* Keep your blog posts in the `content/posts` folder. To create a new post, run `hugo new posts/post-title.md`
### More customizations
#### Overriding templates
In Hugo, layouts can live in either the project’s (root) or the themes’ layout folders, any template inside the root layout folder will override theme's layout that relative to it, for example: `layouts/_default/baseof.html` will override `themes/hermit/layouts/_default/baseof.html`. So, you can easily customize the theme without edit it directly, which makes updating the theme easier. Here's some common customizations:
##### Customize social icons
You can modify or add any svg icons in site's `layouts/partials/svg.html`
##### Customize comment system
We only have built-in support for Disqus at the moment, if that doesn't fit your needs, you can just add html to site's `layouts/partials/comments.html`
#### Add custom css
For adding custom css to the theme, you need to assign an array of references in `config.toml` like following:
```
[params]
customCSS = ["css/foo.css", "css/bar.css"]
```
You can reference as many stylesheets as you want. Their paths need to be relative to the `static` folder.
## Acknowledgments
* [normalize.css](https://necolas.github.io/normalize.css/) - [MIT](https://github.com/necolas/normalize.css/blob/master/LICENSE.md)

+ 1
- 0
themes/hermit/archetypes/posts.md View File

@ -2,6 +2,7 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
toc: false
featuredImg: ""
tags:
- tag

+ 9
- 3
themes/hermit/assets/js/main.js View File

@ -65,12 +65,18 @@ const showContent = () => {
document.getElementById('bg-img').classList.remove('show-bg-img');
}
if (haveHeader == true) {
// Toggle TOC
//
const toggleToc = () => {
document.getElementById('toc').classList.toggle('show-toc');
}
if (document.getElementById('site-header') !== null) {
document.getElementById('menu-btn').addEventListener('click', mobileMenuToggle);
window.addEventListener('scroll', throttle(() => {
autoHideHeader();
if (mobileMenuVisible == true) {
mobileMenuToggle();
}

+ 66
- 12
themes/hermit/assets/scss/style.scss View File

@ -145,6 +145,10 @@ table {
height: 1em;
}
.desktop-only, .desktop-only-ib {
display: none;
}
// Accessibility
//
.screen-reader-text {
@ -234,6 +238,7 @@ table {
border: none;
background: none;
padding: 0;
margin-left: .4em;
cursor: pointer;
}
@ -587,6 +592,43 @@ hr.post-end {
}
}
#toc {
position: fixed;
left: 50%;
top: 0;
display: none;
}
.toc-title {
margin-left: 1em;
margin-bottom: .5em;
font-size: .8em;
font-weight: bold;
}
#TableOfContents {
font-size: .8em;
@include dimmed;
ul {
padding-left: 1em;
margin: 0;
}
&>ul {
list-style-type: none;
ul ul {
font-size: .9em;
}
}
a:hover {
border-bottom: $theme 1px solid;
}
}
.post-nav {
display: flex;
justify-content: space-between;
@ -609,16 +651,8 @@ hr.post-end {
}
}
// Disqus
#disqus {
margin-top: 2.5em;
}
.dsq-brlink {
display: block;
text-align: center;
}
// Media Queries
//
@media (min-width: 800px) {
.site-main {
margin-top: 3em;
@ -640,6 +674,15 @@ hr.post-end {
margin-top: 8em;
}
.desktop-only,
#toc.show-toc {
display: block;
}
.desktop-only-ib {
display: inline-block;
}
figure.left {
margin-left: -240px;
p {
@ -662,6 +705,12 @@ hr.post-end {
hr.post-end {
width: 30%;
}
#toc {
top: 13em;
margin-left: 370px;
max-width: 220px;
}
}
@media (min-width: 1800px) {
@ -695,6 +744,12 @@ hr.post-end {
hr.post-end {
width: 30%;
}
#toc {
top: 15em;
margin-left: 490px;
max-width: 300px;
}
}
@media (max-width: 760px) {
@ -704,8 +759,7 @@ hr.post-end {
display: none;
}
#menu-btn,
#search-btn {
#menu-btn {
display: inline-block;
}

+ 1
- 1
themes/hermit/exampleSite/config.toml View File

@ -35,7 +35,7 @@ enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/func
# gitUrl = "https://github.com/Someone/SomeRepo/commit/" # Prefix of link to the git commit detail page. GitInfo must be enabled.
justifyContent = false # Set "text-align: justify" to .content, requires extended version of Hugo
# bgImg = "" # Homepage background-image URL
# customCSS = ["css/foo.css", "css/bar.css"] # add custom css
# Social Icons
# Check https://github.com/Track3/hermit#social-icons for more info.
[[params.social]]

+ 1
- 0
themes/hermit/exampleSite/content/posts/goisforlovers.md View File

@ -8,6 +8,7 @@ tags = [
"development",
]
date = "2014-04-02"
toc = true
+++
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for

+ 1
- 0
themes/hermit/exampleSite/content/posts/hugoisforlovers.md View File

@ -7,6 +7,7 @@ tags = [
"development",
]
date = "2014-04-02"
toc = true
+++
## Step 1. Install Hugo

+ 1
- 0
themes/hermit/exampleSite/content/posts/migrate-from-jekyll.md View File

@ -1,6 +1,7 @@
---
date: 2014-03-10
title: Migrate to Hugo from Jekyll
toc: true
---
## Move static content to `static`

+ 41
- 0
themes/hermit/exampleSite/content/posts/the-figure-shortcode.md View File

@ -0,0 +1,41 @@
---
title: 'The "figure" Shortcode'
date: 2018-12-24T12:29:41+08:00
draft: false
featuredImg: ""
tags:
- demo
- image
---
Hugo has `figure` shortcode built in, so you can easily add figcaptions or hyperlink rel attributes to images. Documentations can be found here:
https://gohugo.io/content-management/shortcodes/#figure
This theme has 3 CSS classes made for figure elements:
* `big`: images will break the width limit of main content area.
* `left`: images will float to the left.
* `right`: images will float to the right.
If a figure has no class set, the image will behave just like a normal markdown image: `![]()`.
Here's some examples, please be aware that these styles only take effect when the page width is over 1300px.
{{< figure src="https://via.placeholder.com/1600x800" alt="image" caption="figure-normal (without any classes)" >}}
Pellentesque posuere sem nec nunc varius, id hendrerit arcu consequat. Maecenas commodo, sapien ut gravida porttitor, dolor risus facilisis enim, eget pharetra nibh nisl porttitor sapien. Proin finibus elementum ligula sit amet hendrerit. Praesent et erat sodales ante accumsan pharetra non eu nulla. Sed vehicula consequat lorem, a fermentum ante faucibus quis. Aliquam erat volutpat. In vitae tincidunt dui. Proin sit amet ligula sodales, elementum tortor et, venenatis sem. Maecenas non nisl erat. Curabitur nec velit eros. Ut cursus lacus nisi, non pretium libero euismod et. Fusce luctus in nisi quis sollicitudin. Aenean nec blandit ligula. Duis ac felis lorem. Proin tellus tellus, dictum nec tempus sit amet, venenatis ac felis. Sed in pharetra nulla, non mollis sem.
{{< figure src="https://via.placeholder.com/1600x800" alt="image" caption="figure-big" class="big" >}}
Suspendisse fringilla malesuada massa, in malesuada orci lacinia a. Praesent dapibus faucibus nisl, id volutpat elit bibendum eu. Nulla vitae laoreet nibh, eu hendrerit lacus. Donec lacinia auctor ligula, vel interdum ipsum malesuada vitae. Donec placerat a justo eu gravida. Aenean ultricies imperdiet convallis. Pellentesque accumsan non ex sed euismod. Proin bibendum lectus nec enim faucibus feugiat. Donec hendrerit nisi viverra ornare luctus. Nullam non viverra nisl. Nam vel tellus et tortor elementum volutpat sit amet et erat. Aliquam a libero quis libero porta consectetur. Etiam aliquam felis vel nulla mattis finibus. Mauris laoreet lacus arcu, sed rhoncus odio condimentum sed. Aenean in dui rutrum elit faucibus faucibus nec fringilla augue. Fusce non ornare mauris.
{{< figure src="https://via.placeholder.com/400x280" alt="image" caption="figure-left" class="left" >}}
In a libero varius, luctus ligula et, bibendum tortor. Sed sit amet dui malesuada, mattis justo id, ultricies enim. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam sollicitudin cursus feugiat. Vivamus suscipit ipsum eget lobortis sollicitudin. Fusce vehicula neque tellus. Integer eu posuere quam, id laoreet tortor. Mauris sit amet turpis urna. Donec venenatis tempor dolor, nec laoreet orci aliquet et. Sed condimentum elit eu tristique aliquam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc luctus ipsum sit amet nisl maximus pellentesque.
{{< figure src="https://via.placeholder.com/400x280" alt="image" caption="figure-right" class="right" >}}
Pellentesque eu consequat nunc. Vivamus eu eros ut nulla dapibus molestie in id tortor. Cras viverra ligula erat, tincidunt hendrerit diam blandit nec. Cras id urna vel dolor dictum mattis. Vestibulum congue erat ac eros molestie accumsan. Maecenas lorem nibh, maximus vel justo eget, facilisis egestas lectus. Mauris eu est ut odio blandit consequat id feugiat eros. Fusce id suscipit mi, et lacinia lectus. Mauris a arcu placerat dolor iaculis feugiat nec non mi. Ut porttitor elit tortor, eget tempus velit mollis eu. Aliquam sem nulla, dictum cursus mauris ac, semper ullamcorper leo.
Donec nec tincidunt est. Sed id metus in erat fringilla mattis at id turpis. Aliquam tempor vehicula faucibus. Phasellus consequat aliquam odio. Morbi a ex vitae sapien porta auctor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec sit amet nulla arcu. Praesent ut tortor purus. Praesent id eros diam. Pellentesque vitae dolor at nibh ultrices accumsan eu id urna. Aliquam finibus interdum orci in varius. Pellentesque a enim condimentum, condimentum felis id, vehicula augue. Vivamus cursus commodo eros nec lacinia.

+ 3
- 0
themes/hermit/i18n/en.toml View File

@ -17,6 +17,9 @@ other = "Archives"
[wordCount]
other = "{{ .WordCount }} Words"
[tableOfContents]
other = "Table of Contents"
[newer]
other = "Newer"

+ 0
- 29
themes/hermit/i18n/es.toml View File

@ -1,29 +0,0 @@
# Translations for Spanish
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# 404.html
#
[notFound]
other = "Oops, esta página no existe…"
[home]
other = "Inicio"
[archives]
other = "Blog"
# posts/single.html
#
[wordCount]
other = "{{ .WordCount }} palabras"
[newer]
other = "Anterior"
[older]
other = "Posterior"
# _default/list.html
#
[title]
other = "Blog"

+ 3
- 0
themes/hermit/i18n/zh-hans.toml View File

@ -17,6 +17,9 @@ other = "归档"
[wordCount]
other = "{{ .WordCount }} 字"
[tableOfContents]
other = "目录"
[newer]
other = "新"

+ 0
- 4
themes/hermit/layouts/404.html View File

@ -13,7 +13,3 @@
</div>
</div>
{{ end }}
{{ define "footer" }}
<script>let haveHeader = false;</script>
{{ end }}

+ 8
- 2
themes/hermit/layouts/_default/baseof.html View File

@ -9,6 +9,9 @@
<meta name="theme-color" content="{{.}}">
<meta name="msapplication-TileColor" content="{{.}}">
{{- end }}
{{ template "_internal/schema.html" . -}}
{{ template "_internal/opengraph.html" . -}}
{{ template "_internal/twitter_cards.html" . -}}
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.png" | relURL}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{"favicon-32x32.png" | relURL}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{"favicon-16x16.png" | relURL}}">
@ -20,8 +23,11 @@
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }}>
<link rel="stylesheet" href="{{ $style.Permalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }}>
{{ block "head" . -}}{{- end }}
{{ range .Site.Params.CustomCSS -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
</head>
<body id="page">
@ -29,7 +35,7 @@
{{ block "main" . -}}{{ end -}}
{{ block "footer" . -}}{{ end }}
{{ $script := resources.Get "js/main.js" | minify | fingerprint -}}
<script src="{{ $script.RelPermalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script>
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script>
{{ template "_internal/google_analytics_async.html" . }}
</body>

+ 1
- 2
themes/hermit/layouts/_default/list.html View File

@ -4,7 +4,7 @@
{{ define "main" }}
<main class="site-main section-inner thin animated fadeIn faster">
<h1>{{ i18n "title" }}</h1> <!-- .Title -->
<h1>{{ .Title }}</h1>
{{- if .Content }}
<div class="content">
{{ .Content }}
@ -30,5 +30,4 @@
{{ define "footer" }}
{{ partialCached "footer.html" . }}
<script>let haveHeader = true;</script>
{{ end }}

+ 3
- 4
themes/hermit/layouts/_default/single.html View File

@ -8,9 +8,9 @@
<div class="content">
{{ .Content }}
</div>
{{- if and .Params.comments .Site.DisqusShortname }}
<div id="disqus" class="thin">
{{ template "_internal/disqus.html" . }}
{{- if .Params.comments }}
<div id="comments" class="thin">
{{ partial "comments.html" . }}
</div>
{{- end }}
</main>
@ -18,5 +18,4 @@
{{ define "footer" }}
{{ partialCached "footer.html" . }}
<script>let haveHeader = true;</script>
{{ end }}

+ 2
- 6
themes/hermit/layouts/index.html View File

@ -15,16 +15,12 @@
{{- end }}
<nav id="home-nav" class="site-nav">
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{- end }}
</nav>
</div>
<div id="home-footer">
<p>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>. <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></p>
<p>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>. {{ with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}<a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}</p>
</div>
</div>
{{ end }}
{{ define "footer" }}
<script>let haveHeader = false;</script>
{{ end }}

+ 3
- 0
themes/hermit/layouts/partials/comments.html View File

@ -0,0 +1,3 @@
{{- if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{- end }}

+ 1
- 1
themes/hermit/layouts/partials/footer.html View File

@ -1,4 +1,4 @@
<footer id="site-footer" class="section-inner thin animated fadeIn faster">
<p>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}</p>
<p>Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> &#183; Theme <a href="https://github.com/Track3/hermit" target="_blank" rel="noopener">Hermit</a> &#183; <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></p>
<p>Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> &#183; Theme <a href="https://github.com/Track3/hermit" target="_blank" rel="noopener">Hermit</a>{{ with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} &#183; <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}</p>
</footer>

+ 5
- 2
themes/hermit/layouts/partials/header.html View File

@ -6,7 +6,7 @@
</div>
<nav class="site-nav hide-in-mobile">
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL | absLangURL}}">{{ .Name }}</a>
{{- end }}
</nav>
</div>
@ -14,6 +14,9 @@
{{ with .Params.featuredImg -}}
<button class="hdr-btn" onclick="showFeaturedImg()"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-image"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg></button>
{{- end }}
{{- with .Params.toc -}}
<button class="hdr-btn desktop-only-ib" onclick="toggleToc()"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3" y2="6"></line><line x1="3" y1="12" x2="3" y2="12"></line><line x1="3" y1="18" x2="3" y2="18"></line></svg></button>
{{- end }}
{{- with .Site.Params.social -}}
<span class="hdr-social hide-in-mobile">{{ partialCached "social-icons.html" . }}</span>
{{- end -}}
@ -24,7 +27,7 @@
<div id="mobile-menu" class="animated fast" style="display: none;">
<ul>
{{- range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
{{- end }}
</ul>
</div>

+ 8
- 5
themes/hermit/layouts/posts/single.html View File

@ -32,6 +32,12 @@
{{- end }}
</footer>
</article>
{{- if .Params.toc }}
<aside id="toc">
<div class="toc-title">{{ i18n "tableOfContents" }}</div>
{{ .TableOfContents }}
</aside>
{{- end }}
<div class="post-nav thin">
{{- with .NextInSection }}
<a class="next-post" href="{{ .Permalink }}">
@ -44,15 +50,12 @@
</a>
{{- end }}
</div>
{{- if .Site.DisqusShortname }}
<div id="disqus" class="thin">
{{ template "_internal/disqus.html" . }}
<div id="comments" class="thin">
{{ partial "comments.html" . }}
</div>
{{- end }}
</main>
{{ end }}
{{ define "footer" }}
{{ partialCached "footer.html" . }}
<script>let haveHeader = true;</script>
{{ end }}

+ 2
- 1
themes/hermit/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.content View File

@ -4,4 +4,5 @@ let mobileMenu=document.getElementById('mobile-menu');let mobileMenuVisible=fals
mobileMenuVisible=false;}}
const showFeaturedImg=()=>{document.getElementById('bg-img').classList.add('show-bg-img');}
const showContent=()=>{document.getElementById('bg-img').classList.remove('show-bg-img');}
if(haveHeader==true){document.getElementById('menu-btn').addEventListener('click',mobileMenuToggle);window.addEventListener('scroll',throttle(()=>{autoHideHeader();if(mobileMenuVisible==true){mobileMenuToggle();}},250));}
const toggleToc=()=>{document.getElementById('toc').classList.toggle('show-toc');}
if(document.getElementById('site-header')!==null){document.getElementById('menu-btn').addEventListener('click',mobileMenuToggle);window.addEventListener('scroll',throttle(()=>{autoHideHeader();if(mobileMenuVisible==true){mobileMenuToggle();}},250));}

+ 1
- 1
themes/hermit/resources/_gen/assets/js/js/main.js_d11fe7b62c27961c87ecd0f2490357b9.json View File

@ -1 +1 @@
{"Target":"js/main.min.00689ba18bbf9422fda222b02b555f01d54bfbb9b6d02f9bcffad67bdb2ff2cd.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-AGiboYu/lCL9oiKwK1VfAdVL+7m20C+bz/rWe9sv8s0="}}
{"Target":"js/main.min.de4d516d3e45a2fbe013b06aa4292cd08f6f04d55e780c03d9009bd99b05dcd4.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-3k1RbT5FovvgE7BqpCks0I9vBNVeeAwD2QCb2ZsF3NQ="}}

+ 2
- 2
themes/hermit/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content
File diff suppressed because it is too large
View File


+ 1
- 1
themes/hermit/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json View File

@ -1 +1 @@
{"Target":"css/style.min.857f4a4adceba73f2fc8a745f8ca8b08437800bdf1c3275e2c7360f4994644ba.css","MediaType":"text/css","Data":{"Integrity":"sha256-hX9KStzrpz8vyKdF+MqLCEN4AL3xwydeLHNg9JlGRLo="}}
{"Target":"css/style.min.135fc8fad10a71b52484489246b4082f46d6e09f1e54f16e3f9c3b1dd208db01.css","MediaType":"text/css","Data":{"Integrity":"sha256-E1/I+tEKcbUkhEiSRrQIL0bW4J8eVPFuP5w7HdII2wE="}}

Loading…
Cancel
Save