diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 7112ade3..69f13156 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -684,11 +684,6 @@ select { max-width: 65ch; } -.prose :where(p):not(:where([class~="not-prose"] *)) { - margin-top: 1.25em; - margin-bottom: 1.25em; -} - .prose :where([class~="lead"]):not(:where([class~="not-prose"] *)) { color: var(--tw-prose-lead); font-size: 1.25em; @@ -1056,6 +1051,11 @@ select { line-height: 1.75; } +.prose :where(p):not(:where([class~="not-prose"] *)) { + margin-top: 1.25em; + margin-bottom: 1.25em; +} + .prose :where(video):not(:where([class~="not-prose"] *)) { margin-top: 2em; margin-bottom: 2em; @@ -1271,14 +1271,14 @@ select { margin: 0.25rem; } -.m-2 { - margin: 0.5rem; -} - .m-0 { margin: 0px; } +.m-2 { + margin: 0.5rem; +} + .-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; @@ -1409,6 +1409,14 @@ select { margin-bottom: 2.5rem; } +.mr-1 { + margin-right: 0.25rem; +} + +.mr-5 { + margin-right: 1.25rem; +} + .\!mb-9 { margin-bottom: 2.25rem !important; } @@ -1485,6 +1493,10 @@ select { height: 2rem; } +.h-3 { + height: 0.75rem; +} + .h-full { height: 100%; } @@ -1545,6 +1557,10 @@ select { width: 2rem; } +.w-3 { + width: 0.75rem; +} + .w-6 { width: 1.5rem; } @@ -1893,6 +1909,10 @@ select { padding: 0.25rem; } +.p-5 { + padding: 1.25rem; +} + .p-0 { padding: 0px; } diff --git a/assets/icons/fork.svg b/assets/icons/fork.svg new file mode 100644 index 00000000..38b9e053 --- /dev/null +++ b/assets/icons/fork.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/star.svg b/assets/icons/star.svg new file mode 100644 index 00000000..7b974c4f --- /dev/null +++ b/assets/icons/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 09147f37..6ca29761 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -40,6 +40,7 @@ The full list of built-in icons and their corresponding names can referenced bel | facebook | {{< icon facebook >}} | | fire | {{< icon fire >}} | | flickr | {{< icon flickr >}} | +| fork | {{< icon fork >}} | | foursquare | {{< icon foursquare >}} | | ghost | {{< icon ghost >}} | | github | {{< icon github >}} | @@ -87,6 +88,7 @@ The full list of built-in icons and their corresponding names can referenced bel | snapchat | {{< icon snapchat >}} | | soundcloud | {{< icon soundcloud >}} | | stack-overflow | {{< icon stack-overflow >}} | +| star | {{< icon star >}} | | steam | {{< icon steam >}} | | stripe | {{< icon stripe >}} | | sun | {{< icon sun >}} | diff --git a/layouts/shortcodes/github.html b/layouts/shortcodes/github.html index a101de3d..5c7e21b0 100644 --- a/layouts/shortcodes/github.html +++ b/layouts/shortcodes/github.html @@ -1,38 +1,46 @@ - {{- $githubData := getJSON (print "https://api.github.com/repos/" (.Get "repo")) -}} {{- $githubColors := .Site.Data.githubColors -}} {{- with $githubData -}} - -
-
- {{ partial "icon.html" "github" }} - {{ .full_name | emojify }} + +
+ +
+ + {{ partial "icon.html" "github" }} + +
+ {{ .full_name | markdownify | emojify }} +
+
+ +

+ {{ .description | markdownify | emojify }} +

+ +
+ + +
+ {{ .language }} +
+ + + {{ partial "icon.html" "star" }} + +
+ {{ .stargazers_count }} +
+ + + {{ partial "icon.html" "fork" }} + +
+ {{ .forks }} +
+ +
+
-
- - - - {{- end -}} \ No newline at end of file