GithubHelp home page GithubHelp logo

simonwardjones.co.uk's Introduction

simonwardjones.co.uk

Personal website

This personal website is built with the Hugo static site generator and is currently hosted on AWS amplify.

Useful commands

Build and serve pages (including drafts -D)

hugo -D serve

Theme details

The theme (see simon-blog-theme) is found in the themes folder. To install the theme dependencies use (make sure to be in the theme directory):

npm install

To run the theme in dev mode:

npm run dev

which is just:

webpack --watch --config webpack.dev.config

To build theme

npm run build

Webpack

The webpack server builds the custom js, importing bootstrap into bundle js. This is loaded in the footer of the layouts. The css is compiled from sass so that custom scss can be included with the bootstrap import. Also rebuilding bootstrap allows us to edit settings like base font before building in bootstrap.

The sass is compiled and then extracted using a plugin so that we can include the css in the header separately from the js (it is included in ths js if we were using the 'style-loader'). When I tried the style-loader the page was flashing with no formatting before the loader kicked in.

The issue with with this approach is the client doesn't know when the bundle.js has updated.

However chrome does not hot reload css so for dev mode it is better to use the style loader in dev!

Favicon and Icons

Checking emojis compatibility - https://www.emojibase.com/emojilist/money

npm

Currently using version 14

Info on Hugo

{{% shortcode %}} vs {{< shortcode >}} - both these call the shortcode but the first processes the inner with page’s rendering processor

simonwardjones.co.uk's People

Contributors

dependabot[bot] avatar simonwardjones avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.