Age | Commit message (Collapse) | Author |
|
weyhmueller/fix/remove_erroneous_space_in_service_button
fix: remove erroneous space in service button
|
|
|
|
|
|
Fix home page not marked as active in menu
|
|
|
|
|
|
chetankothari/make-service-summary-truncation-configurable
Allow services summary truncation to be configurable
|
|
|
|
Avoid summary link target issue when deployed to CloudFlare pages
|
|
Avoid logotype link target issue when deployed to CloudFlare Pages
|
|
Fix "View All Services" button config conditional
|
|
From
https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/#deploying-with-cloudflare-pages:
Hugo allows you to configure the baseURL of your application. This
allows you to utilize the absURL helper to construct full
canonical URLs. In order to do this with Pages, you must provde
the -b or --baseURL flags with the CF_PAGES_URL environment
variable to your hugo build command.
Using the advice above, the baseURL is set to the specific deployment
URL by CloudFlare, e.g.
https://848e759b.my-project-name-here.pages.dev.
Let's say now that 848e759b is the most recent production build. That
means the same version is available at my-project-name-here.pages.dev.
Now, when visiting https://my-project-name-here.pages.dev/, however,
the target for any link using `{{ .Permalink }}` will point to
https://848e759b.my-project-name-here.pages.dev instead of
https://my-project-name-here.pages.dev/.
By using the relative permalink instead, the issues is avoided
altogether.
|
|
From
https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/#deploying-with-cloudflare-pages:
Hugo allows you to configure the baseURL of your application. This
allows you to utilize the absURL helper to construct full
canonical URLs. In order to do this with Pages, you must provde
the -b or --baseURL flags with the CF_PAGES_URL environment
variable to your hugo build command.
Using the advice above, the baseURL is set to the specific deployment
URL by CloudFlare, e.g.
https://848e759b.my-project-name-here.pages.dev.
Let's say now that 848e759b is the most recent production build. That
means the same version is available at my-project-name-here.pages.dev.
Now, when visiting https://my-project-name-here.pages.dev/, however,
the target for the logotype link will be
https://848e759b.my-project-name-here.pages.dev/ because it's based on
the (absolute) base URL. That is likely not the desired behavior.
By using the relative permalink to the home page instead, the anchor
target will simply be `/`, which avoids the issue altogether. This is,
by the way, what the 'ananke' theme currently does.
|
|
|
|
|
|
|
|
Remove unnecessary duplicate line
|
|
Previously, the button would be shown if and only if
`show_services_button` was set to `false`. This inverts the
conditional.
NOTE: This change will potentially break existing sites.
|
|
Previously, with a menu item as follows, the "Home" link did not get
the `active` CSS class and was thus not styled as such.
```toml
[[menu.main]]
name = "Home"
url = "/"
weight = 1
```
The approach used here to determine whether the current page
corresponds to a certain menu entry was inspired by the one suggested
at https://stackoverflow.com/a/56454338. It is supposedly also more
robust when dealing with multilingual sites.
|
|
$services has already been set to the same value a couple of lines
above.
|
|
Simplify template logic
|
|
Remove unnecessary execute permission
|
|
Make Google Fonts optional
|
|
fix: unable to exit hamburger overlay large screen
|
|
`hugo.IsProduction` defaults to true when building with `hugo` and false
when building with `hugo server`, but the user can explicitly set the
build environment and override this. People might want to do a
production build with `hugo server` or a development build with `hugo`.
|
|
|
|
Some of the logic in the templates can be simplified by replacing `if`
actions with `with` actions and Hugo functions. This reduces code
repetition.
|
|
|
|
Allow the user to disable Google Fonts by not setting .Site.Params.fonts.google_fonts.
|
|
|
|
Correct URL to Hero theme
|
|
|
|
|
|
|
|
use .Site.Language.Lang
|
|
use .Site.Language.Lang instead of hardcoded html lang
|
|
|
|
|
|
Fix typo in mobile font size
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|