diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..893a422 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/go +{ + "name": "Go", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "go version", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ff46467 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hermit"] + path = themes/hermit + url = https://github.com/Track3/hermit.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/assets/scss/style.scss b/assets/scss/style.scss new file mode 100644 index 0000000..ba8ada2 --- /dev/null +++ b/assets/scss/style.scss @@ -0,0 +1,10 @@ +#spotlight { + display: flex; + min-height: 100vh; + flex-direction: column; + align-items: center; + justify-content: center; + max-width: 400px; + margin: auto; + font-size: 1.5rem; +} diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..40689ed --- /dev/null +++ b/config.toml @@ -0,0 +1,61 @@ +baseURL = "https://log101.github.io" +languageCode = "en-us" +defaultContentLanguage = "en" +title = "log101" +theme = "hermit" +# enableGitInfo = true +pygmentsCodefences = true +pygmentsUseClasses = true + +rssLimit = 10 # Maximum number of items in the RSS feed. +enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/functions/emojify/ + +[author] + name = "Furkan Erdem" + +[taxonomies] + tag = "tags" + +[params] + dateform = "Jan 2, 2006" + dateformShort = "Jan 2" + dateformNum = "2006-01-02" + dateformNumTime = "2006-01-02 15:04 -0700" + + # Metadata mostly used in document's head + description = "log101's blog" + themeColor = "#494f5c" + + homeSubtitle = "\"Orada, soğuk ve mütemadiyen dönen yaşlı başlı yıldızlar, önce israillenmiş sonra pislik içinde bırakılmış gezegenler, Kadimler mirası kuyruklu gök cisimleri vardı; birbirlerinden bağımız görünseler de modellenmesi neredeyse imkansız bir örgü içerisinde…\"" + + # Toggling this option needs to rebuild SCSS, requires Hugo extended version + justifyContent = false # Set "text-align: justify" to `.content`. + + relatedPosts = false # Add a related content section to all single posts page + + code_copy_button = true # Turn on/off the code-copy-button for code-fields + + # Add custom css + # customCSS = ["css/foo.css", "css/bar.css"] + + # Social Icons + # Check https://github.com/Track3/hermit#social-icons for more info. + [[params.social]] + name = "github" + url = "https://github.com/" + + [[params.social]] + name = "linkedin" + url = "https://www.linkedin.com/in/furkan-erdem-506548218" + +[menu] + + [[menu.main]] + name = "Posts" + url = "posts/" + weight = 10 + + [[menu.main]] + name = "About" + url = "about-hugo/" + weight = 20 diff --git a/bokudakeresim.jpg b/eski_postlar/bokudakeresim.jpg similarity index 100% rename from bokudakeresim.jpg rename to eski_postlar/bokudakeresim.jpg diff --git a/conway.html b/eski_postlar/conway.html similarity index 100% rename from conway.html rename to eski_postlar/conway.html diff --git a/footer.html b/eski_postlar/footer.html similarity index 100% rename from footer.html rename to eski_postlar/footer.html diff --git a/furkan-erdem-cv-ege.pdf b/eski_postlar/furkan-erdem-cv-ege.pdf similarity index 100% rename from furkan-erdem-cv-ege.pdf rename to eski_postlar/furkan-erdem-cv-ege.pdf diff --git a/hishiro.jpg b/eski_postlar/hishiro.jpg similarity index 100% rename from hishiro.jpg rename to eski_postlar/hishiro.jpg diff --git a/im22andfailed.html b/eski_postlar/im22andfailed.html similarity index 100% rename from im22andfailed.html rename to eski_postlar/im22andfailed.html diff --git a/index.html b/eski_postlar/index.html similarity index 100% rename from index.html rename to eski_postlar/index.html diff --git a/journey.jpg b/eski_postlar/journey.jpg similarity index 100% rename from journey.jpg rename to eski_postlar/journey.jpg diff --git a/karar.html b/eski_postlar/karar.html similarity index 100% rename from karar.html rename to eski_postlar/karar.html diff --git a/ramazan2021.html b/eski_postlar/ramazan2021.html similarity index 100% rename from ramazan2021.html rename to eski_postlar/ramazan2021.html diff --git a/relife.html b/eski_postlar/relife.html similarity index 100% rename from relife.html rename to eski_postlar/relife.html diff --git a/resimler/fighton2.mp4 b/eski_postlar/resimler/fighton2.mp4 similarity index 100% rename from resimler/fighton2.mp4 rename to eski_postlar/resimler/fighton2.mp4 diff --git a/resimler/japon.jpg b/eski_postlar/resimler/japon.jpg similarity index 100% rename from resimler/japon.jpg rename to eski_postlar/resimler/japon.jpg diff --git a/resimler/relife.png b/eski_postlar/resimler/relife.png similarity index 100% rename from resimler/relife.png rename to eski_postlar/resimler/relife.png diff --git a/resimler/relife1.png b/eski_postlar/resimler/relife1.png similarity index 100% rename from resimler/relife1.png rename to eski_postlar/resimler/relife1.png diff --git a/resimler/relife2.png b/eski_postlar/resimler/relife2.png similarity index 100% rename from resimler/relife2.png rename to eski_postlar/resimler/relife2.png diff --git a/resimler/relife3.png b/eski_postlar/resimler/relife3.png similarity index 100% rename from resimler/relife3.png rename to eski_postlar/resimler/relife3.png diff --git a/resimler/relife4.png b/eski_postlar/resimler/relife4.png similarity index 100% rename from resimler/relife4.png rename to eski_postlar/resimler/relife4.png diff --git a/resimler/relife5.png b/eski_postlar/resimler/relife5.png similarity index 100% rename from resimler/relife5.png rename to eski_postlar/resimler/relife5.png diff --git a/resimler/relife6.png b/eski_postlar/resimler/relife6.png similarity index 100% rename from resimler/relife6.png rename to eski_postlar/resimler/relife6.png diff --git a/resimler/spiral.jpg b/eski_postlar/resimler/spiral.jpg similarity index 100% rename from resimler/spiral.jpg rename to eski_postlar/resimler/spiral.jpg diff --git a/yoklugumdakisehir.html b/eski_postlar/yoklugumdakisehir.html similarity index 100% rename from yoklugumdakisehir.html rename to eski_postlar/yoklugumdakisehir.html diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..38a201d --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+

+ 404-lighthouse +

+ +
+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..7f09c90 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,50 @@ + + + + + + + + {{- with .Site.Params.themeColor }} + + + {{- end }} + {{- partial "structured-data.html" . }} + {{- partial "favicons.html" }} + {{.Title}} + {{ range .AlternativeOutputFormats -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Title | safeHTML }} + {{ end -}} + {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} + + {{- block "head" . -}}{{- end }} + {{- range .Site.Params.customCSS }} + + {{- end }} + {{- if templates.Exists "partials/extra-head.html" -}} + {{ partial "extra-head.html" . }} + {{- end }} + + + + {{ block "header" . -}}{{ end -}} + {{ block "main" . -}}{{ end -}} + {{ block "footer" . -}}{{ end }} + + {{ $main := resources.Get "js/main.js" -}} + {{ if .Site.Params.code_copy_button | default true -}} + {{ $codeCopy := resources.Get "js/code-copy.js" -}} + {{ $script := slice $main $codeCopy | resources.Concat "js/bundle.js" | minify | fingerprint -}} + + {{ else -}} + {{ $script := $main | minify | fingerprint -}} + + {{ end }} + + {{- partial "analytics.html" . }} + {{- if templates.Exists "partials/extra-foot.html" -}} + {{ partial "extra-foot.html" . }} + {{- end }} + + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..dc525d6 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,33 @@ +{{ define "header" }} +{{ partialCached "header.html" . }} +{{ end }} + +{{ define "main" }} +
+

{{ .Title }}

+ {{- if .Content }} +
+ {{ .Content }} +
+ {{- end }} + {{- range .Data.Pages.GroupByDate "2006" }} +
+
{{ .Key }}
+ +
+ {{- end }} +
+{{ end }} + +{{ define "footer" }} +{{ partialCached "footer.html" . }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9ba7177 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,34 @@ +{{ define "head" }} + {{ if .Params.featuredImg -}} + + {{- else if .Params.images -}} + {{- range first 1 .Params.images -}} + + {{- end -}} + {{- end -}} +{{ end }} + +{{ define "header" }} +{{ partial "header.html" . }} +{{ end }} + +{{ define "main" }} + {{- if (or .Params.images .Params.featuredImg) }} +
+ {{- end }} +
+

{{ .Title }}

+
+ {{ .Content | replaceRE "()" `${1}${3}` | safeHTML }} +
+ {{- if .Params.comments }} +
+ {{ partial "comments.html" . }} +
+ {{- end }} +
+{{ end }} + +{{ define "footer" }} +{{ partialCached "footer.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..3f31d25 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,37 @@ +{{ define "head" }} + {{ if .Site.Params.bgImg -}} + + {{- else if .Site.Params.images -}} + {{- range first 1 .Site.Params.images -}} + + {{- end -}} + {{- end -}} +{{ end }} + +{{ define "main" }} + {{- if (or .Site.Params.images .Site.Params.bgImg) }} +
+ {{- end }} +
+
+

{{ .Site.Title }}

+ {{- with .Site.Params.homeSubtitle }} +

{{.}}

+ {{- end }} + {{- with .Site.Params.social }} +
+ {{ partialCached "social-icons.html" . }} +
+ {{- end }} + +
+ +
+{{ end }} diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..b1f9af8 --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1 @@ +{{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..b17632a --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,3 @@ +{{- if .Site.DisqusShortname }} +{{ template "_internal/disqus.html" . }} +{{- end }} diff --git a/layouts/partials/favicons.html b/layouts/partials/favicons.html new file mode 100644 index 0000000..27f5226 --- /dev/null +++ b/layouts/partials/favicons.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..2aa24c2 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..473f597 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,31 @@ + +
+ +
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html new file mode 100644 index 0000000..9abe793 --- /dev/null +++ b/layouts/partials/menu.html @@ -0,0 +1,12 @@ + {{- range .Site.Menus.main }} + {{- if .HasChildren }} + {{ .Name }} + + {{- range .Children }} + {{ .Name }} + {{- end }} + + {{- else }} + {{ .Name }} + {{- end }} + {{- end }} diff --git a/layouts/partials/related-posts.html b/layouts/partials/related-posts.html new file mode 100644 index 0000000..d533bfd --- /dev/null +++ b/layouts/partials/related-posts.html @@ -0,0 +1,11 @@ +{{- $related := .Site.RegularPages.Related . | first 5 }} +{{ with $related }} + +{{ end -}} diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html new file mode 100644 index 0000000..b89f265 --- /dev/null +++ b/layouts/partials/social-icons.html @@ -0,0 +1,3 @@ +{{ range . -}} +{{ partial "svg.html" . }} +{{- end -}} diff --git a/layouts/partials/structured-data.html b/layouts/partials/structured-data.html new file mode 100644 index 0000000..4bfb909 --- /dev/null +++ b/layouts/partials/structured-data.html @@ -0,0 +1,6 @@ +{{/* We use some Hugo built-in templates, you can find their source here: */}} +{{/* https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}} + +{{- template "_internal/schema.html" . }} +{{- template "_internal/opengraph.html" . }} +{{- template "_internal/twitter_cards.html" . }} diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html new file mode 100644 index 0000000..adc8f87 --- /dev/null +++ b/layouts/partials/svg.html @@ -0,0 +1,47 @@ +{{- if (eq .name "codepen") -}} + +{{- else if (eq .name "facebook") -}} + +{{- else if (eq .name "github") -}} + +{{- else if (eq .name "gitlab") -}} + +{{- else if (eq .name "instagram") -}} + +{{- else if (eq .name "linkedin") -}} + +{{- else if (eq .name "slack") -}} + +{{- else if (eq .name "stackoverflow") -}} + +{{- else if (eq .name "telegram") -}} + +{{- else if (eq .name "twitch") -}} + +{{- else if (eq .name "twitter") -}} + +{{- else if (eq .name "youtube") -}} + +{{- else if (eq .name "email") -}} + +{{- else if (eq .name "dribbble") -}} + +{{- else if (eq .name "behance") -}} + +{{- else if (eq .name "freepik") -}} + +{{- else if (eq .name "adobestock") -}} + +{{- else if (eq .name "shutterstock") -}} + +{{- else if (eq .name "123rf") -}} + +{{- else if (eq .name "dreamstime") -}} + +{{- else if (eq .name "paypal") -}} + +{{- else if (eq .name "qq") -}} + +{{- else -}} + +{{- end -}} diff --git a/layouts/posts/rss.xml b/layouts/posts/rss.xml new file mode 100644 index 0000000..8db9f49 --- /dev/null +++ b/layouts/posts/rss.xml @@ -0,0 +1,27 @@ + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end -}} + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Summary | html }} + {{ printf `` .Content | safeHTML }} + + {{ end }} + + diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..d221abb --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,77 @@ +{{ define "head" }} + {{ if .Params.featuredImg -}} + + {{- else if .Params.images -}} + {{- range first 1 .Params.images -}} + + {{- end -}} + {{- end -}} +{{ end }} + +{{ define "header" }} +{{ partial "header.html" . }} +{{ end }} + +{{ define "main" }} + {{- if (or .Params.images .Params.featuredImg) }} +
+ {{- end }} +
+
+
+ +

{{ .Title }}

+
+
+ {{ .Content | replaceRE "()" `${1}${3}` | safeHTML }} +
+ {{- if .Site.Params.relatedPosts }} + {{- partial "related-posts.html" . -}} + {{- end }} +
+
+ {{- with $.Param "author" }} +

{{ . }}

+ {{- end }} + {{- with .Params.tags }} +

+ + {{- range . -}} + {{.}} + {{- end }} +

+ {{- end }} +

{{ i18n "wordCount" . }}

+

{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}

+ {{- if and .GitInfo .Site.Params.gitUrl }} +

{{ .GitInfo.AbbreviatedHash }} @ {{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}

+ {{- end }} +
+
+ {{- if .Params.toc }} + + {{- end }} +
+ {{- with .NextInSection }} + + {{- end }} + {{- with .PrevInSection }} + + {{- end }} +
+
+ {{- partial "comments.html" . -}} +
+
+{{ end }} + +{{ define "footer" }} +{{ partialCached "footer.html" . }} +{{ end }} diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..f753dd0 --- /dev/null +++ b/public/404.html @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 404 Page not found + + + + + +
+

+ 404-lighthouse +

+ +
+ + + + + + + + diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png new file mode 100644 index 0000000..ead4502 Binary files /dev/null and b/public/android-chrome-192x192.png differ diff --git a/public/android-chrome-384x384.png b/public/android-chrome-384x384.png new file mode 100644 index 0000000..5c0c07d Binary files /dev/null and b/public/android-chrome-384x384.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..cbe7d8d Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/browserconfig.xml b/public/browserconfig.xml new file mode 100644 index 0000000..5aecc91 --- /dev/null +++ b/public/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #00aba9 + + + diff --git a/public/css/style.min.e609a74a3408dd22bcf5c1ccee32f46f94cc9340fcd0db09005e5be27f1f404a.css b/public/css/style.min.e609a74a3408dd22bcf5c1ccee32f46f94cc9340fcd0db09005e5be27f1f404a.css new file mode 100644 index 0000000..1e31105 --- /dev/null +++ b/public/css/style.min.e609a74a3408dd22bcf5c1ccee32f46f94cc9340fcd0db09005e5be27f1f404a.css @@ -0,0 +1 @@ +#home-subtitle{color:red} \ No newline at end of file diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png new file mode 100644 index 0000000..4ad4d17 Binary files /dev/null and b/public/favicon-16x16.png differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png new file mode 100644 index 0000000..356b180 Binary files /dev/null and b/public/favicon-32x32.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..4ea0c8d Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..e10dfaf --- /dev/null +++ b/public/index.html @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + log101 + + + + + + + +
+
+

log101

+

"Orada, soğuk ve mütemadiyen dönen yaşlı başlı yıldızlar, önce israillenmiş sonra pislik içinde bırakılmış gezegenler, Kadimler mirası kuyruklu gök cisimleri vardı; birbirlerinden bağımız görünseler de modellenmesi neredeyse imkansız bir örgü içerisinde…"

+
+ +
+ +
+ +
+ + + + + + + + diff --git a/public/index.xml b/public/index.xml new file mode 100644 index 0000000..894138b --- /dev/null +++ b/public/index.xml @@ -0,0 +1,10 @@ + + + + log101 + https://log101.github.io/ + Recent content on log101 + Hugo -- gohugo.io + en-us + + diff --git a/public/js/bundle.min.4a9a0ac3d2217822c7865b4161e6c2a71de1d70492264337755427898dd718f6.js b/public/js/bundle.min.4a9a0ac3d2217822c7865b4161e6c2a71de1d70492264337755427898dd718f6.js new file mode 100644 index 0000000..7137f68 --- /dev/null +++ b/public/js/bundle.min.4a9a0ac3d2217822c7865b4161e6c2a71de1d70492264337755427898dd718f6.js @@ -0,0 +1,13 @@ +const throttle=(callback,limit)=>{let timeoutHandler=null;return()=>{if(timeoutHandler==null){timeoutHandler=setTimeout(()=>{callback();timeoutHandler=null;},limit);}};};const listen=(ele,e,callback)=>{if(document.querySelector(ele)!==null){document.querySelector(ele).addEventListener(e,callback);}} +let header=document.getElementById('site-header');let lastScrollPosition=window.pageYOffset;const autoHideHeader=()=>{let currentScrollPosition=Math.max(window.pageYOffset,0);if(currentScrollPosition>lastScrollPosition){header.classList.remove('slideInUp');header.classList.add('slideOutDown');}else{header.classList.remove('slideOutDown');header.classList.add('slideInUp');} +lastScrollPosition=currentScrollPosition;} +let mobileMenuVisible=false;const toggleMobileMenu=()=>{let mobileMenu=document.getElementById('mobile-menu');if(mobileMenuVisible==false){mobileMenu.style.animationName='bounceInRight';mobileMenu.style.webkitAnimationName='bounceInRight';mobileMenu.style.display='block';mobileMenuVisible=true;}else{mobileMenu.style.animationName='bounceOutRight';mobileMenu.style.webkitAnimationName='bounceOutRight' +mobileMenuVisible=false;}} +const showImg=()=>{document.querySelector('.bg-img').classList.add('show-bg-img');} +const hideImg=()=>{document.querySelector('.bg-img').classList.remove('show-bg-img');} +const toggleToc=()=>{document.getElementById('toc').classList.toggle('show-toc');} +if(header!==null){listen('#menu-btn',"click",toggleMobileMenu);listen('#toc-btn',"click",toggleToc);listen('#img-btn',"click",showImg);listen('.bg-img',"click",hideImg);document.querySelectorAll('.post-year').forEach((ele)=>{ele.addEventListener('click',()=>{window.location.hash='#'+ele.id;});});window.addEventListener('scroll',throttle(()=>{autoHideHeader();if(mobileMenuVisible==true){toggleMobileMenu();}},250));};(function(){'use strict';if(!document.queryCommandSupported('copy')){return;} +function flashCopyMessage(el,msg){el.textContent=msg;setTimeout(function(){el.textContent="Copy";},1000);} +function selectText(node){var selection=window.getSelection();var range=document.createRange();range.selectNodeContents(node);selection.removeAllRanges();selection.addRange(range);return selection;} +function addCopyButton(containerEl){var copyBtn=document.createElement("button");copyBtn.className="highlight-copy-btn";copyBtn.textContent="Copy";var codeEl=containerEl.firstElementChild;copyBtn.addEventListener('click',function(){try{var selection=selectText(codeEl);document.execCommand('copy');selection.removeAllRanges();flashCopyMessage(copyBtn,'Copied!')}catch(e){console&&console.log(e);flashCopyMessage(copyBtn,'Failed :\'(')}});containerEl.appendChild(copyBtn);} +var highlightBlocks=document.getElementsByClassName('highlight');Array.prototype.forEach.call(highlightBlocks,addCopyButton);})(); \ No newline at end of file diff --git a/public/mstile-150x150.png b/public/mstile-150x150.png new file mode 100644 index 0000000..f3165af Binary files /dev/null and b/public/mstile-150x150.png differ diff --git a/public/safari-pinned-tab.svg b/public/safari-pinned-tab.svg new file mode 100644 index 0000000..09fab14 --- /dev/null +++ b/public/safari-pinned-tab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 0000000..a1553eb --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-384x384.png", + "sizes": "384x384", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..9116271 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,13 @@ + + + + + https://log101.github.io/ + + + + https://log101.github.io/tags/ + + + diff --git a/public/tags/index.html b/public/tags/index.html new file mode 100644 index 0000000..fe5f6ee --- /dev/null +++ b/public/tags/index.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tags + + + + + + + +
+ +
+ + +
+

Tags

+
+ + + + + + + + + + + diff --git a/public/tags/index.xml b/public/tags/index.xml new file mode 100644 index 0000000..84f1db7 --- /dev/null +++ b/public/tags/index.xml @@ -0,0 +1,10 @@ + + + + Tags on log101 + https://log101.github.io/tags/ + Recent content in Tags on log101 + Hugo -- gohugo.io + en-us + + diff --git a/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content b/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content new file mode 100644 index 0000000..4ed928c --- /dev/null +++ b/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.content @@ -0,0 +1 @@ +#spotlight{display:flex;min-height:100vh;flex-direction:column;align-items:center;justify-content:center;max-width:400px;margin:auto;font-size:1.5rem} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json b/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json new file mode 100644 index 0000000..cffde5d --- /dev/null +++ b/resources/_gen/assets/scss/scss/style.scss_c16d144eee185fbddd582cd5e25a4fae.json @@ -0,0 +1 @@ +{"Target":"css/style.min.b2c053d0897094a77db69695729c2dc4d48d3d4200d25d8266eb11ca8c88383b.css","MediaType":"text/css","Data":{"Integrity":"sha256-ssBT0IlwlKd9tpaVcpwtxNSNPUIA0l2CZusRyoyIODs="}} \ No newline at end of file diff --git a/themes/hermit b/themes/hermit new file mode 160000 index 0000000..2dc35c5 --- /dev/null +++ b/themes/hermit @@ -0,0 +1 @@ +Subproject commit 2dc35c5c6a52168a3a7b35c5ad51209f40a851cf