From b56c9db6dc9502fad515bca5163c38177b2af684 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Mon, 19 Jan 2015 01:49:12 -0700 Subject: [PATCH] [Docs] Add FreeBSD logo beside the FreeBSD name Extracted from https://www.freebsd.org/logo/logo-simple.svg for temporary use until a future Font Awesome release adds the `fa-freebsd` glyph (github/FortAwesome/Font-Awesome#1116) :-) Make .fa `display: inline` to prevent unwanted line-wrapping Also make the menu item "Issue & Help" line up with the others. --- docs/content/overview/installing.md | 7 +- docs/layouts/partials/menu.html | 2 +- docs/static/css/style.css | 11 +++ docs/static/img/freebsd-19px.svg | 127 ++++++++++++++++++++++++++++ 4 files changed, 144 insertions(+), 3 deletions(-) create mode 100644 docs/static/img/freebsd-19px.svg diff --git a/docs/content/overview/installing.md b/docs/content/overview/installing.md index 623499cff..671ca4208 100644 --- a/docs/content/overview/installing.md +++ b/docs/content/overview/installing.md @@ -14,8 +14,11 @@ weight: 20 Hugo is written in Go with support for multiple platforms. The latest release can be found at [Hugo Releases](https://github.com/spf13/hugo/releases). -We currently build for Windows, Linux, FreeBSD and OS X for x64 -and i386 architectures. +We currently build for  Windows, + Linux, + FreeBSD +and  OS X +for x64 and i386 architectures. ## Installing Hugo (binary) diff --git a/docs/layouts/partials/menu.html b/docs/layouts/partials/menu.html index 5e2c243af..66b3a0a13 100644 --- a/docs/layouts/partials/menu.html +++ b/docs/layouts/partials/menu.html @@ -29,7 +29,7 @@ {{end}} {{end}} -
  • Issues & Help
  • +
  • Issues & Help
  • {{ if .IsPage }} {{ $File := .File }} {{with $File.Path }}
  • Refine this Page
  • {{end}} {{ end }} diff --git a/docs/static/css/style.css b/docs/static/css/style.css index 1c4e4ade5..d6beaf861 100755 --- a/docs/static/css/style.css +++ b/docs/static/css/style.css @@ -520,3 +520,14 @@ dd { padding: 0.2em 0 0.2em 10em; border-top: 1px solid #ccc; } + +/* Prevent linebreak right after an icon */ +.fa { + display: inline; +} + +/* Logo for FreeBSD until Font Awesome adds it, see https://github.com/FortAwesome/Font-Awesome/issues/1116 */ +i.freebsd-19px:before { + content: url(/img/freebsd-19px.svg); + vertical-align: -7%; +} diff --git a/docs/static/img/freebsd-19px.svg b/docs/static/img/freebsd-19px.svg new file mode 100644 index 000000000..4215b83a9 --- /dev/null +++ b/docs/static/img/freebsd-19px.svg @@ -0,0 +1,127 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + +