Testing some stuff out.

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/11/24/testing-some-stuff.html"

Params

map[date:2023-11-24 23:42:27 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/11/24/testing-some-stuff.html iscjklanguage:%!s(bool=false) lastmod:2023-11-24 23:42:27 -0800 -0800 layout:post microblog:%!s(bool=true) post_id:%!s(int=3713494) publishdate:2023-11-24 23:42:27 -0800 -0800 type:post url:/2023/11/24/testing-some-stuff.html]

All variables scoped to the current context

&hugolib.pageState{id:51, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d92840), (*hugolib.pageOutput)(0xc000d92c60), (*hugolib.pageOutput)(0xc000d93080), (*hugolib.pageOutput)(0xc000d934a0), (*hugolib.pageOutput)(0xc000d938c0), (*hugolib.pageOutput)(0xc000d93ce0), (*hugolib.pageOutput)(0xc000d96160), (*hugolib.pageOutput)(0xc000d96580)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d3850), pageOutput:(*hugolib.pageOutput)(0xc000d92840), pageCommon:(*hugolib.pageCommon)(0xc0007a9800)}

What is my rating system?

I have a couple reviews in Letterboxd. While I was thinking about how I would rank them, I felt it writing it down would help me.

β˜…
I finished this but I regret it.
β˜…β˜…
I’m glad someone was given a chance to make this. Hopefully the next thing is better. Still, I would be hesitant to try anything that boasted about being “The people who brought you X”.
β˜…β˜…β˜…
It’s alright. I liked it enough. I would watch it again if it was on and enough peer pressure was applied.
β˜…β˜…β˜…β˜…
I definitely would watch again. I would recommend it to others. In fact, when I’m feeling overwhelmed with all the possibilities, this might be something I put on instead of something new.
β˜…β˜…β˜…β˜…β˜…
Loved it!

Strangely enough, I don’t write a lot about the things I love on the internet. I feel it might be because it _is_the internet. Years of seeing things being ridiculed makes me hesitant to express a strong feeling about something.

I feel that I’m ready to do that more and more now.

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/10/30/what-is-my.html"

Params

map[categories:[Category1] date:2023-10-30 10:49:29 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/10/30/what-is-my.html iscjklanguage:%!s(bool=false) lastmod:2023-10-30 10:49:29 -0800 -0800 layout:post microblog:%!s(bool=false) post_id:%!s(int=3650188) publishdate:2023-10-30 10:49:29 -0800 -0800 title:What is my rating system? type:post url:/2023/10/30/what-is-my.html]

All variables scoped to the current context

&hugolib.pageState{id:50, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d90580), (*hugolib.pageOutput)(0xc000d909a0), (*hugolib.pageOutput)(0xc000d90dc0), (*hugolib.pageOutput)(0xc000d911e0), (*hugolib.pageOutput)(0xc000d91600), (*hugolib.pageOutput)(0xc000d91a20), (*hugolib.pageOutput)(0xc000d91e40), (*hugolib.pageOutput)(0xc000d922c0)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d3508), pageOutput:(*hugolib.pageOutput)(0xc000d90580), pageCommon:(*hugolib.pageCommon)(0xc0007a9200)}

Labarum: A Mermaid's Tale (draft)

Mermaid daddy

One of the changes that version .117 of Hugo that has been allowed onto Micro.blog is the ability to use diagrams in your markdown. The documentation on diagrams highlights two different kinds of diagrams that you can include; GoAT and Mermaid.

When you make a diagram using GoAT, Hugo translates this into a SVG on the server side and then delivers it with the HTML for that particular post. You can find some really complicated examples of them on the GitHub page for GoAT and I’ve included one below to demonstrate.

P S I R T N O A P C R U E T T S S E N D A C P H R O O I C C E E S S B C P O R M O X P C L E E S X S P R E P A R A T I O N X

Mermaid is a diagramming and charting tool that uses javascript and will load different libraries as needed to create the final product. I believe that it can be used to make static deliverables that you could save, but -according to my understanding- that’s a separate module and outside what Micro.blog and most installations require.

In addition, Hugo does not include the connections to Mermaid, and it’s up to the theme developers to make sure this works.

When you get it working, you can have diagrams like the one below.

sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts 
prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

The Mystery of the Mermaid

I had to ask myself why am I putting the time into getting this feature working in my theme. At first glance, the goals of accessibility and speed do not seem to align with adding diagrams built with third party JavaScript framework. I’ve run this site for years and have used tools to create static images that I serve with alt text to illustrate my point.

Ultimately, it’s because I love DIAGRAMS!

I like being able to have a picture that goes with my posts. I don’t feel that I will be using a lot of these, but I want to help those who do.

And with all of my labarum posts, feel free to take what you want to make your themes better.

Splashing around with the Mermaid

I want to start off this section by stating that a lot of what I’m going to write about is duplication of the documentation found online. This is me documenting my process of applying it and my thought process at the time.

My first stop on implementing this is to open up a browser window to duckduckgo and then opening the first 3-5 search results of Hugo mermaid diagram from DuckDuckGo before reading the Hugo Mermaid documentation. I do this to get a feel of what developer roadblocks and experiences that I can note before reading the documentation. It’s similar to where I would read the discussion questions the teacher gives for assigned reading back in school.

