From e0620b880271986d132756401db67890d7f91aa8 Mon Sep 17 00:00:00 2001 From: Vicky Date: Sat, 3 Feb 2018 10:57:51 -0500 Subject: [PATCH] Use built-in Chroma to allow choosing highlight theme. --- exampleSite/config.toml | 66 ++++++++++++++++++------------------ layouts/partials/header.html | 13 ------- static/css/dark-style.css | 2 +- static/css/light-style.css | 2 +- 4 files changed, 35 insertions(+), 48 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2a8d61d..7348219 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,44 +3,44 @@ languageCode = "en-us" title = "Introduction" theme = "introduction" enforce_ssl = false -builddrafts = false # Include pages with draft status of true -canonifyurls = true # Turns relative urls into absolute urls -# disqusshortname = "xxx" # Enable Disqus for comments +builddrafts = false # Include pages with draft status of true +canonifyurls = true # Turns relative urls into absolute urls +# disqusshortname = "xxx" # Enable Disqus for comments # googleAnalytics = "xxx" [params] - blogHead = "Blog" # Full name shows on blog post pages - firstName = "Introduction" # First name shows in introduction on main page - tagLine = "I'm a theme for Hugo." # Appears after the introduction - introHeight = "large" # Input either 'medium' or 'large' or 'fullheight' - themeStyle = "light" # Choose 'light' or 'dark' - avatar = "img/profile.jpg" # Path to image in static folder eg. img/avatar.png, or comment out to remove - email = "youremail@email.com" # Shows in contact section, or leave blank to omit - localTime = true # Show your current local time in contact section - timeZone = "America/Los_Angeles" # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - dateForm = "Jan 2, 2006" - dateFormFull = "Mon Jan 2 2006 15:04:05 EST" - cacheBuster = false # Add the current unix timestamp in query string for cache busting css assets (relevant in development mode) - description = "Website Description" # Max 160 characters show in search results - faviconFile = "img/fav.ico" - highlightjs = true # Syntax highlighting - hljsTheme = true # Select highlight.js theme: https://highlightjs.org/static/demo/ - footerText = "" # Text to show in footer (overrides default text) - fadeIn = true # Turn on/off the fade-in effect + bloghead = "Blog" # Full name shows on blog post pages + firstname = "Introduction" # First name shows in introduction on main page + tagline = "I'm a theme for Hugo." # Appears after the introduction + introheight = "fullheight" # Input either 'medium' or 'large' or 'fullheight' + themestyle = "dark" # Choose 'light' or 'dark' + avatar = "img/profile.jpg" # Path to image in static folder eg. img/avatar.png, or comment out to remove + email = "youremail@email.com" # Shows in contact section, or leave blank to omit + localtime = true # Show your current local time in contact section + timezone = "America/Los_Angeles" # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + dateform = "Jan 2, 2006" + dateformfull = "Mon Jan 2 2006 15:04:05 EST" + cachebuster = false # Add the current unix timestamp in query string for cache busting css assets (relevant in development mode) + description = "Website description." # Max 160 characters show in search results + faviconfile = "img/fav.ico" + pygmentsStyle = "monokai" # Choose theme: https://help.farbox.com/pygments.html + pygmentsCodeFences = true + footertext = "" # Text to show in footer (overrides default text) + fadein = true # Turn on/off the fade-in effect - showBlog = true # Show Blog section on home page - showProjects = true # Show Projects section on home page - projectColumns = "3" # Choose "2" or "3" columns for projects section - placeHolderimg = "/img/workday.jpg" # For Projects without image - showAllPosts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page - showLatest = true # Show latest blog post summary - shareButtons = true # On post pages, show share this social buttons + showblog = true # Show Blog section on home page + showprojects = true # Show Projects section on home page + projectcolumns = "3" # Choose "2" or "3" columns for projects section + placeholderimg = "/img/workday.jpg" # For Projects without image + showallposts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page + showlatest = true # Show latest blog post summary + sharebuttons = true # On post pages, show share this social buttons # Share buttons - shareTwitter = true - shareFacebook = true - sharePinterest = false - shareGooglePlus = true + sharetwitter = true + sharefacebook = true + sharepinterest = false + sharegoogleplus = true # Social icons appear in introduction and contact section. Add as many more as you like. # Find icon names here: http://fontawesome.io/cheatsheet/ @@ -55,4 +55,4 @@ canonifyurls = true # Turns relative urls into a [[params.social]] url = "https://linkedin.com/" - icon = "linkedin" + icon = "linkedin" \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c775331..951bfc7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -33,19 +33,6 @@ {{ end }} - -{{ if .Site.Params.highlightjs }} -{{ if .Site.Params.hljsTheme }} - -{{ else if eq .Site.Params.themeStyle "light" }} - -{{ else }} - -{{ end }} - - -{{ end }} -