Skip to content

Commit

Permalink
theme(fix): smaller fixes to shortcodes
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Kollitsch <[email protected]>
  • Loading branch information
davidsneighbour committed Oct 1, 2024
1 parent a9219c5 commit c1dffdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layouts/shortcodes/keycombinations.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<td>
{{- $combinations := strings.Split .combination " + " -}}
{{- range $index, $combination := $combinations -}}
{{- if $index -}}+{{- end -}}
{{- if $index }} + {{ end -}}
<kbd>{{- . -}}</kbd>
{{- end -}}
</td>
Expand Down
8 changes: 4 additions & 4 deletions layouts/shortcodes/typocaster.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
const fontWeightSelect = document.getElementById('font-weight-select');
const fontSizeSelect = document.getElementById('font-size-select');

// Function to dynamically create and insert the Google Font link
{{/* // Function to dynamically create and insert the Google Font link
function createFontLink(fontName) {
const link = document.createElement('link');
link.rel = 'stylesheet';
Expand All @@ -60,7 +60,7 @@
function removeExistingFontLinks() {
const existingLinks = document.querySelectorAll('link[href*="fonts.googleapis.com"]');
existingLinks.forEach(link => link.remove());
}
} */}}

// Function to display characters from the Latin and special characters range
function displayCharacters() {
Expand Down Expand Up @@ -99,8 +99,8 @@
const selectedFontWeight = fontWeightSelect.value;
const selectedFontSize = fontSizeSelect.value;

removeExistingFontLinks(); // Remove any previous Google Fonts link
createFontLink(selectedFont); // Create and append the new font link
{{/* removeExistingFontLinks(); // Remove any previous Google Fonts link
createFontLink(selectedFont); // Create and append the new font link */}}

// Apply the selected font, font weight, and font size in one operation
typographyInfoContainer.style.cssText = `
Expand Down

0 comments on commit c1dffdc

Please sign in to comment.