From 2dd3badefd386930497c6a912501b6d3f5e04934 Mon Sep 17 00:00:00 2001 From: kb01guy Date: Fri, 16 Dec 2022 16:45:46 +0100 Subject: [PATCH] Setup Basic Website-Layout and Target --- .gitignore | 13 + archetypes/default.md | 6 + config.yaml | 451 +++++++++++++++++++++++++++++++++++ content/about.en-us.md | 17 ++ content/about.md | 18 ++ content/archive.en-us.md | 5 + content/archive.md | 5 + content/github.en-us.md | 5 + content/github.md | 5 + content/links/github.png | Bin 0 -> 1933 bytes content/links/index.en-us.md | 10 + content/links/index.md | 10 + content/links/youtube.png | Bin 0 -> 1761 bytes content/search.en-us.md | 7 + content/search.md | 7 + content/twitter.en-us.md | 5 + content/twitter.md | 5 + themes/hugo-theme-luna | 2 +- 18 files changed, 570 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 config.yaml create mode 100644 content/about.en-us.md create mode 100644 content/about.md create mode 100644 content/archive.en-us.md create mode 100644 content/archive.md create mode 100644 content/github.en-us.md create mode 100644 content/github.md create mode 100644 content/links/github.png create mode 100644 content/links/index.en-us.md create mode 100644 content/links/index.md create mode 100644 content/links/youtube.png create mode 100644 content/search.en-us.md create mode 100644 content/search.md create mode 100644 content/twitter.en-us.md create mode 100644 content/twitter.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7b62a71 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock \ No newline at end of file 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/config.yaml b/config.yaml new file mode 100644 index 0000000..3cb12bd --- /dev/null +++ b/config.yaml @@ -0,0 +1,451 @@ +baseURL: https://hugo-theme-luna.imiku.me/ +languageCode: de +defaultContentLanguage: de +title: "Hugo Theme Luna" +enableRobotsTXT: true +enableEmoji: true +theme: hugo-theme-luna +timeout: 60000 +timeZone: Asia/Shanghai + +# 可根据 Git 中的提交生成最近更新记录。 +# use git commit log to generate lastmod record +enableGitInfo: false + +# 如果你的博客包含中日韩语,请启用此选项 +# enable CJK language support +hasCJKLanguage: true + +# 每页显示文章数量 +# pagination size +paginate: 10 + +# 启用谷歌统计 +# google analytics tracking code +# googleAnalytics: UA-98634098-1 + +# 版权信息,默认为 author.name ↓ +# default: author.name ↓ +# copyright: "" + +permalinks: + # 文章链接的格式 + # Format of posts links + posts: /:year/:month/:day/:slug.html # 2019/01/01/hello-world.html + pages: /:slug.html # about.html + +author: + name: kB01 + +frontmatter: + lastmod: + - :git + - lastmod + - :fileModTime + - date + - publishDate + - :default + +taxonomies: + tag: "tags" + category: "categories" + +summaryLength: 70 +canonifyURLs: false +relativeURLs: false + +# 图像处理 +# see https://gohugo.io/content-management/image-processing/#imaging-configuration +imaging: + resampleFilter: CatmullRom + quality: 95 + anchor: smart + +caches: + getresource: + dir: :resourceDir/_gen + maxAge: 24h + +# 隐私政策,请查看 https://gohugo.io/about/hugo-and-gdpr/ +# See https://gohugo.io/about/hugo-and-gdpr/ +privacy: + googleAnalytics: + anonymizeIP: true + youtube: + privacyEnhanced: true + +sitemap: + changefreq: weekly + priority: 0.5 + filename: sitemap.xml + +# 所有支持的页面 +# all supported pages +$manuMain: + - &mainMenuHome + name: Home + weight: 10 + identifier: home + params: + icon: eva eva-home + url: / + - &mainMenuAbout + name: About + weight: 20 + identifier: about + params: + icon: eva eva-heart + url: /about/ + - &mainMenuLinks + name: Links + weight: 30 + identifier: links + params: + icon: eva eva-people + url: /links/ + - &mainMenuArchives + name: Archives + weight: 40 + identifier: archives + params: + icon: eva eva-bar-chart + url: /archives/ + - &mainMenuTags + name: Tags + weight: 50 + identifier: tags + params: + icon: eva eva-hash + url: /tags/ + - &mainMenuCategories + name: Categories + weight: 60 + identifier: categories + params: + icon: eva eva-folder + url: /categories/ + - &mainMenuTwitter + name: Twitter + weight: 70 + identifier: twitter + params: + icon: eva eva-twitter + url: /twitter/ + - &mainMenuGitHub + name: GitHub + weight: 80 + identifier: github + params: + icon: eva eva-github + url: /github/ + - &mainMenuSearch + name: Search + weight: 999 + identifier: search + params: + icon: eva eva-search + url: /search/ + +# 如果你不想要导航栏,你可以删除这一段 +# If you don't want the navbar, you can delete this paragraph +menu: + main: + - *mainMenuHome + - *mainMenuAbout + - *mainMenuLinks + - *mainMenuArchives + - *mainMenuTwitter + - *mainMenuGitHub + - *mainMenuSearch + # 副导航 / sub-navigation + # sub: + # - name: Categories + # weight: 20 + # identifier: categories + # params: + # icon: eva eva-folder + # url: /categories/ + # - name: Tags + # weight: 30 + # identifier: tags + # params: + # icon: eva eva-pricetags + # url: /tags/ + +markup: + highlight: + style: dracula + guessSyntax: true + tabWidth: 4 + lineNumbersInTable: true + lineNos: true + codeFences: true + goldmark: + renderer: + unsafe: true # enable html in markdown + +# .Site.Params +params: + # CDN 地址 + # CDN URL + publicCDN: "" + + # 在网站顶部显示标题和摘要,使用 .Site.Title 和 .Site.Params.Description + # Display title and description at the top of the page, use .Site.Title and .Site.Params.Description + topTitle: false + + # 在首页顶部创建一个通知部分 + # Create a Announcement section at the top of the home page + announcement: + enabled: true + file: "README.md" # assets/README.md + + # 评论系统 + # Comment system + comments: + enabled: false + provider: "giscus" # custom | giscus + giscus: &giscus + repo: "Ice-Hazymoon/hugo-theme-luna" + repoID: "R_kgDOHQOwYw" + category: "Comments" + categoryID: "DIC_kwDOHQOwY84CP0Sy" + mapping: "title" + reactionsEnabled: 1 + emitMetadata: 0 + lazy: false + lang: "en" + + # Rss 配置 + # RSS configuration + rss: + # 如果为 false,你必须设置 Output Formats,请查看:https://gohugo.io/templates/output-formats#customizing-output-formats + # If false, you must set Output Formats, see: https://gohugo.io/templates/output-formats#customizing-output-formats + enabled: true + # 是否输出全文 + # Output full text + fullText: true + + # 如果为 false,你必须设置 Output Formats,请查看:https://gohugo.io/templates/output-formats#customizing-output-formats + # If false, you must set Output Formats, see: https://gohugo.io/templates/output-formats#customizing-output-formats + sitemap: true + + # 网站主题颜色 + # Site theme colors + themeColor: "#044725" + + # 设置网站为黑白模式,通常用于哀悼活动 + # Set website to black and white, usually for mourning events + blackAndWhite: false + + # 输出一个漂亮的控制台日志 + # Output a nice console log + console: + enabled: true + leftColor: "#dd6065" + leftText: "Hugo Theme Luna" + rightColor: "#feb462" + rightText: "Powered by Hugo ❤ Luna" + + # 标题计数器 + # Title counter + headlineCounter: false + + # 固定导航栏 + # Fixed navigation bar + fixedNav: false + + # 网站字体 + # Site font + # font: '"Times New Roman", Times, "Heti Song", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' + font: 'Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif' + + # 自定义脚本 + # ts/custom.ts + customScript: + enabled: false + pjax: true # Auto-reload in pjax mode + + # 网站底部显示运行时间 + # Show site runtime + runTime: + enabled: true + # 网站创建时间 + # Site creation time + creatTime: 2016/12/12 + + # 网站创建年份 + # Site creation year + since: "2016" + + # 显示文章过时提醒 + # show warning when outdated info detected + outdatedInfoWarning: + enabled: true + # 超过该天数将显示过时提醒 + # A timeout reminder will be displayed if the last modification time exceeds that number of days + day: 90 + + # 自动切换夜间模式(使用设备设置) + # Automatic switching of night mode (using device settings) + autoDarkMode: false + + # 文章分享功能 + share: + twitter: true + facebook: true + weibo: true + copyLinkText: true + qrcode: true + + qrcodeAPI: "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=" + + # 文章许可设置 + # license + license: + enabled: true + name: "CC BY-NC-ND 4.0" + icon: "Cc-by-nc-nd.svg" # in assets folder + url: "https://creativecommons.org/licenses/by-nc-nd/4.0" + + # 显示右上角 i18n 切换按钮 + # Display i18n toggle button + i18nlist: true + + # GitHub 页面设置 + # github page + github: + id: "kb01guy" # github user id + minStars: 0 # 最小 star 项目 / min stars + + # Twitter 页面设置 + # tweet page + twitter: + enabled: true + rsshub: "https://rsshub.rssforever.com" # rsshub url, see https://github.com/DIYgod/RSSHub + id: "GenshinImpact" # Twitter ID + # 如果为 true,Hugo 将下载图片和视频并进行优化,如果你在中国大陆地区,请谨慎启用这个选项 + # If enabled, Hugo will download videos and images from the Tweet and optimize them + imageProcessing: true + + # 开启图片放大功能 + # Image Zoom Plugin + # see https://github.com/francoischalifour/medium-zoom + imageZoom: true + + # 图片懒加载 + # lazyload image + lazyload: true + + # 更快速的阅读英文内容, 参考:https://bionic-reading.com/ + # Read English content faster, see https://bionic-reading.com/ + bionicReading: + enabled: true + autoBionic: false # 自动启用 Bionic Reading / auto enable Bionic Reading + skipLinks: false # 跳过链接 / skip links + excludeWords: [] # 忽略的单词 / ignored words + excludeNodeNames: [] # 忽略的节点名称 / ignored node names + excludeClasses: ['github'] # 忽略的类名 / ignored classes + + # 启用谷歌翻译插件 + # enable google translate in footer + googleTranslate: false + + # 优化中文排版,请参考:https://github.com/vinta/pangu.js + # Optimize Chinese typography, see: https://github.com/vinta/pangu.js + pangu: false + + # 开启本地搜索插件 + # enable local search plugin + search: true + + # 文章页显示最后修改时间 + # For outdated reminders + lastmod: true + + # 显示阅读时间 + # show reading time + readingTime: true + + # 显示文章字数 + # show word count + wordCount: false + + # 开启文章内目录,可以在页面内单独设置 + # Show table of contents, You can enable it separately in the page + toc: + enabled: true + # 超过这个字数后将显示目录 + # When the article word count is greater than this value, the TOC will be displayed + wordCount: 400 + + # 加密功能 + # encryption articles + HugoEncrypt: + # 默认密码 + # default password + Password: "123456" + # 密码缓存选项 "session" or "local" + # or "local" + Storage: "session" + + # 开启 Pjax 无刷新加载 + # Enable pjax with swup.js + pjax: true + + # 开启 PWA + # use service worker + pwa: true + + # 开启数学公式 + # katex + katex: true + + # 开启返回顶部按钮 + # backtop button + backtop: true + + # 文章封面图片纵横比 + # article image aspect ratio + featuredImageHeight: "42%" #42% | false + + # 默认文章封面图片,不会显示在内容页面 + # Default post card featured image, not displayed on content pages + defaultFeaturedImage: false # false | featured.png in assets folder | https://unsplash.it/1920/1080/?random={{timestamp}} + + # 自动调整图片大小并兼容 Webp 格式 + # Optimize your images and SEO + imageProcessing: + cover: true + content: true + autoResize: + - 1080 + - 1440 + webp: true + + # 设置推特卡片样式 + opengraph: + twitter: # see https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started + cardType: summary_large_image # summary | summary_large_image + site: "@Ice_Hazymoon" + image: "featured.png" # in assets folder | false + + author: Ice-Hazymoon + keywords: + - Hugo + - Hugo Theme + - Luna + description: "A simple, performance-first, SEO-friendly Hugo theme" + +build: + noJSConfigInAssets: true + +languages: + de: + languageName: Deutsch + params: + languageIcon: "images/i18n/en-us.svg" # in assets folder + en-us: + languageName: English + params: + languageIcon: "images/i18n/en-us.svg" # in assets folder \ No newline at end of file diff --git a/content/about.en-us.md b/content/about.en-us.md new file mode 100644 index 0000000..bdd5035 --- /dev/null +++ b/content/about.en-us.md @@ -0,0 +1,17 @@ +--- +title: "About" +date: 2022-12-12T06:31:45+00:00 +layout: "page" +type: page +comments: false +--- + +# About me + +Hi, I would describe myself as Multitalent, because I can do a bit of everything and learn new things as soon as I need them. + +## My skills +{{< progress 95 theme ".NET development with C#" >}} +{{< progress 70 theme "Microsoft SQL development" >}} +{{< progress 25 theme "Webdevelopment in Angular and Typescript" >}} +{{< progress 5 theme "Webdevelopment with Hugo" >}} diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..739102f --- /dev/null +++ b/content/about.md @@ -0,0 +1,18 @@ +--- +title: "Über" +date: 2022-12-12T06:31:45+00:00 +layout: "page" +type: page +comments: false +--- + +# Über mich + +Hi, ich würde mich als Multitalent beschreiben, da ich irgendwie alles ein bisschen kann und Neues was mich interressiert einfach lerne. + +## Meine Skills +{{< progress 95 theme ".NET entwicklung mit C#" >}} +{{< progress 70 theme "Microsoft SQL entwicklung" >}} +{{< progress 25 theme "Webentwicklung mit Angular und Typescript" >}} +{{< progress 5 theme "Webentwickung mit Hugo" >}} + diff --git a/content/archive.en-us.md b/content/archive.en-us.md new file mode 100644 index 0000000..83d4186 --- /dev/null +++ b/content/archive.en-us.md @@ -0,0 +1,5 @@ +--- +title: "Archive" +layout: "archives" +date: 2022-12-12T06:31:45+00:00 +--- \ No newline at end of file diff --git a/content/archive.md b/content/archive.md new file mode 100644 index 0000000..2109ab7 --- /dev/null +++ b/content/archive.md @@ -0,0 +1,5 @@ +--- +title: "Archiv" +layout: "archives" +date: 2022-12-12T06:31:45+00:00 +--- \ No newline at end of file diff --git a/content/github.en-us.md b/content/github.en-us.md new file mode 100644 index 0000000..8fc0f0b --- /dev/null +++ b/content/github.en-us.md @@ -0,0 +1,5 @@ +--- +title: "GitHub" +date: 2022-12-12T06:31:45+00:00 +layout: "github" +--- \ No newline at end of file diff --git a/content/github.md b/content/github.md new file mode 100644 index 0000000..8fc0f0b --- /dev/null +++ b/content/github.md @@ -0,0 +1,5 @@ +--- +title: "GitHub" +date: 2022-12-12T06:31:45+00:00 +layout: "github" +--- \ No newline at end of file diff --git a/content/links/github.png b/content/links/github.png new file mode 100644 index 0000000000000000000000000000000000000000..492c05fd204c3b78ba851f64c859f2beaeec04af GIT binary patch literal 1933 zcmbtV`8OK~7mX^h1wlnRRBEYatWmV~q(a2Ld|FFM)l!{SZLyAGN~onlY^g?TsWGOs zGm0hzr6@^BGm2WP_Gl>)Yb{^qZUruY|=z=g7~` zxmL}lkO^6O;_CNv31V6Om#tBKD&kjl(#p|^<=}z`YB>+U)>CRKyU0#)i|`7O6~FGQ zcvTDb9|)Q<+>Ez6Sk{6yGru^!53zD)aZKECqqXi!_}ue`K_4I7IsWaqMIui{@L3-K zu8++6FZ4V!g~4F_?)ca!pf`szR8u0iHT)p zXCE)i0uvY1EZHf+27@EV?@z!`1-5GCE`EOP!2_i&EiKK>&6-zV9E@p5?lQ1Rl>!4H z6m5qH!7diI;G82_&!6*8H3z@HG54+wYAsm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;=@Ug*@vD@uZ@94z;c|5JR=v+_PaA5yUL#8v$GJ~TUr5SBcb1vP zUTgTHwiap{^Q|WvQXL0&@b&er_}L~h@#i8^bgda{`LK0fqLe;yC$AF%j!<#56!TFkCt0#%LtdE)5 z=q=px2YV!j#jax``q10l1$$8-Jlo6sO(hP=_pJgqmk;=u7={(*rk-%mev-6kk?8Zv z%F3put*O>n{idx}tQvOzLxmM7weOmS69rbrOrH}} +{{< link url="https://www.youtube.com/@kb01guy74" image="youtube.png" title="YouTube" desc="My YouTube Channel" >}} diff --git a/content/links/index.md b/content/links/index.md new file mode 100644 index 0000000..bc34055 --- /dev/null +++ b/content/links/index.md @@ -0,0 +1,10 @@ +--- +title: "Links" +date: 2022-12-13T21:24:00+08:00 +layout: "links" +--- + +#### WebSite + +{{< link url="https://github.com/kb01guy" image="github.png" title="GitHub" desc="Mein Github Account" >}} +{{< link url="https://www.youtube.com/@kb01guy74" image="youtube.png" title="YouTube" desc="Mein YouTube Kanal" >}} diff --git a/content/links/youtube.png b/content/links/youtube.png new file mode 100644 index 0000000000000000000000000000000000000000..61864827a2c3a673a6ea5f1eefabe6c0504b3c50 GIT binary patch literal 1761 zcmb7_={p;U7RD12Yi(_i))qJRP|})~T2ql)iilRJSUaXsdrP&}5GAoiY;8kSEmeDI zw5X*hGQn7C8DTn%8ao}@Dj^+a?)?Mqhx5MAbKd7YAAg5}wZ9}La!LdM0Ek&zp>c=q zbu>bJhZ?vy8+>TOAy%$;007YwM*{@V3!ngiK(;j+b>&{c`s0IOh$Xad7m-HM;KBIH zbcS(z7*E17LRy1)@g9P2s~AR3VA>d*E!833@})8S*8hO;Aym-^ctI z8Hj{Qq#laEJ0dhQxrYdqJX*85|CrrR{fq*hO>te%Uo%YV+G+c2$lBGPHo z#H4caKs@K&$V6GHv&N5&jU)A|xOIFBId8-?Ce@$#iHqi;*X@-or-Xa!;rfd1!ManF z#25QK`#P<;zpz3&scYyR`J8N(hT}`nGPMi%&%844yv+>h0M*71bzZ|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