Giter Club home page Giter Club logo

www's Introduction

Archmage WWW

Hugo generated website. Uses the extended version of hugo to compile SCSS.

Install

Ensure you have hugo up and running as per their installation guide.

Run hugo server -D.

In the browser go to http://localhost:1313.

Adding new posts

Follow the folder structure already in place in content/posts/. Add all images, videos, etc. to that folder.

When using images use the shortcode {{< image-resize YOUR-IMAGE.EXT >}} so that hugo can automatically resize it.

If you want to create a row with three images use {{< triple-image-thumbnail "YOUR-IMAGE1.EXT" "YOUR-IMAGE2.EXT" "YOUR-IMAGE3.EXT" >}}. This uses smart fill where it will focus on the main part of the image. If you don't like the outcome then you might want to use the alternative shortcode:

{{< triple-image-thumbnail-scaled "YOUR-IMAGE1.EXT" "YOUR-IMAGE2.EXT" "YOUR-IMAGE3.EXT" >}}. This shows the full image but scales it down to fit three in a row.

The site automatically regenerates itself using github actions when a push or merge happens on main.

Adding translations

Check the config.toml file that the language has been added. It not then follow the format and add a new language section.

Create translations by copying the post then renaming it to include the language code. For example, in a folder with index.md you would create a translation by creating a new file called index.ru.md where ru is the language code for the translation.

Open Graph Tags

When making a new post, it's worth bearing in mind how sites like Reddit and Discord are going to embed a link. By default it will use the first image in the page, or the image that is called featured.<ext>. It will use the title and description info in the metadata at the top of the post, so fill these in if you don't want the first sentence being used as the description.

www's People

Contributors

hmmdeif 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.