@@ -7,31 +7,36 @@ import { HiOutlineChevronUp } from "@react-icons/all-files/hi/HiOutlineChevronUp
77import { HiOutlineChevronDown } from "@react-icons/all-files/hi/HiOutlineChevronDown" ;
88// import { FaSearch } from "@react-icons/all-files/fa/FaSearch";
99
10- const Discuss = "../../../assets/images/discuss/layer5-discuss-white.webp" ;
11- const FiveandFriendsAdventures =
12- "../../../assets/images/blog/five-and-friends.webp" ;
10+ const Discuss = "/images/layer5-discuss-white.webp" ;
11+ const FiveandFriendsAdventures = "/images/five-and-friends.webp" ;
1312
1413const Sidebar = ( { pageContext } ) => {
15- const data = useStaticQuery (
16- graphql `query allTagsAndCategories {
17- tags: allMdx(
18- filter: {fields: {collection: {eq: "blog"}}, frontmatter: {published: {eq: true}}}
19- ) {
20- group(field: {frontmatter: {tags: SELECT}}) {
21- fieldValue
22- totalCount
14+ const data = useStaticQuery ( graphql `
15+ query allTagsAndCategories {
16+ tags: allMdx(
17+ filter: {
18+ fields: { collection: { eq: "blog" } }
19+ frontmatter: { published: { eq: true } }
20+ }
21+ ) {
22+ group(field: { frontmatter: { tags: SELECT } }) {
23+ fieldValue
24+ totalCount
25+ }
26+ }
27+ categories: allMdx(
28+ filter: {
29+ fields: { collection: { eq: "blog" } }
30+ frontmatter: { published: { eq: true } }
31+ }
32+ ) {
33+ group(field: { frontmatter: { category: SELECT } }) {
34+ fieldValue
35+ totalCount
36+ }
37+ }
2338 }
24- }
25- categories: allMdx(
26- filter: {fields: {collection: {eq: "blog"}}, frontmatter: {published: {eq: true}}}
27- ) {
28- group(field: {frontmatter: {category: SELECT}}) {
29- fieldValue
30- totalCount
31- }
32- }
33- }`
34- ) ;
39+ ` ) ;
3540
3641 const [ showTag , setShowTag ] = useState ( true ) ;
3742 const [ showCategory , setShowCategory ] = useState ( true ) ;
@@ -60,7 +65,12 @@ const Sidebar = ({ pageContext }) => {
6065 < div className = "card" >
6166 < h2 > Join the Conversation</ h2 >
6267 < p > On our Discussion Forum</ p >
63- < img className = "logo" alt = "Discuss" src = { Discuss } loading = "lazy" />
68+ < img
69+ className = "logo"
70+ alt = "Discuss"
71+ src = { Discuss }
72+ loading = "lazy"
73+ />
6474 </ div >
6575 </ a >
6676 </ div >
0 commit comments