Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer static project to HUGO project builder #2

Merged
merged 6 commits into from
Dec 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .,gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Default stuff
.DS_Store
node_modules
dist
tmp

# Hugo
/resources/_gen/
Empty file added .hugo_build.lock
Empty file.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ignore artifacts:
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"proseWrap": "preserve",
"singleQuote": true,
"goTemplateBracketSpacing": true,
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template"
}
}
]
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["adamvoss.vscode-languagetool-de"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"compile-hero.disable-compile-files-on-did-save-code": false
"compile-hero.disable-compile-files-on-did-save-code": true
}
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# HAWK GT1191

GT 1191“ (vormals „4411“) ist ein Seminar des Studiengangs Bachelor
of Arts (BA) der Fakultät Gestaltung an der HAWK Hochschule für
angewandte Wissenschaft und Kunst in Hildesheim.
![Maintenance](https://img.shields.io/maintenance/yes/2021)
![cms](https://img.shields.io/badge/cms-hugo-orange)

"GT 1191" (formerly "4411") is a seminar of the study program Bachelor of Arts (BA) of the Faculty of Design at the HAWK University of Applied Science and Art in Hildesheim.

This is a private project from the lecturer [David Maciejewski](https://macx.io) to support students with informations via the [website](https://hawk-gt1191.de) and is not related to HAWK as a publisher of this information.

## Prequisites

Clone this repository to start working on it:

```sh
$ git clone [email protected]:macx/hawk-gt1191.git && cd hawk-gt1191
```

In order to run this project, you need to install the following depenencies with [Homebrew](https://brew.sh/index_de):

```sh
$ brew install yarn hugo
$ yarn install
```

## Development

You have the following options to run the development tasks:

```sh
# Start a development server with live-reload
$ yarn dev

# Deploy this site to /public folder
$ yarn build
```
8 changes: 8 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
menu:
- main
- footer
---
Binary file removed assets/dist/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion assets/dist/styles.min.css

This file was deleted.

5 changes: 0 additions & 5 deletions assets/images/hawk-gt1191.svg

This file was deleted.

1 change: 1 addition & 0 deletions assets/scripts.js → assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ window.onload = () => {
document.querySelector('.themebutton').addEventListener('click', () => {
theme.value = theme.value === 'light' ? 'dark' : 'light';
applyThemeAttributes();
setThemePreference();
});
};

Expand Down
Loading