{"id":17722821,"url":"https://github.com/bramp/blog","last_synced_at":"2026-03-19T01:54:03.402Z","repository":{"id":34517356,"uuid":"38459330","full_name":"bramp/blog","owner":"bramp","description":"My blog (work in progress)","archived":false,"fork":false,"pushed_at":"2022-04-03T08:24:44.000Z","size":63153,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-06T10:39:05.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.bramp.net","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-02T22:09:05.000Z","updated_at":"2023-05-31T16:09:12.000Z","dependencies_parsed_at":"2022-09-14T10:11:27.727Z","dependency_job_id":null,"html_url":"https://github.com/bramp/blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bramp/blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramp","download_url":"https://codeload.github.com/bramp/blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fblog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274536170,"owners_count":25303780,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-25T15:39:31.413Z","updated_at":"2026-02-13T03:10:57.899Z","avatar_url":"https://github.com/bramp.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"bramp.net blog\n==============\n\nThis is a redesign of my wordpress blog, to a Hugo based static site.\n\nNew Features\n * Static site, no more Wordpress + PHP + MySQL maintance\n * Using Hugo (written in Go)\n * Hosted on GitHub's CDN. This gives speed and SSL\n * Simplier / Cleaner / Modern HTML design\n\nDependencies\n------------\n```bash\n# Install hugo (Mac)\nbrew install hugo@v0.82\n\n# Install hugo (Linux)\nsudo apt-get install hugo\n\n# Install hugo (Other)\ngo get github.com/kardianos/govendor\ngovendor get github.com/spf13/hugo@v0.82\n\n# For minifiying/linting\nnpm install clean-css-cli@4.1.10 uglify-js@3.2.1 html-minifier@3.5.7 purify-css@1.2.5\nbrew install parallel # or sudo apt-get install parallel\nbrew install zopfli\n```\n\nNew Article\n-----------\n```bash\n# `make help` shows the example:\nhugo new post/2017-07-15-the-title.md\nnano content/post/2017-07-15-the-title.md\nmake watch\n\n# Once done commit your changes\ngit add content/post/2017-07-15-the-title.md\ngit commit\n```\n\nTables\n------\n\nThe Bootstrap CSS requires that all tables have a `class=\"table\"` added to them. It's a inconvience, but we have a Hugo shortcode to try and fix this for us. Please use the syntax:\n\n```markdown\n{{\u003ctable \"table\"\u003e}}\n\n| Your | Table |\n|------|-------|\n| Goes | Here  |\n\n{{\u003c/table\u003e}}\n```\n\nor any of the [other styles](https://bootstrapdocs.com/v3.2.0/docs/css/#tables), such as `{{\u003ctable \"table table-striped table-hover table-condensed table-bordered\"\u003e}}\n\nResize Images\n---------------\n```bash\n# Ensure the images are at a resonable size (720px wide by whatever height)\nconvert orig.png -resize 720x resize.png\n\n# Consider retina displays\nconvert orig.png -resize 1440x resize@2x.png\n```\n\nOptimise Images\n---------------\n```bash\nfind content static -name '*.png' | parallel --no-notice --tag zopflipng -y \"{}\" \"{}\"\nfind content static -name '*.gif' | parallel --no-notice --tag gifsicle -O -o \"{}\" \"{}\"\n```\n\n\nDeploy\n-----\n```bash\n./deploy.sh\n```\n\n\nChecks\n------\n```bash\nlinkchecker http://localhost:1313/ \u003e log.internal\nlinkchecker --check-extern http://localhost:1313/ \u003e log.external\n```\n\nFont Awesome\n------------\nFont Awesome contains some awesome icons, but sadly is huge! So I used icomoon to make a svg sprite of the icons I want, and use slightly different options to display them on the screen.\nInfo: https://usolved.net/blog/post/switch-from-icon-fonts-to-svg-icons\n\nTODO\n----\n- [ ] Fix disqus (dsq_thread_id). Have to update URLs on disque\n- [x] Problem parsing last link in markdown. (e.g [N] doesn't work) Fix at https://github.com/russross/blackfriday/issues/180\n- [x] Check the links haven't changed. Write script to check all URLs on bramp.net still exist\n- [x] Test 404\n- [x] Center all tables\n- [x] Ensure no broken links\n\nTODO (nice to have)\n- [ ] Amazon code\n- [ ] Tag cloud\n- [ ] Change to a full width layout (like http://blog.gopheracademy.com/)\n- [x] Makefile, compress html, etc\n- [ ] Add a \"edit me link\"\n- [x] Test twitter card\n- [x] Investigate facebook card\n- [x] Minify JS/CSS\n- [ ] Report bug in hugo with tags with dots in the name. For example \"last.fm\" is handled incorrectly.\n- [ ] Sitemap.xml does not contain all pages (such as /opensource-project/*)\n- [ ] The Summary/Descriptions are wrong on pages using the \u003c!--more--\u003e syntax\n- [ ] Hugo v0.58.0 Adds support for image manulation, plus extracting metadata. (e.g {{ ($myimg | fingerprint ).Width }}\tor {{ $image.Resize \"600x jpg #b31280\" }}\n- [ ] Hugo v0.62.1 Demonstrates truly portable Markdown links and images, whether browsed on GitHub or deployed as a Hugo site.\n- [ ] Hugo v0.68.0 Native minifier, perhaps use it?\n- [ ] Use PageSpeed Insights to improve load performance\n- [ ] Disque causes the page to load slowly. Is there a way to improve that?\n- [ ] Set up better caching with CloudFlare. Github pages by default only cache for 10 minutes! https://webmasters.stackexchange.com/questions/30609/leverage-browser-caching-on-github-pages\n- [ ] Replace addthis with sharethis (it seems to have rebranded itself)\n- [ ] Update to the latest disque code: https://bramp.disqus.com/admin/settings/universalcode/ ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramp%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fblog/lists"}