Merged modal changes and highlight theme changes.

This commit is contained in:
Vicky 2018-02-03 10:58:05 -05:00
commit 9524059b19
5 changed files with 40 additions and 54 deletions

View file

@ -3,43 +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
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/

View file

@ -33,13 +33,6 @@
</script>
{{ end }}
<!-- CSS -->
{{ if .Site.Params.highlightjs }}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{ end }}
<!-- jQuery -->
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
@ -84,4 +77,4 @@ crossorigin="anonymous"></script>
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
</head>
</head>

View file

@ -9,24 +9,16 @@
<div class="column is-half"> {{ else if eq .Site.Params.projectColumns "3" }}
<div class="column is-one-third"> {{ end }}
<!-- Hey Vicky, show half column if number is even. -->
<div class="card">
<div {{ if not .Params.external_link }} id="project{{.Title | urlize}}" {{ end }} class="card">
<div class="card-image">
<figure class="image is-3by2">
<a {{ if .Params.external_link }}
href="{{ .Params.external_link }}"
{{ else }}
id="project{{.Title | urlize}}"
{{ end }}>
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
<img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg }}{{ end }}">
</a>
</figure>
</div>
<div class="card-content has-text-centered top-pad">
<a {{ if .Params.external_link }}
href="{{ .Params.external_link }}"
{{ else }}
id="project{{.Title | urlize}}"
{{ end }}>
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
{{ .Title }}
</a>
</div>
@ -39,7 +31,7 @@
<!-- End Projects container -->
<!-- Projects modals -->
{{ range sort .Pages }} {{ if eq .Section "projects" }}
{{ range sort .Pages }} {{ if eq .Section "projects" }} {{ if not .Params.external_link }}
<div class="modal" id="modal{{.Title | urlize}}">
<div class="modal-background"></div>
<div class="modal-card">
@ -67,7 +59,7 @@
$('#modal{{.Title | urlize}}').removeClass('is-active');
});
</script>
{{ end }} {{ end }}
{{ end }} {{ end }} {{ end }}
<div class="container has-text-centered top-pad">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long