Official Core integration for Thulite.
See the Thulite documentation:
This npm package is based on:
Official Core integration for Thulite
License: MIT License
Official Core integration for Thulite.
See the Thulite documentation:
This npm package is based on:
Brief explanation of the feature.
Replace Andy-set-studio/modern-css-reset with a more up to date one
Include a basic example or links here.
Why are we doing this? What use cases does it support? What is the expected outcome?
Brief explanation of the feature.
Include a basic example or links here.
Why are we doing this? What use cases does it support? What is the expected outcome?
Update libsass.html — create resource from template with ExecuteAsTemplate
:
{{ $css := "" }}
{{ if eq (hugo.Environment) "development" -}}
{{ $options := (dict "targetPath" "main.css" "transpiler" "libsass" "enableSourceMap" true "includePaths" (slice "node_modules")) -}}
{{ $css = resources.Get . | resources.ExecuteAsTemplate "app.scss" . | toCSS $options | resources.Fingerprint "sha512" -}}
{{ else -}}
{{ $options := (dict "targetPath" "main.css" "transpiler" "libsass" "outputStyle" "compressed" "includePaths" (slice "node_modules")) -}}
{{ $css = resources.Get . | resources.ExecuteAsTemplate "app.scss" . | toCSS $options | postCSS (dict "config" "config/postcss.config.js") | resources.Fingerprint "sha512" -}}
{{ end -}}
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous">
In config\_default\hyas\starter.toml
:
[..]
# SCSS
backGround = "yellowgreen"
In assets\scss\app.scss
:
[..]
body {
background-color: {{ site.Data.starter.backGround }};
}
[..]
For, now (back) in h-enk/hyas
See: https://github.com/h-enk/hyas-core/blob/main/layouts/partials/footer/esbuild.html#L77-L79
<script {{ with $load }}{{ . }}{{ end }}
src="{{- $js.RelPermalink -}}"
integrity="{{- $js.Data.Integrity -}}"></script>
Gets rendered as — for example:
<script ZgotmplZ
src="/js/bootstrap.cab6a9fd760df551eb4f2d5b061e92f9d3948ab3e72c6ba4621a91ac01c55ca1.js"
integrity="sha256-yrap/XYN9VHrTy1bBh6S+dOUirPnLGukYhqRrAHFXKE="></script><script ZgotmplZ
src="/js/app.1b957aaec1272a032f2d481858c1074c37a3f32ee071717c5b80d40947c8b005.js"
integrity="sha256-G5V6rsEnKgMvLUgYWMEHTDej8y7gcXF8W4DUCUfIsAU="></script>
<script {{ with $load }}{{ . | safeHTMLAttr }}{{ end }}
src="{{- $js.RelPermalink -}}"
integrity="{{- $js.Data.Integrity -}}"></script>
Gets rendered as — for example:
<script async
src="/js/bootstrap.cab6a9fd760df551eb4f2d5b061e92f9d3948ab3e72c6ba4621a91ac01c55ca1.js"
integrity="sha256-yrap/XYN9VHrTy1bBh6S+dOUirPnLGukYhqRrAHFXKE="></script><script async
src="/js/app.1b957aaec1272a032f2d481858c1074c37a3f32ee071717c5b80d40947c8b005.js"
integrity="sha256-G5V6rsEnKgMvLUgYWMEHTDej8y7gcXF8W4DUCUfIsAU="></script>
Update esbuild.html:
[..]
{{- /* pass hugo env to the js file as a param */ -}}
{{- /* $params := (dict "env" hugo.Environment) */ -}}
{{- $paramsDefault := (dict "env" hugo.Environment) -}}
{{- $params := "" -}}
{{- with .params -}}
{{- $params = merge $paramsDefault . -}}
{{- else -}}
{{- $params = $paramsDefault -}}
{{- end -}}
[..]
In layouts\partials\footer\script-footer-core.html
:
{{ $plausibleAnalyticsDomain := site.Data.starter.plausibleAnalyticsDomain -}}
{{ partial "footer/esbuild" (dict "src" "js/app.js" "targetPath" "main.js" "load" "async" "transpile" false "params" (dict "plausibleAnalyticsDomain" $plausibleAnalyticsDomain)) -}}
[..]
In assets\js\plausible.js
:
[..]
import * as params from '@params';
const plausibleAnalyticsDomain = params.plausibleAnalyticsDomain;
[..]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.