mirror of
				https://github.com/thomasjsn/hugo-theme-hello-friend.git
				synced 2025-11-04 08:48:47 +01:00 
			
		
		
		
	Update theme for 2019
This commit is contained in:
		
							parent
							
								
									563972fe5f
								
							
						
					
					
						commit
						2ff92d6fdf
					
				@ -31,11 +31,21 @@
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="pagination__buttons">
 | 
			
		||||
          {{ if .NextInSection }}
 | 
			
		||||
            <a class="btn next" href="{{ .NextInSection.Permalink }}">← {{ .NextInSection.Title }}</a>
 | 
			
		||||
            <span class="button previous">
 | 
			
		||||
              <a href="{{ .NextInSection.Permalink }}">
 | 
			
		||||
                <span class="button__icon">←</span>
 | 
			
		||||
                <span class="button__text">{{ .NextInSection.Title }}</span>
 | 
			
		||||
              </a>
 | 
			
		||||
            </span>
 | 
			
		||||
          {{ end }}
 | 
			
		||||
          {{ if .PrevInSection }}
 | 
			
		||||
            <a class="btn previous" href="{{ .PrevInSection.Permalink }}">{{ .PrevInSection.Title }} →</a>
 | 
			
		||||
          {{ end }} 
 | 
			
		||||
            <span class="button next">
 | 
			
		||||
              <a href="{{ .PrevInSection.Permalink }}">
 | 
			
		||||
                <span class="button__text">{{ .PrevInSection.Title }}</span>
 | 
			
		||||
                <span class="button__icon">→</span>
 | 
			
		||||
              </a>
 | 
			
		||||
            </span>
 | 
			
		||||
          {{ end }}
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
 | 
			
		||||
@ -1,11 +0,0 @@
 | 
			
		||||
<svg class="bulb-off" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
 | 
			
		||||
  <rect width="24" height="24"/>
 | 
			
		||||
  <path d="M4 19C4 19.55 4.45 20 5 20H9C9.55 20 10 19.55 10 19V18H4V19ZM7 0C3.14 0 0 3.14 0 7C0 9.38 1.19 11.47 3 12.74V15C3 15.55 3.45 16 4 16H10C10.55 16 11 15.55 11 15V12.74C12.81 11.47 14 9.38 14 7C14 3.14 10.86 0 7 0ZM9.85 11.1L9 11.7V14H5V11.7L4.15 11.1C2.8 10.16 2 8.63 2 7C2 4.24 4.24 2 7 2C9.76 2 12 4.24 12 7C12 8.63 11.2 10.16 9.85 11.1Z" transform="translate(5 2)" fill="black"/>
 | 
			
		||||
</svg>
 | 
			
		||||
 | 
			
		||||
<svg class="bulb-on" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
 | 
			
		||||
  <rect width="24" height="24"/>
 | 
			
		||||
  <path class="bulb-on__base" d="M4 19C4 19.55 4.45 20 5 20H9C9.55 20 10 19.55 10 19V18H4V19Z" transform="translate(5 2)" fill="#a9a9b3" />
 | 
			
		||||
  <path class="bulb-on__glass" d="M0 7C0 3.14 3.14 0 7 0C10.86 0 14 3.14 14 7C14 9.38 12.81 11.47 11 12.74V15C11 15.55 10.55 16 10 16H4C3.45 16 3 15.55 3 15V12.74C1.19 11.47 0 9.38 0 7Z" transform="translate(5 2)" fill="#a9a9b3" />
 | 
			
		||||
