Joseph Hale's Technical Blog
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: Add collection for legal links

Adds placeholders for the following common legal documents:
- Terms and Conditions
- Privacy Policy
- Cookie Policy

The sidebar will show links to each of these legal documents below the
list of contact icons.

Joseph Hale (Feb 6, 2024, 7:00 PM -0700) 7a655fb7 a5046ec8

+49 -2
+3
_config.yml
··· 138 138 tabs: 139 139 output: true 140 140 sort_by: order 141 + legal: 142 + output: true 143 + sort_by: order 141 144 142 145 defaults: 143 146 - scope:
+10 -1
_includes/sidebar.html
··· 42 42 </ul> 43 43 </nav> 44 44 45 - <div class="sidebar-bottom d-flex flex-wrap align-items-center w-100"> 45 + <div class="sidebar-bottom d-flex flex-wrap align-items-center w-100"> 46 46 {% unless site.theme_mode %} 47 47 <button type="button" class="mode-toggle btn" aria-label="Switch Mode"> 48 48 <i class="fas fa-adjust"></i> ··· 72 72 73 73 {% if url %} 74 74 <a 75 + class="contact-link" 75 76 href="{{ url }}" 76 77 aria-label="{{ entry.type }}" 77 78 {% assign link_types = '' %} ··· 93 94 </a> 94 95 {% endif %} 95 96 {% endfor %} 97 + <!-- Legal links --> 98 + <div class="legal align-items-center d-flex flex-wrap w-100"> 99 + {% for item in site.legal %} 100 + <div> 101 + <a href="{{ item.url }}">{{ item.sidebar_title }}</a> 102 + </div> 103 + {% endfor %} 104 + </div> 96 105 </div> 97 106 <!-- .sidebar-bottom --> 98 107 </aside>
+10
_legal/cookie-policy.md
··· 1 + --- 2 + layout: page 3 + title: Cookie Policy 4 + sidebar_title: Cookies 5 + order: 3 6 + --- 7 + 8 + 9 + > Add Markdown syntax content to file `_legal/cookie-policy.md`{: .filepath } and it will show up on this page. 10 + {: .prompt-tip }
+9
_legal/privacy-policy.md
··· 1 + --- 2 + layout: page 3 + title: Privacy Policy 4 + sidebar_title: Privacy 5 + order: 2 6 + --- 7 + 8 + > Add Markdown syntax content to file `_legal/privacy-policy.md`{: .filepath } and it will show up on this page. 9 + {: .prompt-tip }
+9
_legal/terms-and-conditions.md
··· 1 + --- 2 + layout: page 3 + title: Terms and Conditions 4 + sidebar_title: Terms 5 + order: 1 6 + --- 7 + 8 + > Add Markdown syntax content to file `_legal/terms-and-conditions.md`{: .filepath } and it will show up on this page. 9 + {: .prompt-tip }
+8 -1
_sass/addon/commons.scss
··· 839 839 } 840 840 } 841 841 842 - a { 842 + a.contact-link { 843 843 @extend %button; 844 844 @extend %sidebar-link-hover; 845 845 @extend %clickable-transition; ··· 872 872 height: $btn-border-width; 873 873 border-radius: 50%; 874 874 margin-bottom: $btn-mb; 875 + } 876 + .legal a { 877 + font-size: .8rem; 878 + margin-right: .6rem; 879 + &:hover { 880 + @extend %link-hover; 881 + } 875 882 } 876 883 } /* .sidebar-bottom */ 877 884 } /* #sidebar */