Hola Mundo

· Hugo

Taking Hugo for a Test Drive

This is my second post. Let’s see, what might a code snippet look like?

def greet(name):
    return f"Hello, {name}!"

print(greet("World"))

Syntax highlighting out of the box is pretty slick and the theme can be changed via hugo.json (or config.toml). Hm, why are these backticks included with inline code? I wonder if that’s intentional or not. Note: It looks like that was theme specific and I was able to override in custom.css with:

.prose code:not(.not-prose code)::before,
.prose code:not(.not-prose code)::after {
  content: '';
}

How About a Subheading?

Looking good, we love Markdown, don’t we folks? Now, let’s try a blockquote as well:

Your Honor, years ago I recognized my kinship with all living beings, and I made up my mind that I was not one bit better than the meanest on earth. I said then, and I say now, that while there is a lower class, I am in it, and while there is a criminal element I am of it, and while there is a soul in prison, I am not free.

— Eugene V. Debs

Wow, that’s great, someone should write that down. 1


Now let’s see what else…

Let’s get a little meta with it. Here’s a snippet of JSON from my config file so far:

{
  "baseURL": "https://read.ryancowl.es/",
  "languageCode": "en-us",
  "title": "~/.bnux",
  "theme": "paper",
  "params": {
    "contact": {
      "email": "[redacted]"
    },
    "monoDarkIcon": true,
    "rss": true,
    "name": "Ryan C.",
    "bio": "Hi, I'm Ryan! I get computers 'putin."
  },
  "markup": {
    "highlight": {
      "style": "dracula"
    }
  }
}

📝 Note: I ended up using TOML instead. Read more in Hugo Init.


And we can try an image

Your Honor, I have stated in this court that I am opposed to the social system in which we live; that I believe in a fundamental change—but if possible by peaceable and orderly means…


Anything else?

No, that’ll do for now!

Footnotes

  1. Someone did write this down.