From bde829194418d599c41187d6b54cbe7bb1d3ce80 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Mon, 21 Sep 2020 13:52:32 +0200 Subject: [PATCH] feat: add "icon"-shortcode --- README.md | 13 +++++++++++++ exampleSite/content/homepage/contact.md | 4 ++-- layouts/shortcodes/icon.html | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 layouts/shortcodes/icon.html diff --git a/README.md b/README.md index 6d72c6b..ed1de64 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,16 @@ To create **a page separate from the homepage**, run hugo new my-new-page.md ``` +### Using icons + +This theme includes the full set of [Font Awesome v4 Icons][font-awesome-icons]. Use the `{{}}`-[shortcode][hugo-shortcodes] with the respective "fa fa-ICONNAME"-`class` to use an icon directly in your `.markdown` files à la + +```markdown +Look at this nice »envelope«-icon: {{}}. I took this from https://fontawesome.com/v4.7.0/icon/envelope :-) +``` + +For the full list of icons, see [Font Awesome v4 Icons][font-awesome-icons]. + ### Adding your branding / colors / css Add a `custom_head.html`-file to your `layouts/partials`-directory. In there you may add a `