Skip to content

Commit

Permalink
Merge pull request #174 from MarekPikula/global-signle-socialshare
Browse files Browse the repository at this point in the history
Add option to globally disable single page social share
  • Loading branch information
gurusabarish authored Jun 15, 2024
2 parents a01acae + 9b5ef18 commit fe4aa07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ params:
# This requires your images to be uploaded + hosted on Cloudinary
# Uncomment and change YOUR_CLOUD_NAME to the Cloud Name in your Cloudinary console
# cloudinary_cloud_name: "YOUR_CLOUD_NAME"

# Whether to add mathjax support on all pages. Alternatively, you can opt-in per page by adding `mathjax: true` in the frontmatter.
mathjax: false

Expand Down Expand Up @@ -153,7 +153,7 @@ params:
title: "About Me"
image: "/images/me.png"
content: |-
I am a software developer with a passion for web development. I have a background in computer science and mathematics, and I have a strong interest in the intersection of technology and art. I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA.
I am a software developer with a passion for web development. I have a background in computer science and mathematics, and I have a strong interest in the intersection of technology and art. I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA.
I am currently working on a project that will be used to help people find the best way to get around the city.
skills:
Expand Down Expand Up @@ -246,7 +246,7 @@ params:
GPA: "3.8 out of 5.0"
content: |-
Extracurricular Activities
- Lorem ipsum dolor sit amet consectetur adipisicing elit.
- Lorem ipsum dolor sit amet consectetur adipisicing elit.
- Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique.
- title: "Bachelor of Science in Computer Science"
school:
Expand All @@ -260,7 +260,7 @@ params:
- Face mask detection using a single convolutional neural network.
Extracurricular Activities
- Lorem ipsum dolor sit amet consectetur adipisicing elit.
- Lorem ipsum dolor sit amet consectetur adipisicing elit.
- Tempora esse, eaque delectus nulla quo doloribus itaque expedita alias natus optio totam maxime nihil excepturi velit a animi laborum hic similique.
featuredLink:
enable: true
Expand Down Expand Up @@ -385,6 +385,7 @@ params:
content: "min read"
scrollprogress:
enable: true
socialShare: true

# For translations
terms:
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h5>{{ .Site.Params.terms.tags | default "Tags" }}</h5>
</aside>
{{end}}

{{ if .Params.socialShare | default true }}
{{ if .Params.socialShare | default .Site.Params.singlePages.socialShare | default true }}
<aside class="social">
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
<div class="social-content">
Expand Down

0 comments on commit fe4aa07

Please sign in to comment.