diff --git a/assets/sass/_common/_shortcodes.scss b/assets/sass/_common/_shortcodes.scss index d5cc2821..e406e571 100644 --- a/assets/sass/_common/_shortcodes.scss +++ b/assets/sass/_common/_shortcodes.scss @@ -101,7 +101,7 @@ .gallery-box { .gallery { - @apply relative my-4 flex flex-row justify-center; + @apply relative md:m-4 m-3 flex flex-row justify-center; figure { @apply my-0; img { @@ -109,7 +109,7 @@ } } figure + figure { - @apply ml-4; + @apply md:ml-4 ml-3; } } } \ No newline at end of file diff --git a/assets/sass/_partial/_page_gallery.scss b/assets/sass/_partial/_page_gallery.scss index 0c406fc8..88252d36 100644 --- a/assets/sass/_partial/_page_gallery.scss +++ b/assets/sass/_partial/_page_gallery.scss @@ -1,9 +1,9 @@ .page-gallery { .gallery { - @apply mx-4; + @apply md:mx-4 mx-3; } .gallery-image { - @apply relative mb-4 overflow-hidden rounded; + @apply relative md:mb-4 mb-3 overflow-hidden rounded; figcaption { @apply pointer-events-none absolute bottom-0 w-full px-4 pt-8 pb-4 text-center text-lg text-white opacity-100 transition-opacity duration-300 md:opacity-0; background-image: linear-gradient(to bottom, hsla(330, 0%, 0%, 0), cubic-bezier(0.42, 0, 0.4, 1), hsla(210, 0%, 0%, 0.3)); diff --git a/assets/ts/search.ts b/assets/ts/search.ts index 8ce49ab2..2a6e552a 100644 --- a/assets/ts/search.ts +++ b/assets/ts/search.ts @@ -68,7 +68,7 @@ async function initSearch() { return data[n] }); if (value) { - const html = `
+ const html = `
${window.__theme.i18n.searchResults(results.length, value)}
diff --git a/exampleSite/content/en-us/posts/Shortcodes/index.md b/exampleSite/content/en-us/posts/Shortcodes/index.md index fb7582f8..e8f70e49 100644 --- a/exampleSite/content/en-us/posts/Shortcodes/index.md +++ b/exampleSite/content/en-us/posts/Shortcodes/index.md @@ -125,6 +125,7 @@ This is a {{}} This is a {{}} This is a {{}} This is a {{}} +This is a {{}} This is a {{}} This is a {{}} @@ -136,6 +137,7 @@ This is a {{< tag red "red tag" >}} This is a {{< tag green "green tag" >}} This is a {{< tag blue "blue tag" >}} This is a {{< tag orange "orange tag" >}} +This is a {{< tag theme "theme tag" >}} This is a {{< tag-outlined red "red tag" >}} This is a {{< tag-outlined green "green tag" >}} @@ -149,12 +151,14 @@ This is a {{< tag-outlined orange "orange tag" >}} {{}} {{}} {{}} +{{}} ``` {{< progress 80 green "Name of progress bar" >}} {{< progress 77.54 red "Name of progress bar" >}} {{< progress 123.45 blue "Name of progress bar" >}} {{< progress 11.11 orange "Name of progress bar" >}} +{{< progress 99.99 theme "Name of progress bar" >}} ## Accordion diff --git a/layouts/_default/github.html b/layouts/_default/github.html index f96a49cf..8631a4a5 100644 --- a/layouts/_default/github.html +++ b/layouts/_default/github.html @@ -2,7 +2,7 @@ {{- $githubConfig := .Site.Params.github -}}
{{- if and $githubConfig (and $githubConfig.id $githubConfig.minStars) -}} -
+
{{- .Title -}} @@ -14,7 +14,7 @@
-
+
{{- $githubColors := .Site.Data.luna.githubColors -}} {{- $apiURL := print "https://api.github.com/users/" $githubConfig.id "/repos?per_page=100&type=owner" -}} {{- $githubData := getJSON $apiURL -}} diff --git a/layouts/_default/links.html b/layouts/_default/links.html index 82261c59..a8c3cca7 100644 --- a/layouts/_default/links.html +++ b/layouts/_default/links.html @@ -1,6 +1,6 @@ {{- define "main" -}}