-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add hfun
to sort type of pages
#276
Comments
can you try separately you could also write
with that function returning the whole HTML. You also have access to |
Thanks! I also added a attempt to draft what I want to do in the sandbox repo: https://github.com/Unil-SGC/multipost/tree/main Ideally, I have Then, in and modifies the strings to construct the correct ones to be passed in I am though unsure how to access a global variable defined in |
function hfun_inject_some_html()
return """<img src="https://upload.wikimedia.org/wikipedia/commons/c/c1/Erizo_de_mar_viol%C3%A1ceo_%28Sphaerechinus_granularis%29%2C_Madeira%2C_Portugal%2C_2019-05-31%2C_DD_36.jpg">"""
end then in any |
Thanks, that's the |
no you can't nest these. What I was saying is that instead of having
you would do
(no ispage!) and function hfun_inject_if_page()
# here do the page check using rpath of current context + retrieving global var post_dirs or whatever
if condition_is_verified
return """"HTML to inject"""
end
return ""
end |
Thanks for the hints. I got something to work, but it's not super concise - see here: https://github.com/Unil-SGC/multipost/blob/f7d35787e8c926386f21bfc58088d18615ef89a5/utils.jl#L99-L144. Also, I am still missing the
part as I am unsure how to "convert" the It's maybe finally just easier to manually list post folder in |
Following up on #273 about specific point
Could you give a hint on how to create such
hfun_if_is_list_posts_page
function that would return a list of folders to further pass to{{ispage}}
based on a input list defined in e.g.config.md
:In
config.md
:In
utils.jl
:In
head.html
:The text was updated successfully, but these errors were encountered: