Skip to content

Commit

Permalink
fix base and back sync with website
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Feb 16, 2024
1 parent a83b19e commit 5b93a16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integrations/create_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function get_section_menu(section,raw_menu){
path: entry.path,
url: entry.url,
url_type: entry.url_type,
link:`${config.base}/${section}/${entry.url}`,
link:(dir != ".")?`${config.base}/${entry.url}`:`${config.base}/${section}/${entry.url}`,
level:content_entry_to_level(entry),
format: entry.format,
order: Object.hasOwn(entry,"order")?entry.order:100
Expand Down
3 changes: 3 additions & 0 deletions src/components/markdown/directive/ImageDirective.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ if(Object.hasOwn(node.attributes,"center")){
<img class={add_class} src={asseturl} title={title} alt={alt} style={style}/>

<style>
img{
margin-bottom: 1em;
}
.center{
display: block;
margin-left: auto;
Expand Down
1 change: 0 additions & 1 deletion src/layout/client_nav_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function expand_toggle_save(section_name,href){
}

function set_open_state(section_name){
console.log(`section name : ${section_name}`)
const left_open = menu.sections_open[section_name]
console.log(`left_open = ${left_open}`)
const menu_nav = document.querySelector("nav.pages_menu")
Expand Down
1 change: 0 additions & 1 deletion src/pages/blog/[...url].astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Layout from "@/layout/Layout.astro"
import AstroMarkdown from '@/components/markdown/AstroMarkdown.astro'
import {getEntry} from 'content-structure'
import { get_section_pages } from "@/integrations/get_menu.js";
import { config } from "@/config";
import {remove_base} from '@/libs/assets.js'
let {url} = Astro.params;
Expand Down

0 comments on commit 5b93a16

Please sign in to comment.