diff options
-rw-r--r-- | .envrc | 1 | ||||
-rw-r--r-- | .github/workflows/gh-pages.yml | 32 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | LICENSE | 25 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | archetypes/default.md | 6 | ||||
-rw-r--r-- | config.toml | 52 | ||||
-rw-r--r-- | flake.lock | 41 | ||||
-rw-r--r-- | flake.nix | 16 | ||||
-rw-r--r-- | shell.nix | 6 | ||||
m--------- | themes/researcher | 0 |
12 files changed, 191 insertions, 0 deletions
diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..b50ddd2 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,32 @@ +name: github pages + +on: + push: + branches: + - main # Set a branch to deploy + pull_request: + +jobs: + deploy: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..87e930f --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +public/ +resources/ + +*.lock + +.direnv/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..789ab56 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/researcher"] + path = themes/researcher + url = https://github.com/ojroques/hugo-researcher.git diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..588b291 --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +BSD 2-Clause License + +Copyright (c) 2022, Baitinq +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d51f53d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# My Personal Website + +Built with hugo 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.toml b/config.toml new file mode 100644 index 0000000..f85cd7a --- /dev/null +++ b/config.toml @@ -0,0 +1,52 @@ +baseURL = 'http://baitinq.github.io/' +languageCode = 'en-us' +title = 'Baitinq' +math = true + +theme = "researcher" + + +[params] + author = "Baitinq" + description = "Personal website." + favicon = "favicon.ico" # path to a .ico to use as favicon + logo = "" # url or path to a logo to put in the header + [params.footer] + text = "By Baitinq" + url = "https://github.com/Baitinq/baitinq.github.io" + [params.style] # appearance options (can be omitted) + fontFamily = "Inconsolata" + pageWidth = "750px" + avatarSize = "90px" + colorBlack = "#222222" + colorRed = "#dc3545" + [[params.socialIcons]] + icon = "fab fa-github" + title = "GitHub" + url = "https://github.com/Baitinq" + [[params.socialIcons]] + icon = "fas fa-key" + title = "Keybase" + url = "https://keybase.io/baitinq" + [[params.socialIcons]] + icon = "fas fa-envelope" + title = "E-mail" + url = "mailto:mail@example.com" + +[menu] + [[menu.main]] + name = "About" + url = "/about" + weight = 1 + [[menu.main]] + name = "Resume" + url = "/cv.pdf" + weight = 1 + [[menu.main]] + name = "Projects" + url = "/projects" + weight = 1 + [[menu.main]] + name = "Blog" + url = "/blog" + weight = 1 diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..a86395e --- /dev/null +++ b/flake.lock @@ -0,0 +1,41 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1656928814, + "narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1659102345, + "narHash": "sha256-Vbzlz254EMZvn28BhpN8JOi5EuKqnHZ3ujFYgFcSGvk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "11b60e4f80d87794a2a4a8a256391b37c59a1ea7", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..74fd650 --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +{ + description = "baitinq.github.io flake"; + + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + devShells.default = import ./shell.nix { inherit pkgs; }; + } + ); + +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..28e60c0 --- /dev/null +++ b/shell.nix @@ -0,0 +1,6 @@ +{ pkgs ? import <nixpkgs> { } }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + hugo + ]; +} diff --git a/themes/researcher b/themes/researcher new file mode 160000 +Subproject 957cc01c28f2e7049c43632326570bb9924392e |