The step of creating the layouts/_default/_markup/render-codeblock-mermaid.html is straight forward1.

<pre class="mermaid">
{{ .Inner | safeHTML }}
</pre>
{{ .Page.Store.Set "hasMermaid" true }}

The first line will go to the resultant HTML, and mermaid will look for items that have the mermaid class to get instructions on what kind of image needs to create.

The second line passes whatever was in the code block. This is typically the definition of the diagram but if you are more familiar or more adventurous you can pass mermaid directives or configurations as well.

The next step is to add something similar to the template.

{{ if .Page.Store.Get "hasMermaid" }}
  <script type="module">
  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs'; 
  mermaid.initialize({ startOnLoad: true });
  </script>
{{ end }}

I wasn’t sure why this needed to go on the actual page versus on the footer that would be used on every single page of the website. Most of the examples that I looked at had it on the single.html and this worked for individual pages but not for the index.html.

I placed it in article_footer.html until I get a deeper understanding of how Hugo wants to manage a flag that would toggle the loading of JavaScript.

Luckily, the browsers that I tested with only load the JavaScript once. I’m not a JavaScript expert, but I think multiple loads of the 7k line file might be frowned upon.

Colors of the Mermaid

After I got it working for the index and standalone pages, I tested the diagram with the dark mode of the theme. Unfortunately, the default text color does not work in all situations.

I checked the documentation on theming the diagrams and saw that I can change the theme by giving it as a parameter during the initialization of mermaid.

mermaid.initialize( { startOnLoad: true, theme: 'dark' });

This allows for the diagrams to look good in dark mode.

Dark diagram no background but in dark mode

This looked good in dark mode but not light mode.

Dark diagram no background lightmode

I then experimented with changing the background for div.mermaid and then having the diagrams render using the default theme for both light and dark mode.

Light diagram on light background while in dark mode

Good but not ultimately it just didn’t look good enough. I showed it to my wife and some people in a discord and they agreed as well.

I needed to find a way to make it toggle from default and dark.

Searching for the Key

Luckily, when I did my first third group of searches, I came across a Hugo forum thread on the “Correct way to embed Mermaid.JS2. And it had a link to this article to add Mermaid to Hugo with Dark Mode which is very informative.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{{- if .Page.Store.Get "hasMermaid" }}
<script type="module">
  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
  let isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
  let mermaidTheme = (isDark) ? 'dark' : 'default';
  let mermaidConfig = {
    theme: mermaidTheme,
    startOnLoad: true }
  mermaid.initialize(mermaidConfig);
</script>
{{ end }}

On line 4, we set a property based on the weather the browser is in dark mode.

Line 5 is a ternary statement that chooses between the dark or default themes.

Line 6 is the beginning of a JavaScript Object. I feel that the way it’s in the theme will make it easier to maintain and extend in the future.

It’s all about that base

Mermaid does have a base theme that allows for you to define the colors for the diagram. Yes, I could have taken the time to learn how to pull colors from the theme or use the toggle from light and dark mode to set the diagram colors. But, that could be a long process to customize something that I may not use.

If you want to take this theme and approach, please do, and please have no hesitation to send me a link of your endeavors.

Limitations

Although this implementation does consider if the user is in light or dark mode, it does not switch dynamically. If you are on a system that changes the theme depending on time, you will have to reload to get the different theme. There are themes and walk throughs that show how to do this, but I feel that this iteration and my skill level are not at the appropriate level to implement it now.

Another limitation is that the diagram definition might find it’s way into the .Summary for the individual post.

Mermaid Treasure

Thank you for getting this far into my post. Here are some resources if you want to know more about Mermaid.js.

Accessibility Options
If you took the time to make the diagram, take a little more time to allow other people to get something from it.
Tutorials
Lots of examples on how to make diagrams
Live Editor
A quick way to make and test your diagrams before putting them in your posts.

What’s next for Labarum?

I need to do an accessibility and validation audit of the theme. I’ve been making some adjustments and haven’t been testing to make sure that the site is as accessible as I had originally intended.


  1. I’ve found other templates that will have this call a short code that takes a set of parameters that control alignment and zoom of the diagram. I have no plans on duplicating that kind of functionality at this time. ↩︎

  2. There is no One way to do this. ↩︎

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/10/17/labarum-a-mermaids.html"

Params

map[categories:[Category1] date:2023-10-17 21:31:20 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/10/17/labarum-a-mermaids.html images:[https://mandarismoore.com/uploads/2023/mermaid-daddy.png https://mandarismoore.com/uploads/2023/dark-diagram-no-background.png https://mandarismoore.com/uploads/2023/dark-diagram-no-background-lightmode.png https://mandarismoore.com/uploads/2023/light-diagram-light-background.png] iscjklanguage:%!s(bool=false) lastmod:2023-10-17 21:31:20 -0800 -0800 layout:post microblog:%!s(bool=false) photos:<nil> photos_with_metadata:<nil> post_id:%!s(int=3615214) publishdate:2023-10-17 21:31:20 -0800 -0800 title:Labarum: A Mermaid's Tale (draft) type:post url:/2023/10/17/labarum-a-mermaids.html]

All variables scoped to the current context

&hugolib.pageState{id:49, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d8e2c0), (*hugolib.pageOutput)(0xc000d8e6e0), (*hugolib.pageOutput)(0xc000d8eb00), (*hugolib.pageOutput)(0xc000d8ef20), (*hugolib.pageOutput)(0xc000d8f340), (*hugolib.pageOutput)(0xc000d8f760), (*hugolib.pageOutput)(0xc000d8fb80), (*hugolib.pageOutput)(0xc000d90000)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d3200), pageOutput:(*hugolib.pageOutput)(0xc000d8e2c0), pageCommon:(*hugolib.pageCommon)(0xc0007a8600)}