</svg>
 | 
			
		||||
  
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 1.0 KiB  | 
@ -5,8 +5,8 @@
 | 
			
		||||
    {{else}}
 | 
			
		||||
      {{ partial "logo.html" . }}
 | 
			
		||||
      <div class="copyright">
 | 
			
		||||
        <span>Powered by <a href="http://gohugo.io">Hugo</a></span>
 | 
			
		||||
        <span>Theme created by <a href="https://twitter.com/panr">panr</a> 2018</span>
 | 
			
		||||
        <span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span>
 | 
			
		||||
        <span>Theme created by <a href="https://twitter.com/panr">panr</a></span>
 | 
			
		||||
      </div>
 | 
			
		||||
    {{end}}
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
@ -8,11 +8,11 @@
 | 
			
		||||
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
 | 
			
		||||
            <path d="M0 0h24v24H0z" fill="none"/>
 | 
			
		||||
            <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
 | 
			
		||||
          </svg>        
 | 
			
		||||
          </svg>
 | 
			
		||||
        </span>
 | 
			
		||||
      {{ end }}
 | 
			
		||||
      <span class="theme-toggle">
 | 
			
		||||
        {{ partial "bulb-icon.html" . }}
 | 
			
		||||
        {{ partial "theme-icon.html" . }}
 | 
			
		||||
      </span>
 | 
			
		||||
    </span>
 | 
			
		||||
  </span>
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,20 @@
 | 
			
		||||
<div class="pagination">
 | 
			
		||||
  <div class="pagination__buttons">
 | 
			
		||||
    {{ if .Paginator.HasPrev }}
 | 
			
		||||
      <a class="button next" href="{{ .Paginator.Prev.URL }}"><span class="button__icon">←</span></a>
 | 
			
		||||
      <span class="button previous">
 | 
			
		||||
        <a href="{{ .Paginator.Prev.URL }}">
 | 
			
		||||
          <span class="button__icon">←</span>
 | 
			
		||||
          <span class="button__text">Newer posts</span>
 | 
			
		||||
        </a>
 | 
			
		||||
      </span>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
    {{ if .Paginator.HasNext }}
 | 
			
		||||
      <a class="button previous" href="{{ .Paginator.Next.URL }}"><span class="button__icon">→</span></a>
 | 
			
		||||
      <span class="button next">
 | 
			
		||||
        <a href="{{ .Paginator.Next.URL }}">
 | 
			
		||||
          <span class="button__text">Older posts</span>
 | 
			
		||||
          <span class="button__icon">→</span>
 | 
			
		||||
        </a>
 | 
			
		||||
      </span>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								layouts/partials/theme-icon.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								layouts/partials/theme-icon.html
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
<svg class="theme-toggler" width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
 | 
			
		||||
  <path d="M22 41C32.4934 41 41 32.4934 41 22C41 11.5066 32.4934 3 22
 | 
			
		||||
  3C11.5066 3 3 11.5066 3 22C3 32.4934 11.5066 41 22 41ZM7 22C7
 | 
			
		||||
  13.7157 13.7157 7 22 7V37C13.7157 37 7 30.2843 7 22Z"/>
 | 
			
		||||
</svg>
 | 
			
		||||
| 
		 After Width: | Height: | Size: 317 B  | 
