Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Enable links in subtitles #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions exampleSite/content/home/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ content_type: 'publications'
section_settings:
show_section: true
title: 'Recent Publications'
subtitle: 'Custom Subtitle: see my google scholar for the latest list'
subtitle: |

Custom Subtitle: see my [google scholar](https://scholar.google.com/)
for the latest list
---

home/publications.md
home/publications.md
4 changes: 2 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{ $subtitle := "" }}
{{ if .Params.section_settings.subtitle }}
{{ $subtitle = .Params.section_settings.subtitle }}
{{ $subtitle = .Params.section_settings.subtitle | markdownify }}
{{ end }}

{{ if or $title (eq $content_type "about")}}
Expand Down Expand Up @@ -46,4 +46,4 @@ <h6 class="row w-100 section-subtitle text-muted"> {{ $subtitle }} </h6>
{{end}}

<!-- this is for block -->
{{end}}
{{end}}
7 changes: 6 additions & 1 deletion static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ h2 code {
padding: 2px;
}

h6 a {
padding-left: 5px;
padding-right: 5px;
}

#TableOfContents ul {
margin: auto;
padding-left: 2%;
Expand Down Expand Up @@ -270,4 +275,4 @@ h2 code {

.read_more {
margin-top: 1%;
}
}