All Projects → slashformotion → hugo-tufte

slashformotion / hugo-tufte

Licence: MIT License
Content centric Hugo blogging theme styled with Tufte-Css

Programming Languages

SCSS
7915 projects
HTML
75241 projects
Makefile
30231 projects
CSS
56736 projects

Projects that are alternatives of or similar to hugo-tufte

navigator-hugo
Navigator Business theme powered by Hugo. It also could be used for a personal portfolio.
Stars: ✭ 133 (+129.31%)
Mutual labels:  hugo-theme, hugo, hugo-site
hugo-initio
Hugo Theme port of Initio bootstrap template by GetTemplate
Stars: ✭ 58 (+0%)
Mutual labels:  hugo-theme, hugo, hugo-site
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+11781.03%)
Mutual labels:  hugo-theme, hugo, hugo-site
hugo-identity-theme
Little profile/card-style template for Hugo. Based on Identity by HTML5 UP.
Stars: ✭ 87 (+50%)
Mutual labels:  hugo-theme, hugo, hugo-site
hugo-sugoi
Hugo-Sugoi - An Ultra Minimal Hugo Theme based on Skeleton
Stars: ✭ 29 (-50%)
Mutual labels:  hugo-theme, hugo, hugo-site
axiom
Axiom - A Hugo Theme. GitTip: https://gitcoin.co/tip?username=jhauraw
Stars: ✭ 67 (+15.52%)
Mutual labels:  hugo-theme, hugo, hugo-site
twenty-twenty-hugo
Twenty Twenty Hugo is forked from WordPress Twenty Twenty theme. It's fully functional like the WordPress theme.
Stars: ✭ 48 (-17.24%)
Mutual labels:  hugo-theme, hugo, hugo-site
Hugo Orbit Theme
Great looking resume/CV theme designed for developers.
Stars: ✭ 217 (+274.14%)
Mutual labels:  hugo-theme, hugo, hugo-site
influencer-hugo
Influencer is a Hugo theme for book authors and writers. It has also Snipcart supports for order books and payments.
Stars: ✭ 66 (+13.79%)
Mutual labels:  hugo-theme, hugo, hugo-site
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (-44.83%)
Mutual labels:  hugo-theme, hugo, hugo-site
academia-hugo
Academia is a Hugo resume theme. You can showcase your academic resume, publications and talks using this theme.
Stars: ✭ 165 (+184.48%)
Mutual labels:  hugo-theme, hugo, hugo-site
timer-hugo
Timer is a personal portfolio theme powered by Hugo. It also can be use as a landing page theme.
Stars: ✭ 123 (+112.07%)
Mutual labels:  hugo-theme, hugo, hugo-site
restaurant-hugo
The restaurant is a creative and responsive restaurant website theme in Hugo environment. It is very well decorated theme which will make your website building easier.
Stars: ✭ 50 (-13.79%)
Mutual labels:  hugo-theme, hugo, hugo-site
hugo-documentation-theme
📖 Project Docs / Knowledge Base template for Hugo Website Builder. 创建项目文档
Stars: ✭ 101 (+74.14%)
Mutual labels:  hugo-theme, hugo, hugo-site
Hugo Eureka
Eureka is a feature-rich and highly customizable Hugo theme.
Stars: ✭ 239 (+312.07%)
Mutual labels:  hugo-theme, hugo, hugo-site
hugo-theme-fluency
A fluent hugo theme.
Stars: ✭ 48 (-17.24%)
Mutual labels:  hugo-theme, hugo, hugo-site
Hugo Theme Pure
A pure theme for Hugo
Stars: ✭ 198 (+241.38%)
Mutual labels:  hugo-theme, hugo, hugo-site
Hugo Ink
Crisp, minimal personal website and blog theme for Hugo
Stars: ✭ 209 (+260.34%)
Mutual labels:  hugo-theme, hugo, hugo-site
liva-hugo
Liva is a personal blog template powered by Hugo.
Stars: ✭ 192 (+231.03%)
Mutual labels:  hugo-theme, hugo, hugo-site
tomanistor.com
Personal portfolio website and blog created with Hugo
Stars: ✭ 14 (-75.86%)
Mutual labels:  hugo-theme, hugo, hugo-site

Tufte Hugo Theme

Contributor Covenant build github pages

This theme isn't actively maintained, if you want a new feature please file a pull request.

Hugo-Tufte is a minimalist blog-like theme for the static site generator Hugo that attempts to be a faithful implementation of the Tufte-css project. It supports mathematical typesetting via katex or MathJax. By utilizing copious partial templates the theme is largely customizable.

This is a fork of the original hugo-tufte.

Quickstart

Prerequisite: Hugo Extended

You'll need to install Hugo Extended for this theme to test it locally, since this theme uses SCSS.

  • On Windows:
    • Using Chocolatey:
      choco install hugo-extended # remember, you might need admin privs

For a new site

