diff --git a/assets/css/main.scss b/assets/css/main.scss index 2e17523..d9aa58e 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -62,6 +62,7 @@ hr { pre { background: black; padding: 1em; + overflow-x: auto; /* Fix pre content overflowing parent without scroll bar */ } table { width: 100%; } @@ -74,7 +75,7 @@ table, th, td { code { color: white; - background: black; +/*background: black; <-- Remove awful black background for code text*/ font-size: 80%; padding: 0.1em 0.2em; font-size: 90%; diff --git a/layouts/partials/menu_item.html b/layouts/partials/menu_item.html index 5fa3caa..ec0a1af 100644 --- a/layouts/partials/menu_item.html +++ b/layouts/partials/menu_item.html @@ -13,14 +13,7 @@ {{- end -}} {{- if $item.post_list -}} - {{ partial "post_list.html" (dict - "context" . - "section" $item.post_list.section - "limit" $item.post_list.limit - "show_more" $item.post_list.show_more - "show_more_text" $item.post_list.show_more_text - "show_more_url" $item.post_list.show_more_url - ) -}} + {{ partial "post_list.html" (dict "context" . "section" $item.post_list.section "limit" $item.post_list.limit "show_more" $item.post_list.show_more "show_more_text" $item.post_list.show_more_text "show_more_url" $item.post_list.show_more_url) -}} {{- end -}} {{- end -}}