From 2da4e6ea789f146be1865fc6e29e84a3351efffa Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 8 Dec 2023 11:37:31 +0100 Subject: [PATCH] I like this --- .gitignore | 135 ++++++++++++++++++ hugo.toml | 5 + package-lock.json | 43 ++++++ package.json | 10 ++ .../minimal-theme/layouts/partials/head.html | 1 + 5 files changed, 194 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 86c95ef..85ca25d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# Hugo .gitignore + # Generated files by hugo /public/ /resources/_gen/ @@ -11,3 +13,136 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock + +# Node .gitignore + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* diff --git a/hugo.toml b/hugo.toml index 89f8041..93961ba 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,6 +2,7 @@ baseURL = 'https://www.absatsw.irs-uni-stuttgart.de' languageCode = 'en-us' title = 'Institute for Space Systems Satellite Division Software Projects' theme = "minimal-theme" +relativeURLs = true [[menus.main]] name = 'Home' @@ -13,3 +14,7 @@ name = 'Contact' pageRef = 'contact' weight = 20 +[module] + [[module.mounts]] + source = "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js" + target = "assets/js/bootstrap.bundle.min.js" diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4aacd93 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,43 @@ +{ + "name": "sat-sw-website-hugo", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "sat-sw-website-hugo", + "version": "1.0.0", + "dependencies": { + "bootstrap": "^5" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/bootstrap": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.2.tgz", + "integrity": "sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b91907d --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "name": "sat-sw-website-hugo", + "version": "1.0.0", + "description": "University of Stuttgart ABSAT SW Website", + "main": "index.html", + "author": "Robin Mueller", + "dependencies": { + "bootstrap": "^5" + } +} diff --git a/themes/minimal-theme/layouts/partials/head.html b/themes/minimal-theme/layouts/partials/head.html index c15b7b4..08a250e 100644 --- a/themes/minimal-theme/layouts/partials/head.html +++ b/themes/minimal-theme/layouts/partials/head.html @@ -1,5 +1,6 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} + {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }}