Skip to content

poppy-project/poppystation.org

Repository files navigation

Poppy Station Website

Sources of the poppy-station website.

Dependencies

Content is built with Hugo v42.2. Refer to the documentation section to install it locally.

Layout is done using Bootstrap v4.1.

Dev dependencies

Development dependencies require nodejs and npm. To install dev dependencies, run npm install.

Styles are written in sass. They are then compiled, prefixed, and minified.

To generated the production file after you modified the src/index.scss file, just npm run styles.

Create new content

If you installed Hugo locally, you can use the cli tool to generate content:

hugo new articles/the-new-article.md
hugo new page/the-new-article.md

If not, copy the archetypes/default.md file to the desired location and rename it. The content organization from Hugo documentation might help.

Content should be written in markdown format, but writing HTML is also allowed by Hugo.

Shortcodes

Some shortcodes are provided by Hugo, and few were added for formatting purpose.

Figure

fig shortcode requires src and title parameters.

Example:

{{< fig src="https://team.inria.fr/potioc/files/2017/08/teegi.jpg" title="Teegi Robot" >}}

Blockquote

blockquote shortcode accepts source parameter.

Basic form:

{{< blockquote >}}
Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.
{{</ blockquote >}}

With source footer:

{{< blockquote source="Extract of wikipedia.fr" >}}
Exercitation aliqua enim enim adipisicing. Nulla eu do cillum laborum velit culpa nisi consequat excepteur. Aliqua adipisicing esse adipisicing adipisicing cillum deserunt qui consequat nulla deserunt do do occaecat aute. Proident consectetur officia dolore in et sint.
{{</ blockquote >}}

Embed YouTube video

embed-yt requires src and ratio parameter

Example:

{{< embed-yt src="aZxuy9rWrmA" ratio="16:9" >}}

Publish

Site will be built and published for every push to this repository.

About

Website of Poppy Station organization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published