# this code is shell-agnostic, and should work in cmd, powershell, bash, zsh....
hugo new site <your-site-name> # create your new site with hugo in your pwd
cd <your-site-name>\themes\    # cd into the themes directory
git clone <this-git-repo>      # HTTPS link @ the top of the page if you've never done this before

Add theme = 'hugo-tufte' to your config.toml to let your site know to actually use this theme, specifically.

Then run hugo server -D and open up localhost:1313/ or wherever it says in Firefox.

Features

Math

Katex or MathJax renders LaTeX written inside of markdown files. LaTeX can be written more or less as normal. Some examples:

  • This $\frac{1}{2}$ will be rendered inline.
  • A simple displayed equation: $$f(x, y) := e^{x^2 - y^2}.$$

There currently seems to be some weirdness with other environments, such as the aligned environment (align* is not supported by katex). These environments will render provided they are wrapped in <p> tags and blank lines. The snippet below should render correctly.

Let $G$ be a finite group with exponent $2$.  Then every element is
an involution, hence for any $x$, $y$ in $G$ we have:

<p>
\begin{aligned}
  e &= (xy)^2  \\
  &=xyxy \implies \\
  y^{-1} &= xyx \implies \\
  y^{-1}x^{-1} &= xy,
\end{aligned}
</p>

establishing that $G$ is abelian.

Site Parameters

The site specific parameters that this theme recognizes are:

  • subtitle string: This is displayed under the main title.
  • showPoweredBy boolean: if true, display a shoutout to Hugo and this theme.
  • copyrightHolder string: Inserts the value in the default copyright notice.
  • copyright string: Custom copyright notice.
  • math boolean: Site wide kill switch for Latex support
  • katex boolean: if "katex" is set to true katex will be used to render LaTex, if not MathJax will be used instead. (Set to true by default)
  • codeBlocksDark boolean: if true, code blocks will use a dark theme.

Socials

You can add links to your social media profile by using thoses parameters:

  • github: string
  • gitlab: string
  • twitter: string
  • patreon: string
  • youtube: string
  • medium: string
  • reddit: string
  • stackoverflow: string
  • instagram: string
  • mastodon: string
  • orcid: string
  • google_scholar: string

Please see exampleSite/config.toml to see the full implementation with exemples.

Page Parameters

  • hideDate boolean: if true, do not display a page date. When meta is set to true, hideDate takes greater precedence.
  • hideReadTime boolean: if true, do not display the page's reading time estimate. When meta is set to true, hideReadTime takes greater precedence.
  • math boolean: if true, try to render the page's LaTeX code using MatheJax.
  • meta boolean: if true, display page metadata such as author, date, categories provided these page parameters exist and are not overridden. Content in the /post directory, (i.e., pages of type "post") ignore this parameter.
  • toc boolean: if true, display the table of contents for the page.

Shortcodes

This theme provides the following shortcodes in an attempt to completely support all the features present in the Tufte-css project.

  • blockquote

    • Description: Wrap text in a blockquote and insert optional cite or footer metadata.
    • Usage: Accepts the named parameters cite and footer.
    • Example:
    {{< blockquote cite="www.shawnohare.com" footer="Shawn" >}}
      There is nothing more beautiful than an elegant mathematical proof.
    {{< /blockquote >}}
  • div

    • Description: This shortcode is provided as a work-around for wrapping complex blocks of markdown in div tags. The wrapped text can include other shortcodes
    • Usage: Identical to the section shortcode. Accepts the style parameters class and id. If only the positional argument "end" is passed, a closing tag will be inserted.
    • Example: {{< div class="my-class" >}} inserts a <div class="my-class"> tag, while {{<div "end" >}} inserts the closing </div> tag.
  • epigraph

    • Description: Create an epigraph with the wrapped text.
    • Usage: To include a footer with source attribution, pass in the optional named parameters pre, cite, post, link. These parameters make no styling assumptions, so spacing is important. A more compactly styled epigraph will be used if the type parameter is set to compact.
    • Example:
    {{< epigraph pre="Author Writer, " cite="Math is Fun" link='https://www.google.com' >}}
    This is an example of an epigraph with some math
    $ \mathbb N \subseteq \mathbb R $
    to start the beginning of a section.
    {{< /epigraph >}}
  • marginnote

    • Description: Wrap text to produce a numberless margin note.
    • Usage: {{< marginnote >}}...{{< /marginnote >}}
    • Example:
    {{< marginnote >}}Some marginnote{{< /marginnote>}}
  • section

    • Description: This shortcode is provided as a work-around for wrapping complex blocks of markdown in section tags. The wrapped text can include other shortcodes
    • Usage: Accepts the style parameters class and id. If only the positional argument "end" is passed, a closing tag will be inserted.
    • Example: {{< section class="my-class" >}} inserts a <section class="my-class"> tag, while {{<section "end" >}} inserts the closing </section> tag.
  • sidenote

    • Description: Wrap text to produce an automatically numbered sidenote.
    • Usage: identical to marginnote {{< sidenote >}}...{{< /sidenote >}}
    • Example:
    {{< sidenote >}}Some sidenote{{< /sidenote >}}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].