@ -10,24 +10,6 @@
 | 
			
		||||
    background: #252627;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .bulb {
 | 
			
		||||
    &-on {
 | 
			
		||||
      display: none;
 | 
			
		||||
 | 
			
		||||
      .dark-theme & {
 | 
			
		||||
        display: block;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    &-off {
 | 
			
		||||
      display: block;
 | 
			
		||||
 | 
			
		||||
      .dark-theme & {
 | 
			
		||||
        display: none;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &__right {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-direction: row;
 | 
			
		||||
@ -49,5 +31,13 @@
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.theme-toggle {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  justify-content: center;
 | 
			
		||||
  line-height: 1;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.theme-toggler {
 | 
			
		||||
  fill: currentColor;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -16,14 +16,14 @@
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Inter UI';
 | 
			
		||||
  font-style:  normal;
 | 
			
		||||
  font-weight: 500;
 | 
			
		||||
  font-weight: 600;
 | 
			
		||||
  src: url("../fonts/Inter-UI-Medium.woff2") format("woff2"),
 | 
			
		||||
       url("../fonts/Inter-UI-Medium.woff") format("woff");
 | 
			
		||||
}
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Inter UI';
 | 
			
		||||
  font-style:  italic;
 | 
			
		||||
  font-weight: 500;
 | 
			
		||||
  font-weight: 600;
 | 
			
		||||
  src: url("../fonts/Inter-UI-MediumItalic.woff2") format("woff2"),
 | 
			
		||||
       url("../fonts/Inter-UI-MediumItalic.woff") format("woff");
 | 
			
		||||
}
 | 
			
		||||
@ -31,29 +31,14 @@
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Inter UI';
 | 
			
		||||
  font-style:  normal;
 | 
			
		||||
  font-weight: 700;
 | 
			
		||||
  font-weight: 800;
 | 
			
		||||
  src: url("../fonts/Inter-UI-Bold.woff2") format("woff2"),
 | 
			
		||||
       url("../fonts/Inter-UI-Bold.woff") format("woff");
 | 
			
		||||
}
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Inter UI';
 | 
			
		||||
  font-style:  italic;
 | 
			
		||||
  font-weight: 700;
 | 
			
		||||
  font-weight: 800;
 | 
			
		||||
  src: url("../fonts/Inter-UI-BoldItalic.woff2") format("woff2"),
 | 
			
		||||
       url("../fonts/Inter-UI-BoldItalic.woff") format("woff");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Inter UI';
 | 
			
		||||
  font-style:  normal;
 | 
			
		||||
  font-weight: 900;
 | 
			
		||||
  src: url("../fonts/Inter-UI-Black.woff2") format("woff2"),
 | 
			
		||||
       url("../fonts/Inter-UI-Black.woff") format("woff");
 | 
			
		||||
}
 | 
			
		||||
@font-face {
 | 
			
		||||
  font-family: 'Inter UI';
 | 
			
		||||
  font-style:  italic;
 | 
			
		||||
  font-weight: 900;
 | 
			
		||||
  src: url("../fonts/Inter-UI-BlackItalic.woff2") format("woff2"),
 | 
			
		||||
       url("../fonts/Inter-UI-BlackItalic.woff") format("woff");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -12,13 +12,17 @@
 | 
			
		||||
    margin-right: 5px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &__text {
 | 
			
		||||
    font-size: 1.125rem;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &__cursor {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    width: 2px;
 | 
			
		||||
    width: 10px;
 | 
			
		||||
    height: 1rem;
 | 
			
		||||
    background: #fe5186;
 | 
			
		||||
    margin-left: 5px;
 | 
			
		||||
    border-radius: 2px;
 | 
			
		||||
    border-radius: 1px;
 | 
			
		||||
    animation: cursor 1s infinite;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,7 @@ body {
 | 
			
		||||
  margin: 0;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  font-family: 'Inter UI', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI",  Helvetica, Arial, sans-serif;
 | 
			
		||||
  font-size: 18px;
 | 
			
		||||
  font-size: 1rem;
 | 
			
		||||
  line-height: 1.54;
 | 
			
		||||
  background-color: var(--light-background);
 | 
			
		||||
  color: var(--light-color);
 | 
			
		||||
@ -146,10 +146,10 @@ code {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pre {
 | 
			
		||||
  background: #1a1a1d;
 | 
			
		||||
  background: #212020;
 | 
			
		||||
  padding: 20px;
 | 
			
		||||
  border-radius: 8px;
 | 
			
		||||
  font-size: 1rem;
 | 
			
		||||
  font-size: .95rem;
 | 
			
		||||
  overflow: auto;
 | 
			
		||||
 | 
			
		||||
  @media (--phone) {
 | 
			
		||||
@ -163,6 +163,10 @@ pre {
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    font-size: inherit;
 | 
			
		||||
 | 
			
		||||
    .dark-theme & {
 | 
			
		||||
      color: inherit;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
.menu {
 | 
			
		||||
  background: #fafafa;
 | 
			
		||||
  border-right: 1px solid;
 | 
			
		||||
  margin-right: 10px;
 | 
			
		||||
  margin-right: 18px;
 | 
			
		||||
 | 
			
		||||
  .dark-theme & {
 | 
			
		||||
    background: #252627;
 | 
			
		||||
@ -27,11 +27,7 @@
 | 
			
		||||
    list-style: none;
 | 
			
		||||
 | 
			
		||||
    li {
 | 
			
		||||
      margin: 0 10px;
 | 
			
		||||
 | 
			
		||||
      &:last-of-type {
 | 
			
		||||
        margin-right: 0;
 | 
			
		||||
      }
 | 
			
		||||
      margin: 0 12px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @media (--phone) {
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
.pagination {
 | 
			
		||||
  margin-top: 50px;
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  &__title {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
@ -37,11 +37,60 @@
 | 
			
		||||
 | 
			
		||||
  &__buttons {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: space-around;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    width: 1024px;
 | 
			
		||||
    max-width: 100%;
 | 
			
		||||
 | 
			
		||||
    a {
 | 
			
		||||
      text-decoration: none;
 | 
			
		||||
      font-weight: bold;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.button {
 | 
			
		||||
  position: relative;
 | 
			
		||||
  display: inline-flex;
 | 
			
		||||
  align-items: center;
 | 
			
		||||
  justify-content: center;
 | 
			
		||||
  background: var(--light-background-secondary);
 | 
			
		||||
  font-size: 1rem;
 | 
			
		||||
  font-weight: 600;
 | 
			
		||||
  border-radius: 8px;
 | 
			
		||||
  max-width: 40%;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
  appearance: none;
 | 
			
		||||
 | 
			
		||||
  .dark-theme & {
 | 
			
		||||
    background: var(--dark-background-secondary);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  + .button {
 | 
			
		||||
    margin-left: 10px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  a {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    padding: 8px 16px;
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
    text-overflow: ellipsis;
 | 
			
		||||
    white-space: nowrap;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &__text {
 | 
			
		||||
    text-overflow: ellipsis;
 | 
			
		||||
    white-space: nowrap;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &.next .button__icon {
 | 
			
		||||
    margin-left: 8px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &.previous .button__icon {
 | 
			
		||||
    margin-right: 8px;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -38,7 +38,7 @@ pre[class*="language-"] {
 | 
			
		||||
 | 
			
		||||
:not(pre) > code[class*="language-"],
 | 
			
		||||
pre[class*="language-"] {
 | 
			
		||||
	background: #1a1a1d !important;
 | 
			
		||||
	background: #212020 !important;
 | 
			
		||||
	border-radius: 8px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							@ -1 +1,136 @@
 | 
			
		||||
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){n(1),n(2),e.exports=n(3)},function(e,t,n){"use strict"},function(e,t,n){"use strict";var o=document.querySelector(".menu-trigger"),r=document.querySelector(".menu"),i=getComputedStyle(document.body).getPropertyValue("--phoneWidth"),u=function(){return window.matchMedia(i).matches},c=function(){o&&o.classList.toggle("hidden",!u()),r&&r.classList.toggle("hidden",u())};c(),o&&o.addEventListener("click",function(){return r&&r.classList.toggle("hidden")}),window.addEventListener("resize",c)},function(e,t,n){"use strict";var o=window.localStorage&&window.localStorage.getItem("theme"),r=document.querySelector(".theme-toggle"),i="dark"===o||null===o;document.body.classList.toggle("dark-theme",i),r.addEventListener("click",function(){document.body.classList.toggle("dark-theme"),window.localStorage&&window.localStorage.setItem("theme",document.body.classList.contains("dark-theme")?"dark":"light")})}]);
 | 
			
		||||
/******/ (function(modules) { // webpackBootstrap
 | 
			
		||||
/******/ 	// The module cache
 | 
			
		||||
/******/ 	var installedModules = {};
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// The require function
 | 
			
		||||
/******/ 	function __webpack_require__(moduleId) {
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 		// Check if module is in cache
 | 
			
		||||
/******/ 		if(installedModules[moduleId]) {
 | 
			
		||||
/******/ 			return installedModules[moduleId].exports;
 | 
			
		||||
/******/ 		}
 | 
			
		||||
/******/ 		// Create a new module (and put it into the cache)
 | 
			
		||||
/******/ 		var module = installedModules[moduleId] = {
 | 
			
		||||
/******/ 			i: moduleId,
 | 
			
		||||
/******/ 			l: false,
 | 
			
		||||
/******/ 			exports: {}
 | 
			
		||||
/******/ 		};
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 		// Execute the module function
 | 
			
		||||
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 		// Flag the module as loaded
 | 
			
		||||
/******/ 		module.l = true;
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 		// Return the exports of the module
 | 
			
		||||
/******/ 		return module.exports;
 | 
			
		||||
/******/ 	}
 | 
			
		||||
/******/
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// expose the modules object (__webpack_modules__)
 | 
			
		||||
/******/ 	__webpack_require__.m = modules;
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// expose the module cache
 | 
			
		||||
/******/ 	__webpack_require__.c = installedModules;
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// define getter function for harmony exports
 | 
			
		||||
/******/ 	__webpack_require__.d = function(exports, name, getter) {
 | 
			
		||||
/******/ 		if(!__webpack_require__.o(exports, name)) {
 | 
			
		||||
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
 | 
			
		||||
/******/ 		}
 | 
			
		||||
/******/ 	};
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// define __esModule on exports
 | 
			
		||||
/******/ 	__webpack_require__.r = function(exports) {
 | 
			
		||||
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
 | 
			
		||||
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
 | 
			
		||||
/******/ 		}
 | 
			
		||||
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
 | 
			
		||||
/******/ 	};
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// create a fake namespace object
 | 
			
		||||
/******/ 	// mode & 1: value is a module id, require it
 | 
			
		||||
/******/ 	// mode & 2: merge all properties of value into the ns
 | 
			
		||||
/******/ 	// mode & 4: return value when already ns object
 | 
			
		||||
/******/ 	// mode & 8|1: behave like require
 | 
			
		||||
/******/ 	__webpack_require__.t = function(value, mode) {
 | 
			
		||||
/******/ 		if(mode & 1) value = __webpack_require__(value);
 | 
			
		||||
/******/ 		if(mode & 8) return value;
 | 
			
		||||
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
 | 
			
		||||
/******/ 		var ns = Object.create(null);
 | 
			
		||||
/******/ 		__webpack_require__.r(ns);
 | 
			
		||||
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
 | 
			
		||||
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
 | 
			
		||||
/******/ 		return ns;
 | 
			
		||||
/******/ 	};
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
 | 
			
		||||
/******/ 	__webpack_require__.n = function(module) {
 | 
			
		||||
/******/ 		var getter = module && module.__esModule ?
 | 
			
		||||
/******/ 			function getDefault() { return module['default']; } :
 | 
			
		||||
/******/ 			function getModuleExports() { return module; };
 | 
			
		||||
/******/ 		__webpack_require__.d(getter, 'a', getter);
 | 
			
		||||
/******/ 		return getter;
 | 
			
		||||
/******/ 	};
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// Object.prototype.hasOwnProperty.call
 | 
			
		||||
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// __webpack_public_path__
 | 
			
		||||
/******/ 	__webpack_require__.p = "";
 | 
			
		||||
/******/
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// Load entry module and return exports
 | 
			
		||||
/******/ 	return __webpack_require__(__webpack_require__.s = 0);
 | 
			
		||||
/******/ })
 | 
			
		||||
/************************************************************************/
 | 
			
		||||
/******/ ({
 | 
			
		||||
 | 
			
		||||
/***/ "./source/js/index.js":
 | 
			
		||||
/*!****************************!*\
 | 
			
		||||
  !*** ./source/js/index.js ***!
 | 
			
		||||
  \****************************/
 | 
			
		||||
/*! no static exports found */
 | 
			
		||||
/***/ (function(module, exports, __webpack_require__) {
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
eval("// Add your script here\n\n\n//# sourceURL=webpack:///./source/js/index.js?");
 | 
			
		||||
 | 
			
		||||
/***/ }),
 | 
			
		||||
 | 
			
		||||
/***/ "./source/js/menu.js":
 | 
			
		||||
/*!***************************!*\
 | 
			
		||||
  !*** ./source/js/menu.js ***!
 | 
			
		||||
  \***************************/
 | 
			
		||||
/*! no static exports found */
 | 
			
		||||
/***/ (function(module, exports, __webpack_require__) {
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
eval("\n\n// Mobile menu\nvar menuTrigger = document.querySelector(\".menu-trigger\");\nvar menu = document.querySelector(\".menu\");\nvar mobileQuery = getComputedStyle(document.body).getPropertyValue(\"--phoneWidth\");\n\nvar isMobile = function isMobile() {\n  return window.matchMedia(mobileQuery).matches;\n};\n\nvar isMobileMenu = function isMobileMenu() {\n  menuTrigger && menuTrigger.classList.toggle(\"hidden\", !isMobile());\n  menu && menu.classList.toggle(\"hidden\", isMobile());\n};\n\nisMobileMenu();\nmenuTrigger && menuTrigger.addEventListener(\"click\", function () {\n  return menu && menu.classList.toggle(\"hidden\");\n});\nwindow.addEventListener(\"resize\", isMobileMenu);\n\n//# sourceURL=webpack:///./source/js/menu.js?");
 | 
			
		||||
 | 
			
		||||
/***/ }),
 | 
			
		||||
 | 
			
		||||
/***/ "./source/js/theme.js":
 | 
			
		||||
/*!****************************!*\
 | 
			
		||||
  !*** ./source/js/theme.js ***!
 | 
			
		||||
  \****************************/
 | 
			
		||||
/*! no static exports found */
 | 
			
		||||
/***/ (function(module, exports, __webpack_require__) {
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
eval("\n\n// Toggle theme\nvar getTheme = window.localStorage && window.localStorage.getItem(\"theme\");\nvar themeToggle = document.querySelector(\".theme-toggle\");\nvar isDark = getTheme === \"dark\";\n\nif (getTheme !== null) {\n  document.body.classList.toggle(\"dark-theme\", isDark);\n}\n\nthemeToggle.addEventListener(\"click\", function () {\n  document.body.classList.toggle(\"dark-theme\");\n  window.localStorage && window.localStorage.setItem(\"theme\", document.body.classList.contains(\"dark-theme\") ? \"dark\" : \"light\");\n});\n\n//# sourceURL=webpack:///./source/js/theme.js?");
 | 
			
		||||
 | 
			
		||||
/***/ }),
 | 
			
		||||
 | 
			
		||||
/***/ 0:
 | 
			
		||||
/*!***************************************************************************!*\
 | 
			
		||||
  !*** multi ./source/js/index.js ./source/js/menu.js ./source/js/theme.js ***!
 | 
			
		||||
  \***************************************************************************/
 | 
			
		||||
/*! no static exports found */
 | 
			
		||||
/***/ (function(module, exports, __webpack_require__) {
 | 
			
		||||
 | 
			
		||||
eval("__webpack_require__(/*! /Users/radek/Documents/Git/Moje/hugoBasicExample/themes/hello-friend/source/js/index.js */\"./source/js/index.js\");\n__webpack_require__(/*! /Users/radek/Documents/Git/Moje/hugoBasicExample/themes/hello-friend/source/js/menu.js */\"./source/js/menu.js\");\nmodule.exports = __webpack_require__(/*! /Users/radek/Documents/Git/Moje/hugoBasicExample/themes/hello-friend/source/js/theme.js */\"./source/js/theme.js\");\n\n\n//# sourceURL=webpack:///multi_./source/js/index.js_./source/js/menu.js_./source/js/theme.js?");
 | 
			
		||||
 | 
			
		||||
/***/ })
 | 
			
		||||
 | 
			
		||||
/******/ });
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user