Skip to content

Instantly share code, notes, and snippets.

@h-enk
h-enk / auto.py
Created August 11, 2023 19:46
Add `content/docs/start-here/auto.py` and run `python3 content/docs/start-here/auto.py`
for i in range(1, 2000):
title = "---\n"
title += f'title: "doc{i}"'
title += "\n"
rest = r"""description: "Doks comes with commands for common tasks."
lead: "Doks comes with commands for common tasks."
date: 2022-10-13T15:21:01+02:00
lastmod: 2022-10-13T15:21:01+02:00
draft: false
images: []
{"lighthouseVersion":"9.6.3","requestedUrl":"https://hyas.netlify.app/","finalUrl":"https://hyas.netlify.app/","fetchTime":"2022-07-08T09:30:35.333Z","gatherMode":"navigation","runWarnings":[],"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse","hostUserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36","benchmarkIndex":2062,"credits":{"axe-core":"4.4.1"}},"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. This includes avoiding [mixed content](https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content), where some resources are l
@h-enk
h-enk / hyas-ci.yml
Last active November 24, 2021 00:32
Continuous Integration workflow for your Hyas project
name: Hyas CI
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
@h-enk
h-enk / deploy-github.yml
Last active February 5, 2021 12:02
Workflow to deploy a Hyas site to GitHub Pages
# Deploy your Hyas site to GitHub Pages
name: GitHub Pages
on:
push:
branches:
- master
jobs:
@h-enk
h-enk / _variables.scss
Created December 4, 2019 07:39
Change Google Fonts via params - Hugo
// Typography
//
// Font, line-height, and color for body text, headings, and more.
// stylelint-disable value-keyword-case
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
$font-family-base: $font-body, $font-family-sans-serif;
// stylelint-enable value-keyword-case