Labarum: Code Blocks & Turning Tables (Draft)

Turn Tables | by Peter Alfred Hess

"Turn Tables" by Peter Alfred Hess is licensed under CC BY 2.0.

I’m rolling out another update to my theme for Micro.blog. It took a lot of time and effort on my part. It definitely reminds me of the story about how people paint both the front and back of a fence. I don’t think most will know or use some of the things that I put into this. If you do use or learn anything from this, I would really appreciate you sending me a message.

I’ve been doing small tweaks to the theme for the last couple of weeks as I learn more and more about CSS. I had even posted about how I had started working through the material found in Kevin Powell’s Conquering Responsive Layouts course and got a couple of responses that pointed me to further research.

There are plenty of miscelaneous changes that I put in related to accessibility and adding some

Back on the (code) block

I’ve been working on code blocks for a while. I don’t think there are many blogs on micro.blog that feature code as a regular part of what they publish. It’s very important to me that as someone who is writing about the code of the theme that it can be read.

It haunts me.

I was ok with the fact that the code blocks worked well with Hugo version .91 but, with the availability of .177, I couldn’t ignore the problems that I saw.

Here is a picture of what I’m referring to from my post celebrating the announcement.

Code blocks in newer version of hugo

The underlining issue is that the default properties for the theme and Hugo is to place the styling inline of the HTML. AND, that I’ve opted to use display: inline-block for the <div> that is the container for my blog posts.

To better explain the issue, I’ll use the following snippet found in the Hugo documentation about code fences and put it in one of my posts, I’d get different results based on the version of Hugo that I’m running.


```go {linenos=table,hl_lines=[1,11,"15-16"],linenostart=199, anchorlinenos=true, lineanchors=small }
// GetTitleFunc returns a func that can be used to transform a string to
// title case.
//
// The supported styles are
//
// - "Go" (strings.Title)
// - "AP" (see https://www.apstylebook.com/)
// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
//
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
  switch strings.ToLower(style) {
  case "go":
    return strings.Title
  case "chicago":
    return transform.NewTitleConverter(transform.ChicagoStyle)
  default:
    return transform.NewTitleConverter(transform.APStyle)
  }
}
```

Hugo will render this as a series of nested spans in a table in a couple of divs. For example, the span that contains the line number would be div.highlight > div > table > tr > td:first-of-type > pre > code > span.

Hugo highlight div

Each level of this structure may have its own inline styling.

Going back to the code snippet, with version .91, I would get the following output for the highlighted line 213 (the one that with β€˜case β€œgo”’). I changed the spacing for legibility.

<span style="display:block;width:100%;background-color:#3c3d38">
  <span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">
    213
  </span>
</span>

With version .117, you would get the following output for the same line.

<span style="background-color:#3c3d38">
  <span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f" id="big-213">
    <a style="outline:none;text-decoration:none;color:inherit" href="#big-213">
      213
    </a>
  </span>
</span>

Note that this version allows use to set anchors for the individual lines as well as a prefix.

At this point, I realized that I needed to have a better way of controlling the behavior of the different elements. Luckily, the documentation for Hugo Highlighting configuration has a noClasses flag that we can set in the config.json of the theme.

{
    "params": {
        "showTableOfContents": false,
        "showAuthorInfo": false,
        "showDebugInfo": false
    },
    "markup": {
    	"highlight": {
    		"noClasses": false
    	}
    }
}

With the noClasses set to false1, the line that we’ve been looking at gets rendered to something like below.

Hugo highlighting code without any color or highlights.

The example is legible without the color and inline formatting.

To put the color back into the example, we refer to the documentation on how to generate syntax highlighter CSS to get the colors. I used the example that they provided so that I could compare it to the defaults.

hugo gen chromastyles --style=monokai > syntax.css

Then we add the newly created css file to our site-head.html to represent that syntax color is important but that the style.css is the final say for customization from the theme.

Unfortunately, the lines to do not … um… line up and the colors don’t match up with what we’re expecting.

Hugo highlight with color

After some experimenting with Firefox developer tools, I added the following to the style.css to get the lines to match.

.chroma {
    overflow-x: auto;
}

.chroma .lnt {
    display: flex;
}

.chroma .hl {
    display: flex;
}

The color for the highlight appears to be incorrect for all the styles that I tested, so I went back to an earlier version of Hugo to get the color and then placed it in the style.css as well.

.chroma .hl {
    background-color: #3c3d38;
    display: flex;
}

I also created a bug report about Chroma styles for line highlighting are not using the correct color.

As the last step, we remove the box-shadow from the links in the table.

