Skip to content

Instantly share code, notes, and snippets.

View xixianykus's full-sized avatar

xixiankus xixianykus

View GitHub Profile
@xixianykus
xixianykus / test.js
Last active February 28, 2022 12:44
header("Content-Type: Application/javascript");
header("Access-Control-Allow-Origin: *");
console.log('this is from test.js a github gist');
@xixianykus
xixianykus / links.md
Last active May 12, 2021 11:31
List of useful web design links
@xixianykus
xixianykus / breadcrumbs.md
Created April 9, 2021 04:16
breadcrumb nav for Hugo

Copy the the following to a partial file. I only just changed the class name. I used CSS to control the layout, add the > symbols.

`

    {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}

{{ define "breadcrumbnav" }} {{ if .p1.Parent }} {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} {{ else if not .p1.IsHome }} {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
@xixianykus
xixianykus / len-Hugo.txt
Created April 9, 2021 03:55
Count pages in Hugo
{{ len .Site.RegularPages }}