Skip to content

Commit

Permalink
Upgrade hugo-bin-extended
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimjaved12 committed Jan 21, 2025
1 parent 29ae789 commit bd56a76
Show file tree
Hide file tree
Showing 4 changed files with 351 additions and 378 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"exec-sh": "^0.4.0",
"file-loader": "^5.0.2",
"hugo-bin-extended": "~0.112.7",
"hugo-bin-extended": "~0.141.0",
"imports-loader": "^0.8.0",
"inquirer": "^8.2.5",
"jest": "^27.4.7",
Expand Down
4 changes: 2 additions & 2 deletions package_scripts/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type HugoServerOptions = {
bind: string
config: string
themesDir: string
renderToDisk: boolean
renderToMemory: boolean
}

const hugoServer = (
Expand All @@ -24,7 +24,7 @@ const hugoServer = (
port: 3000,

Check failure on line 24 in package_scripts/start.ts

View workflow job for this annotation

GitHub Actions / javascript-tests

Missing space before value for key 'port'
bind: "0.0.0.0",

Check failure on line 25 in package_scripts/start.ts

View workflow job for this annotation

GitHub Actions / javascript-tests

Missing space before value for key 'bind'
themesDir: process.cwd(),

Check failure on line 26 in package_scripts/start.ts

View workflow job for this annotation

GitHub Actions / javascript-tests

Missing space before value for key 'themesDir'
renderToDisk: true,
renderToMemory: true,
...opts
}
return `hugo server ${u.getOptions(allOpts)}`
Expand Down
4 changes: 2 additions & 2 deletions www/layouts/partials/new_course_cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{{ $courseStarterSlug := getenv "OCW_COURSE_STARTER_SLUG" }}
{{ $coursesQuery := querify "type" $courseStarterSlug "limit" 12 }}
{{ $coursesURL := (print (strings.TrimSuffix "/" $studioBaseUrl) "/api/websites/?" $coursesQuery) }}
{{ with resources.GetRemote $coursesURL }}
{{ with try (resources.GetRemote $coursesURL) }}
{{ if not .Err }}
{{ $results := (. | unmarshal).results }}
{{ $results := (.Value | unmarshal).results }}
{{ if $results }}
{{ $breakdowns := (dict "xs-sm" (dict "size" 1 "class" "d-flex d-md-none") "md" (dict "size" 2 "class" "d-none d-md-flex d-lg-none") "lg" (dict "size" 3 "class" "d-none d-lg-flex d-xl-none") "xl" (dict "size" 4 "class" "d-none d-xl-flex")) }}
<!-- list adapted from https://getbootstrap.com/docs/4.0/utilities/display/#hiding-elements -->
Expand Down
Loading

0 comments on commit bd56a76

Please sign in to comment.