.lnlinks, .lnlinks:hover {
    box-shadow: none;
}

The results of the highlight experiments

So the following is what the code looks like afterward.

199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// GetTitleFunc returns a func that can be used to transform a string to
// title case.
//
// The supported styles are
//
// - "Go" (strings.Title)
// - "AP" (see https://www.apstylebook.com/)
// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
//
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
  switch strings.ToLower(style) {
  case "go":
    return strings.Title
  case "chicago":
    return transform.NewTitleConverter(transform.ChicagoStyle)
  default:
    return transform.NewTitleConverter(transform.APStyle)
  }
}

You can also link directly to lines (for example, line 213) and it should work. It also scrolls side to side to accommodate the longer lines.

Showing the table of contents

Table of contents diagram

When I get frustrated with code blocks, I look at other aspects of the theme and what’s available in Hugo and Micro.blog. Hugo offers built in table of content short code that can be used in the themes. You can read more about it in the online documentation.

My first idea was that I wanted to have a property that users could turn on to automatically add the table of contents to a post. I came across this feature in the Cards Theme for Micro.blog and thought that it would be a nice feature for those who write a long post.

I create _partial\toc.html with the following code that I would put above the <div> that that contains the contents of an individual post.

<aside class="[ TableOfContents ] [ style-box-alt ]">
<h2 class="[ TableOfContentsHeader ] [ text-center ]">Table of Contents</h2>
{{ .Page.TableOfContents }}
</aside>

This would render as an empty box if there were no headers in a post. After a lot of experimenting, I came up with the following.

.TableOfContents {
	display: none;
	margin: 0 auto;
	width: 90%;
}

.TableOfContents:has(ul) {
	display: block;
	float:right;
	margin-left: 1em;
	margin-right: 1em;
	margin-bottom: 1em;
	padding-right: 1em;
}

Line 2 makes the default state of the table of contents hidden and then line 7 checks to see if Hugo has rendered a <ul> within whatever is in the .TableOfContents class. If it’s true, then line 8 will set the display type to a block; making it visible.

Problem Opportunity

Unfortunately, I ran into a number of issues.

  1. It does not take into account older posts that already have table of contents
    Most of my posts about labarum have headers and I do not want to go back and edit all of them. Some users might only want a table of contents that they specify themselves.
  2. It obscures posts that start off with a big “hero” image
    I have a couple of posts like this and the floating of the table of contents did not look correct. I will have to come back to this when I’m a little better with CSS.
  3. This technique does not currently work with Firefox
    The table of contents does not show up on Firefox. I tried experimenting with different logic to toggle the visibility, but ultimately, I couldn’t get it working. I don’t know how many people are using this theme or how many people come to my site using Firefox, but I really, really want people to be able to read this. NOTE: I wrote this on August 20th, and then the Firefox nightly build enabled the :has flag in build 119. Meaning that this will work soon.

I decided to remove the property and make two different shortcodes for table of contents.

The first one is activated by adding {{ toc }} to your text and will float in the center of the article.

Labarum table of contents changing from light mode to dark

The second one is activated by adding {{ floating-toc }} to your text and will float in the right of the article.

Labarum table of contents turning from light to dark mode

Please note that if you place the short codes at the beginning of the post, it will be part of the .summary.

A Standard Head

A while ago, Sven (@sod), mentioned a couple of people on Micro.blog about abstracting some of the code that is used in all Micro.blog themes. The discussion and pull request was on github and it can now be seen in the micro.blog theme-blank.

You can test it out on your local environment by cloning it and placing it with the other themes.

After you’ve cloned the theme, you edit your config.json to something similar to what is below.

"theme": ["labarum", "theme-blank"]

I then edited the partial\site-head.html to have the following:

{{ "<!-- Microblog header begin-->" | safeHTML }}
{{ partial "microblog_head.html" . }}
{{ "<!-- Microblog header end -->" | safeHTML }}

Here is a direct link to the microblog_head.html partial if you want to read over it.

What’s next?

There were a couple of things that I wanted to add to this release but realized that I was stopping progress. In my last two posts about labarum, I told myself that I wouldn’t wait for perfection to happen.

That being said, here are the things that I have on the roadmap for my next release.

Show the Profile Picture

A couple of the other themes on Micro.blog use the profile picture on the site. I do load this picture in the metadata of the theme’s head and articles but an end user doesn’t see that. Part of this is just me not wanting to show my face and not having it in my initial design for the theme.

Enable Mermaid Diagrams

Hugo natively allows for GoAT diagrams2 which are rendereded as SVGs on the site. To enable mermaid, you have to place something in the theme. I’ll be experimenting with and hopefully find a way so that it doesn’t load the associated javascript library if a user doesn’t want to use it.

Reevaluate OpenGraph and other meta tags

There was a pull request and discussion about abstracting the metadata and placing it in “theme-blank”. I currently do this myself and wrote a post about my journey.

I’ll have to read more. I like the idea of having a standard, but I vaguely remember something about why I made the decisions that I did.

CSS responsiveness

Working with my theme makes me appreciate other web developers. Unfortunately, I start comparing my work to others, and comparison is the thief of joy. I’m not happy with a part of the theme that I have. It has to do with how it looks on smaller screens.

