Skip to content

diegosanchezp/blog-portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diego Sánchez Web Portfolio v2

This is the new version of my portfolio, the architecture is inspired by fireship.io

Made with

See this diagram for a more intuitive explanation

Todo: put image of diagram here

It follows SASS guidelines for styling

How to integrate Web components with Hugo

  1. Make .ts file that would be the component class.
  2. Declare your webcomponent class in web-components.ts with customElements.define() method.
  3. Run npm run build:hugo to bundle the declared components into a .js optimized file. This script will move the bundle to the hugo static files folder.
  4. Since the bundle filename is not constant (it varies depending on the build) you can access the bundle filename in Hugo's templates via the .Data variable, that is, {{ .Site.Data.components.bundle }}
    Access the bundle filename via a script tag
<script type="module" src="components/{{.Site.Data.components.bundle}}"></script>

About

Mi personal portfolio

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published