modern-resume-theme 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c549f70e6c36663bb5750df5ae61495381bf3bd97d8a4cf949497e184a702924
4
- data.tar.gz: 7c5eb31196ea91906f33c71fb20aa0040fc831aa9be77a0df7c9c9557dd17ae0
3
+ metadata.gz: 0ef3c473b15c8f4e46badd8f007b84e41e6e45f46096a89d82803801a8d1c610
4
+ data.tar.gz: 6bf62fdf1e8779288a0e8bae20cc9b8ed71299e00b027ec607ab7f420c3225d4
5
5
  SHA512:
6
- metadata.gz: f3feb687747622efaefdf18005e156faaacba4dd77a830a962d163ea1c242e18e78795bae41ba5018d3f262acbb01f7a140e31c6b4bbc6a29befc6cd65131679
7
- data.tar.gz: 4ff48adbf0be1920ecba10e06bed7592fbeb3ed5a193b2ee81a250f6d68ac97d8d634f000757abc6615953ebc66e440060ab9a058c1c4edfca459231e9486859
6
+ metadata.gz: 111fb80c1366a0b820f962f34711de97ef97dd36dbf0fd2c2d2b80bcea26a9d597fc5367c845afef94be910114b7a9140a63810630dce9b9613b5f1f4324f07a
7
+ data.tar.gz: fae79e7590da01a775d8e643b3165d702a89bbd601d4a25800d4361407a16558d2e70930db96a6c455f3a693b836851f8ac8621f0cf08970a4c3f00f04a8158a
data/README.md CHANGED
@@ -112,6 +112,9 @@ When dark mode is `true` the site will show the dark theme for everyone
112
112
  When dark mode is `false` the site will not show the dark theme, but it will still respect the users device preferences
113
113
  When dark mode is `never` the site will never be shown in the dark theme
114
114
 
115
+ #### Heading Anchors
116
+ You can link to section titles using a Markdown anchor link, e.g.: `[About me](#about-me)`. The link after the `#` is the slug version of the title.
117
+
115
118
  ### `assets/main.scss`
116
119
  Add any css changes or additions you want to make here after the line `@import 'modern-resume-theme';`
117
120
 
data/_includes/about.html CHANGED
@@ -1,5 +1,6 @@
1
1
  <div class="container intro-container">
2
- <h3>{{ site.about_title | default: "About Me" }}</h3>
2
+ <h3 id="{{ site.about_title | slugify | default: 'about-me' }}">{{ site.about_title | default:
3
+ "About Me" }}</h3>
3
4
  <div class="row clearfix">
4
5
  {%- if site.about_profile_image -%}
5
6
  <div class="col-xs-12 col-sm-4 col-md-3 no-print">
@@ -1,7 +1,7 @@
1
1
  {% for item in include.content %}
2
2
  <div class="row clearfix layout layout-{{item.layout | default: 'left'}}">
3
3
  <div class="col-xs-12 col-sm-4 col-md-3 col-print-12 details">
4
- <h4>{{ item.title }}</h4>
4
+ <h4 id="{{ item.title | slugify }}">{{ item.title }}</h4>
5
5
  {%- if item.sub_title -%}<p><b>{{ item.sub_title }}</b></p>{%- endif -%}
6
6
  {%- if item.caption -%}<p>{{ item.caption }}</p>{%- endif -%}
7
7
 
@@ -1,5 +1,5 @@
1
1
  <div class="container education-container">
2
- <h3>{{ site.education_title | default: "Education" }}</h3>
2
+ <h3 id="{{ site.education_title | slugify | default: 'education' }}">{{ site.education_title | default: "Education" }}</h3>
3
3
  {% for education in site.data.education %}
4
4
  {% include {{ education.layout | default: 'left' | append: ".html" | prepend: "v1/" }} item=education %}
5
5
  {% endfor %}
@@ -1,5 +1,5 @@
1
1
  <div class="container experience-container">
2
- <h3>{{ site.experience_title | default: "Experience" }}</h3>
2
+ <h3 id="{{ site.experience_title | slugify | default: 'experience' }}">{{ site.experience_title | default: "Experience" }}</h3>
3
3
  {% for experience in site.data.experience %}
4
4
  {% include {{ experience.layout | default: 'left' | append: ".html" | prepend: "v1/" }} item=experience %}
5
5
  {% endfor %}
@@ -1,5 +1,5 @@
1
1
  <div class="container more-container">
2
- <h3>{{ site.more_title | default: "A Little More About Me" }}</h3>
2
+ <h3 id="{{ site.more_title | slugify | default: 'a-little-bit-more-about-me' }}">{{ site.more_title | default: "A Little More About Me" }}</h3>
3
3
  <div class="row clearfix">
4
4
  <div class="col-md-12">
5
5
  {{ site.more_content | strip | markdownify }}
@@ -1,5 +1,5 @@
1
1
  <div class="container projects-container">
2
- <h3>{{ site.projects_title | default: "Projects" }}</h3>
2
+ <h3 id="{{ site.projects_title | slugify | default: 'projects'}}">{{ site.projects_title | default: "Projects" }}</h3>
3
3
  {% for project in site.data.projects %}
4
4
  {% include {{ project.layout | default: 'left' | append: ".html" | prepend: "v1/" }} item=project %}
5
5
  {% endfor %}
@@ -19,11 +19,7 @@
19
19
  {%- if site.version == 2 -%}
20
20
  {% for section in site.content %}
21
21
  <div class="container {{ section.layout }}-container">
22
- {%- if section.id -%}
23
- <h3 id="{{ section.id }}">{{ section.title }}</h3>
24
- {% else %}
25
- <h3>{{ section.title }}</h3>
26
- {%- endif -%}
22
+ <h3 id="{{ section.title | slugify }}">{{ section.title }}</h3>
27
23
  {% include {{ section.layout | prepend: "section-" | append: ".html" }} content=section.content %}
28
24
  </div>
29
25
  {% endfor %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modern-resume-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Grant