Labarum separate articles on small phone
The borders on the side complicate the image

Nothing is “wrong” with this, but for some reason, it “does not spark joy”.

I’ll have to take a couple steps back and think about what I want from this.

Break time!

Thank you for getting to the bottom of this article. I certainly hope that you got something out of it.

Please contact me if you have any positive comments or questions!


  1. I have a hard time following “not false” instead of “true”. ↩︎

  2. The name makes it harder than it needs to be to find examples. ↩︎

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/09/22/labarum-code-blocks.html"

Params

map[categories:[Category1] date:2023-09-22 13:23:18 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/09/22/labarum-code-blocks.html images:[//live.staticflickr.com/3022/2386274743_7026354637_3k.jpg https://mandarismoore.com/uploads/2023/unsightly-code-blocks.png https://mandarismoore.com/uploads/2023/hugo-highlight-div.png https://mandarismoore.com/uploads/2023/hugo-highlight-nocolor.png https://mandarismoore.com/uploads/2023/hugo-highlight-with-color.png https://mandarismoore.com/uploads/2023/table-of-contents-diagram.png https://mandarismoore.com/uploads/2023/labarum-table-of-contents-center.gif https://mandarismoore.com/uploads/2023/labarum-table-of-contents-float-right.gif https://mandarismoore.com/uploads/2023/labarum-separate-articles-on-small-phone.png] iscjklanguage:%!s(bool=false) lastmod:2023-09-22 15:10:07 -0800 -0800 layout:post microblog:%!s(bool=false) photos:[//live.staticflickr.com/3022/2386274743_7026354637_3k.jpg] photos_with_metadata:[map[height:%!s(int=754) url://live.staticflickr.com/3022/2386274743_7026354637_3k.jpg width:%!s(int=1131)]] post_id:%!s(int=3561259) publishdate:2023-09-22 13:23:18 -0800 -0800 title:Labarum: Code Blocks & Turning Tables (Draft) type:post url:/2023/09/22/labarum-code-blocks.html]

All variables scoped to the current context

&hugolib.pageState{id:48, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d8c000), (*hugolib.pageOutput)(0xc000d8c420), (*hugolib.pageOutput)(0xc000d8c840), (*hugolib.pageOutput)(0xc000d8cc60), (*hugolib.pageOutput)(0xc000d8d080), (*hugolib.pageOutput)(0xc000d8d4a0), (*hugolib.pageOutput)(0xc000d8d8c0), (*hugolib.pageOutput)(0xc000d8dce0)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d2e10), pageOutput:(*hugolib.pageOutput)(0xc000d8c000), pageCommon:(*hugolib.pageCommon)(0xc000693800)}

Goat test

1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/08/23/goat-test.html"

Params

map[categories:[Category2] date:2023-08-23 12:10:45 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/08/23/goat-test.html iscjklanguage:%!s(bool=false) lastmod:2023-08-23 12:10:45 -0800 -0800 layout:post microblog:%!s(bool=false) post_id:%!s(int=3506900) publishdate:2023-08-23 12:10:45 -0800 -0800 title:Goat test type:post url:/2023/08/23/goat-test.html]

All variables scoped to the current context

&hugolib.pageState{id:47, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d87ce0), (*hugolib.pageOutput)(0xc000d88160), (*hugolib.pageOutput)(0xc000d88580), (*hugolib.pageOutput)(0xc000d889a0), (*hugolib.pageOutput)(0xc000d88dc0), (*hugolib.pageOutput)(0xc000d891e0), (*hugolib.pageOutput)(0xc000d89600), (*hugolib.pageOutput)(0xc000d89a20)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d2ac8), pageOutput:(*hugolib.pageOutput)(0xc000d87ce0), pageCommon:(*hugolib.pageCommon)(0xc000693200)}

Table and Gist

This is a small table.

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
Content Cell Content Cell
Content Cell Content Cell
Content Cell Content Cell

Paragraph in between.

Another paragraph in between.

199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// GetTitleFunc returns a func that can be used to transform a string to
// title case.
//
// The supported styles are
//
// - "Go" (strings.Title)
// - "AP" (see https://www.apstylebook.com/)
// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
//
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
  switch strings.ToLower(style) {
  case "go":
    return strings.Title
  case "chicago":
    return transform.NewTitleConverter(transform.ChicagoStyle)
  default:
    return transform.NewTitleConverter(transform.APStyle)
  }
}

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/08/14/table-and-gist.html"

Params

map[categories:[Category3] date:2023-08-14 20:46:51 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/08/14/table-and-gist.html iscjklanguage:%!s(bool=false) lastmod:2023-08-15 13:28:54 -0800 -0800 layout:post microblog:%!s(bool=false) post_id:%!s(int=3495887) publishdate:2023-08-14 20:46:51 -0800 -0800 title:Table and Gist type:post url:/2023/08/14/table-and-gist.html]

All variables scoped to the current context

&hugolib.pageState{id:46, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d85a20), (*hugolib.pageOutput)(0xc000d85e40), (*hugolib.pageOutput)(0xc000d862c0), (*hugolib.pageOutput)(0xc000d866e0), (*hugolib.pageOutput)(0xc000d86b00), (*hugolib.pageOutput)(0xc000d86f20), (*hugolib.pageOutput)(0xc000d87340), (*hugolib.pageOutput)(0xc000d87760)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d27b0), pageOutput:(*hugolib.pageOutput)(0xc000d85a20), pageCommon:(*hugolib.pageCommon)(0xc000692c00)}

