{"id":15138399,"url":"https://github.com/dpbriggs/dpbriggs-blog","last_synced_at":"2025-10-23T15:30:23.061Z","repository":{"id":42022926,"uuid":"168980403","full_name":"dpbriggs/dpbriggs-blog","owner":"dpbriggs","description":"My personal website and blog, written in Rust, Tera, and Bootstrap.","archived":false,"fork":false,"pushed_at":"2023-03-11T18:53:40.000Z","size":546,"stargazers_count":26,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T10:07:02.403Z","etag":null,"topics":["blog","bootstrap","org-mode","rocket","rust","tera"],"latest_commit_sha":null,"homepage":"https://dpbriggs.ca","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpbriggs.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-03T18:49:34.000Z","updated_at":"2024-10-20T03:16:02.000Z","dependencies_parsed_at":"2024-09-16T12:33:09.362Z","dependency_job_id":"a961c598-8b1b-4d12-a133-751527d21c03","html_url":"https://github.com/dpbriggs/dpbriggs-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpbriggs%2Fdpbriggs-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpbriggs%2Fdpbriggs-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpbriggs%2Fdpbriggs-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpbriggs%2Fdpbriggs-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpbriggs","download_url":"https://codeload.github.com/dpbriggs/dpbriggs-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237843768,"owners_count":19375201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","bootstrap","org-mode","rocket","rust","tera"],"created_at":"2024-09-26T07:23:20.299Z","updated_at":"2025-10-23T15:30:22.572Z","avatar_url":"https://github.com/dpbriggs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+AUTHOR: David Briggs \u003cemail@dpbriggs.ca\u003e\n\n* dpbriggs.ca\n[[https://travis-ci.org/dpbriggs/dpbriggs-blog.svg?branch=master][https://travis-ci.org/dpbriggs/dpbriggs-blog.svg?branch=master]]\n\nThis repository holds my personal website [[https://dpbriggs.ca][dpbriggs.ca]].\n\n\nFeel free to fork and modify this website. Please note this website\nis under GPLv3 so be sure to keep the license and attribute.\n\n\nBuilt with:\n- [[https://rocket.rs/][Rocket]] 🚀 (Rust Web Framework)\n- [[https://github.com/Keats/tera][Tera]] (Fast templating language/engine, similar to Jinja2)\n- [[https://getbootstrap.com/][Bootstrap]] (CSS framework)\n\n\n** Running the website locally (development)\n\nRunning the website locally is pretty easy, thanks to =cargo= and =rustup=.\n\n1. Be sure you have [[https://rustup.rs/][rustup]] to install a nightly toolchain.\n2. Install a nightly toolchain =rustup toolchain add nightly=\n3. Set nightly as your default toolchain =rustup default nightly=\n4. Clone and enter the project =git clone git@github.com:dpbriggs/dpbriggs-blog.git \u0026\u0026 cd dpbriggs-blog=\n5. Run the project =cargo run=\n6. (optional) rename the project (replace =myname= with whatever you want):\n   - =mv dpbriggs-blog myname-blog=\n   - Edit =Cargo.toml= and change instances of =dpbriggs= in there to =myname=\n   - Edit =src/context.rs= and update the default site context.\n\nAlternatively, use the make file:\n\n#+begin_example\nmake watch # live-reload\nmake test  # run tests\n#+end_example\n\n** Deploying the website\n\nAs is tradition, we need several ways to build the website.\nThe server which runs my website is running a stable version of Ubuntu, and my arch system\nhas a relatively new version of Glibc. It's no longer possible for me to run =make_package.sh=\nand upload the artifacts.\n\nSo I added a quick docker container which will generate the build artifacts.\n\n*** Using docker\n\nTo build the container:\n\n#+begin_example\n  cd docker\n  docker build . -t blog-maker\n#+end_example\n\nThis will setup a container with rust running ubuntu 18.04.\n\nTo generate a build artifact:\n\n#+begin_example\ndocker run --rm -v ~/programming/dpbriggs-blog:/source blog-maker\n#+end_example\n\nThis will output something like:\n\n#+begin_example\n... rust build stuff ...\nCreated project archive dpbriggs-blog-Aug-15-2021-06-47PM.zip in current directory.\nSimply copy to server, unzip, and use:\nsystemctl --user restart run_site run_caddy\n#+end_example\n\nIf this succeeds, you'll have a new artifact that looks like =dpbriggs-blog-Aug-15-2021-06-47PM.zip= in the repo root.\n\n*NOTE*: This zip only builds off of the latest committed master. Some files, like =.caddy-env= will need to be copied onto the server normally.\n\n** Attribution\n\n- [[https://github.com/highlightjs/highlight.js/blob/main/LICENSE][highlight.js]]\n- [[https://github.com/twbs/bootstrap/blob/v4.2.1/LICENSE][Bootstrap]]\n- [[https://github.com/thomaspark/bootswatch/blob/v5/LICENSE][Bootstrap slate]]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpbriggs%2Fdpbriggs-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpbriggs%2Fdpbriggs-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpbriggs%2Fdpbriggs-blog/lists"}