Code block without a language tag

This is a simple example block that shows some code that is wrapped with ``` at the top and the bottom.

# [[title]]

<blockquote>
[[selection_html]]

<footer>
<cite>
    <a class="u-in-reply-to" rel="in-reply-to" href="[[url]]">
        [[title]]
    </a>
</cite>
</footer>

</blockquote>

<p class="p-summary">Begin response here</p>

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/06/27/code-block-without.html"

Params

map[categories:[Category2] date:2023-06-27 19:45:45 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/06/27/code-block-without.html iscjklanguage:%!s(bool=false) lastmod:2023-07-05 08:13:13 -0800 -0800 layout:post microblog:%!s(bool=false) post_id:%!s(int=3304606) publishdate:2023-06-27 19:45:45 -0800 -0800 title:Code block without a language tag type:post url:/2023/06/27/code-block-without.html]

All variables scoped to the current context

&hugolib.pageState{id:45, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d83760), (*hugolib.pageOutput)(0xc000d83b80), (*hugolib.pageOutput)(0xc000d84000), (*hugolib.pageOutput)(0xc000d84420), (*hugolib.pageOutput)(0xc000d84840), (*hugolib.pageOutput)(0xc000d84c60), (*hugolib.pageOutput)(0xc000d85080), (*hugolib.pageOutput)(0xc000d854a0)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d24a0), pageOutput:(*hugolib.pageOutput)(0xc000d83760), pageCommon:(*hugolib.pageCommon)(0xc000692600)}

Code block with a language tag

This is code taken from my theme and wrapped and started with ```go-html-template. This alerts the markdown processor that it needs to highlight the various keywords and variables for that language using pygments.

{{ if .RSSLink -}}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
      <link href="{{ "podcast.xml" | absURL }}" rel="alternate" type="application/rss+xml" title="Podcast" />
      <link rel="alternate" type="application/json" title="{{ .Site.Title }}" href="{{ "feed.json" | absURL }}" />
      <link rel="EditURI" type="application/rsd+xml" href="{{ "rsd.xml" | absURL }}" />
    {{ end -}}

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/06/27/code-block-with.html"

Params

map[categories:[Category2] date:2023-06-27 19:45:08 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/06/27/code-block-with.html iscjklanguage:%!s(bool=false) lastmod:2023-06-27 19:45:08 -0800 -0800 layout:post microblog:%!s(bool=false) post_id:%!s(int=3304605) publishdate:2023-06-27 19:45:08 -0800 -0800 title:Code block with a language tag type:post url:/2023/06/27/code-block-with.html]

All variables scoped to the current context

&hugolib.pageState{id:44, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d7f4a0), (*hugolib.pageOutput)(0xc000d7f8c0), (*hugolib.pageOutput)(0xc000d7fce0), (*hugolib.pageOutput)(0xc000d82160), (*hugolib.pageOutput)(0xc000d82580), (*hugolib.pageOutput)(0xc000d829a0), (*hugolib.pageOutput)(0xc000d82dc0), (*hugolib.pageOutput)(0xc000d831e0)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc0006d2190), pageOutput:(*hugolib.pageOutput)(0xc000d7f4a0), pageCommon:(*hugolib.pageCommon)(0xc000573800)}

Code Blocks

Just a bunch of examples of code mixed in with the content of a posts. These are all expected to be processed using goldmark.

Code within a paragraph

This an example of code in the middle of a paragraph. I wonder what it will look like in the final example.

Code block without a language tag

This is a simple example block that shows some code that is wrapped with ``` at the top and the bottom.

# [[title]]

<blockquote>
[[selection_html]]

<footer>
<cite>
    <a class="u-in-reply-to" rel="in-reply-to" href="[[url]]">
        [[title]]
    </a>
</cite>
</footer>

</blockquote>

<p class="p-summary">Begin response here</p>

Here is some text that follows the code example.

Code block with a language tag

This is code taken from my theme and wrapped and started with ```go-html-template. This alerts the markdown processor that it needs to highlight the various keywords and variables for that language using pygments.

{{ if .RSSLink -}}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
      <link href="{{ "podcast.xml" | absURL }}" rel="alternate" type="application/rss+xml" title="Podcast" />
      <link rel="alternate" type="application/json" title="{{ .Site.Title }}" href="{{ "feed.json" | absURL }}" />
      <link rel="EditURI" type="application/rsd+xml" href="{{ "rsd.xml" | absURL }}" />
    {{ end -}}

This is another small paragraph following the example and before the next example.

Code block with highlights

In addition, you can highlight rows of code that your article might want to point out specifically.

This exampl is taken from the documentation found here. This particular example used ```go {linenos=table,hl_lines=[8,“15-17”],linenostart=199} to start the code block.

199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// GetTitleFunc returns a func that can be used to transform a string to
// title case.
//
// The supported styles are
//
// - "Go" (strings.Title)
// - "AP" (see https://www.apstylebook.com/)
// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
//
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
  switch strings.ToLower(style) {
  case "go":
    return strings.Title
  case "chicago":
    return transform.NewTitleConverter(transform.ChicagoStyle)
  default:
    return transform.NewTitleConverter(transform.APStyle)
  }
}

This is some code following the code block.

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/06/26/code-blocks.html"

Params

map[categories:[Category1] date:2023-06-26 11:10:53 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/06/26/code-blocks.html iscjklanguage:%!s(bool=false) lastmod:2023-06-28 08:00:58 -0800 -0800 layout:post microblog:%!s(bool=false) post_id:%!s(int=3302463) publishdate:2023-06-26 11:10:53 -0800 -0800 title:Code Blocks type:post url:/2023/06/26/code-blocks.html]

All variables scoped to the current context

&hugolib.pageState{id:43, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d7b1e0), (*hugolib.pageOutput)(0xc000d7b600), (*hugolib.pageOutput)(0xc000d7ba20), (*hugolib.pageOutput)(0xc000d7be40), (*hugolib.pageOutput)(0xc000d7e2c0), (*hugolib.pageOutput)(0xc000d7e6e0), (*hugolib.pageOutput)(0xc000d7eb00), (*hugolib.pageOutput)(0xc000d7ef20)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc000355e40), pageOutput:(*hugolib.pageOutput)(0xc000d7b1e0), pageCommon:(*hugolib.pageCommon)(0xc000572c00)}

Labarum: Restarting Iterations (Draft)

During my Micro Camp presentation, I stated that the first publication is the first iteration…

Then I stopped.

Just a lot of little things got in the way, and I started to sit on changes that I have made. I’m hoping that this post will be me getting back into publishing changes and why I am making them.

Here’s a list.

Floating Images

Right before Micro Camp, I used MarsEdit to write a post and I used one of the built in alignments to float the image to the left. I was hoping that it would look the way I remember old newspaper articles being.

Image with text wrapped around the right side

Although it did have the text wrapped properly, the image “escaped” out of the article and onto the following article.

Images not showing up properly in theme.

This was at the same time that there was a discussion about floating images in the help. With this information, I created a little demo post to help me evaluate the preconfigured defaults in MarsEdit.

The way, I got to it was dragging an image onto a post to get to the Upload Utility, but you can also access it from the Window menu.

Upload Utility

From there, you can select the options in “Format” or click customize.

Options for formating media in MarsEdit.

Afterwards, you can add more styling to the markup of the image so that future post can use what you’ve been working on.

Modifying the format of posts.

This works for smaller images, but fell apart when I used a long image with small text. I went on a very long online journey look at grid and flex box until I ultimately, came to the following code that expanded the <div> that I use for the content of the post.

.post-body {
    display: inline-block;
}

Three lines and it only took me hours.

Handling Transcripts

I had some code that would check if the post has a transcript for a podcast associated with it. That’s been removed as micro.blog automatically adds this for you. Thank you, @manton.

No Longer Published

Post stating when the  article was published.
I think people can figure out when this is released

When I first started working with the theme, I thought I would show the modified date and published date so that my users could quickly tell when something had been updated.

Looking at other themes, I don’t see many that have this information and it’s assumed that any date on the post is when it was published. I’m still keeping mine on the bottom for now. Although, I sometimes thinking about how a post might be more comparable to a journal entry or letter to the world.

Center Navigation Menu

Most of the other items on the page are centered. For example, the articles and footer. I centered this and gave it some margin.

Describe me

I’ve been using .Site.Params.description incorrectly. I’ll be using .Site.Params.itunes_description for the description used in the main page meta data.

No Comment

I moved comments from the posts off of the main page and out of the article block that they would normally be in. This meant moving the following code from the partials/article-footer.html to _default/single.html.

{{ if .Site.Params.include_conversation }}
<script type="text/javascript" 
src="https://micro.blog/conversation.js?url={{ .Permalink }}">
</script>
{{ end }}

What’s next?

I’m thinking about changes in two different areas.

Styles

The next step is to reevaluate the styles that I’m using for the site. I’ve been adding things as I’ve come across different use cases and I want to make sure that the css file while stands at 496 lines currently is easy to read and understand for Future Mandaris 3 months from now. My friend, Michael, told me about Cube CSS so I’ll be looking into using that as a way to organize it.

I’m not happy with the way that comments look. I’ve decided that I’ll only change the style after I’ve implemented Cube CSS otherwise I’ll only have spaghetti code for the rest of this project.

I’d also like to change the margin between images on the site. For example, this post that I made with the sunlit app. That might be a simple fix that I’d slip into a point release.

After that, I’m planning on making the <code> and code blocks look more seamless in posts and change the font such that they stick out more when reading in a paragraph.

Features

On my site, I don’t use any of the plugins. They should work, but I’d like to make sure that the most popular (AKA the ones that people I follow have mentioned) are working properly.

I don’t see there being a problem because of the nature of the theme, but if you know of an issue, please let me know.

Categories:

Debug Information

Site Properties

&page.siteWrapper{s:(*hugolib.Site)(0xc0006adb80)}

site.Params Properties

        maps.Params{"conversation_on_mb_show_fallback_link":true, "description":"Follow <a href=\"https://micro.blog/mandaris\">@mandaris on Micro.blog</a>.", "feeds":maps.Params{"bookmarks_json":"https://micro.blog/feeds/mandaris/bookmarks/08117195b525afe4a55f.json"}, "github_username":"mandaris", "has_podcasts":false, "include_conversation":true, "instagram_username":"mandaris", "itunes_author":"Mandaris Moore", "itunes_category":"Society & Culture", "itunes_cover":"https://micro.blog/mandaris/podcast.png", "itunes_description":"A High-quality stranger. I've considered myself a digital gofer. Y'know, go for this and go for that. I'm using micro.blog now to par down my technical projects and be part of an outstanding community.", "itunes_email":"", "itunes_subcategory":"Personal Journals", "kudos_label":"", "paginate_categories":true, "paginate_home":true, "paginate_replies":true, "plugins_css":[]interface {}{}, "plugins_html":[]interface {}{"surprise-me-head.html", "reply-by-email-head.html", "conversation-on-mb-styles.html", "tinylytics.html"}, "plugins_js":[]interface {}{}, "public_stats":false, "reply_by_email_address":"info@mandarismoore.com", "reply_by_email_enable_obfuscation":true, "reply_by_email_link_text":"✍️ Reply by email", "reply_by_email_show_plain":true, "reply_by_email_show_title":true, "reply_by_email_subject_prefix":"Re: ", "reply_on_mastodon_text":"Yo Mastodon", "search_space_default_greeting":"Welcome to πŸ”­ Search Space! Here are some nifty features to play with:\n\n* πŸ’‘ Suggestions are a thing. Start typing, and you will see what I mean.\n* ❀️ Emojis are valid search terms. How often do you [πŸ˜‚](?q=πŸ˜‚), [😭](?q=😭), or read [πŸ“š](?q=πŸ“š)?\n* πŸ”— You can link to search results like [*this*](?q=this).\n* πŸͺ† Searching for [*mac*](?q=mac) will return results like *Mac*Book and *mac*hine.\n* πŸ’¬ Replies are indexed, try searching people's usernames to find conversations you had with them.\n* πŸŽ™οΈ Podcast transcripts are indexed as well!\n\nP.S. Search Space is a passion project! Built by [@sod](https://micro.blog/sod) and released to the world for free. Find it useful? πŸ’Έ [Donate $10](https://dahlstrand.net/donate/) or any amount you're comfortable with. Thanks! πŸ™", "search_space_include_replies":true, "search_space_include_transcripts":true, "show_countries":true, "show_hits":true, "show_kudos":true, "show_uptime":true, "show_webring":true, "showauthorinfo":true, "showdebuginfo":false, "site_id":"EiMCsYFyBAAZzpJHayB2", "surprise_me_include_long_posts":true, "surprise_me_include_short_posts":true, "theme_seconds":"1708638522", "themedebug":true, "themeversion":"1.3.05", "twitter_username":"mandaris", "webring_avatar":true, "webring_label":""}
        

.Site.Author

        map[string]interface {}{"activitypub":maps.Params{"url":"[ACTIVITYPUB_ACTOR]", "username":"[ACTIVITYPUB_USERNAME]"}, "avatar":"https://micro.blog/mandaris/avatar.jpg", "name":"Mandaris Moore", "username":"mandaris"}
				

Permalink

"https://mandaris-test.micro.blog/2023/06/14/labarum-restarting-iterations.html"

Params

map[categories:[Category1] date:2023-06-14 06:38:24 -0800 -0800 draft:%!s(bool=false) guid:http://mandaris-test.micro.blog/2023/06/14/labarum-restarting-iterations.html images:[https://mandarismoore.com/uploads/2023/a9c04278c9.png https://mandarismoore.com/uploads/2023/430b5d12c8.png https://mandarismoore.com/uploads/2023/e6fcad17b7.png https://mandarismoore.com/uploads/2023/6876e56466.png https://mandarismoore.com/uploads/2023/d61845241d.png https://mandarismoore.com/uploads/2023/b3d1545d8e.png] iscjklanguage:%!s(bool=false) lastmod:2023-06-14 06:42:23 -0800 -0800 layout:post microblog:%!s(bool=false) photos:<nil> photos_with_metadata:<nil> post_id:%!s(int=3199530) publishdate:2023-06-14 06:38:24 -0800 -0800 title:Labarum: Restarting Iterations (Draft) type:post url:/2023/06/14/labarum-restarting-iterations.html]

All variables scoped to the current context

&hugolib.pageState{id:42, pageOutputs:[]*hugolib.pageOutput{(*hugolib.pageOutput)(0xc000d78f20), (*hugolib.pageOutput)(0xc000d79340), (*hugolib.pageOutput)(0xc000d79760), (*hugolib.pageOutput)(0xc000d79b80), (*hugolib.pageOutput)(0xc000d7a000), (*hugolib.pageOutput)(0xc000d7a420), (*hugolib.pageOutput)(0xc000d7a840), (*hugolib.pageOutput)(0xc000d7ac60)}, pageOutputTemplateVariationsState:(*atomic.Uint32)(0xc000355af0), pageOutput:(*hugolib.pageOutput)(0xc000d78f20), pageCommon:(*hugolib.pageCommon)(0xc000572600)}