' | append: excerpt | append: '' -%} {%- endif -%} {%- assign bracket_link = '[[' | append: title | append: ']]' -%} {%- assign replaced_content = replaced_content | replace: bracket_link,link_text -%} {%- endfor -%} {%- assign internal_url_alt_array = internal_urls_alt | split:link_joiner_delimiter -%} {%- assign internal_link_alt_array = internal_links_alt | split:link_joiner_delimiter -%} {%- assign internal_titles_alt_array = internal_titles_alt | split:link_joiner_delimiter -%} {%- for title in internal_link_alt_array -%} {%- assign url = internal_url_alt_array[forloop.index0] -%} {%- assign alt_title = internal_titles_alt_array[forloop.index0] -%} {%- if url == nil -%} {%- assign link_text = '' | append: alt_title | append: '' -%} {%- elsif url == empty -%} {%- assign link_text = '' | append: alt_title | append: '' -%} {%- else -%} {%- assign post = site.notes | where: 'title',title -%} {%- assign gggg = site.notes | where: 'title', 'pd.cut() - créer une variable catégorielle'-%} {%- assign excerpt = post[0].content | markdownify | strip_html | truncate: 500 | newline_to_br -%} {%- assign link_text = '' | append: alt_title | append: '' | append: post[0].title | append: '
' | append: excerpt | append: '' -%} {%- endif -%} {%- assign bracket_link = '[[' | append: title | append: '|' | append: alt_title | append: ']]' -%} {%- assign replaced_content = replaced_content | replace: bracket_link, link_text -%} {%- endfor -%} {%- assign sideNoteCounter = 0 -%} {%- assign srsCounter = 0 -%} {%- for title in external_link_array -%} {%- assign url = external_url_array[forloop.index0] -%} {%- if url contains "wikipedia.org" -%} {%- assign link_text = '' | append: title | append: ' ' -%} {%- elsif url contains "archive.org" -%} {%- assign link_text = '' | append: title | append: 'Wayback' -%} {%- elsif url contains "gutenberg.org" -%} {%- assign link_text = '' | append: title | append: 'Guten' -%} {%- elsif url contains "youtube.com" or url contains "youtu.be" -%} {%- assign link_text = '' | append: title | append: '' -%} {%- elsif url contains "twitter.com" -%} {%- assign link_text = '' | append: title | append: '' -%} {%- elsif url contains "github.com" or url contains "github.io" -%} {%- assign link_text = '' | append: title | append: '' -%} {%- elsif url == "highlight" -%} {%- assign link_text = '' | append: title | append: '' -%} {%- elsif url == "wrap" -%} {%- assign link_text = '
' | append: title | append: '
' -%}
{%- elsif url == "img" -%}
{%- assign link_text = '' | append: title | append: '
' | append: excerpt | append: '' -%} {%- else -%} {%- assign link_text = '' | append: title | append: '' -%} {%- endif -%} {%- assign sideNoteCounter = sideNoteCounter | plus:1 -%} {%- elsif url == "srs" -%} {%- assign link_text = 'Flashcard
' | append: title | append: '' -%} {%- assign srsCounter = srsCounter | plus:1 -%} {%- elsif url == "todo" -%} {%- assign todo_list = title | split:';' -%} {%- assign link_text = "
::TODO::
- " -%}
{%- for list_items in todo_list -%}
{%- assign link_text = link_text | append: '
- ' | append: list_items | append: ' ' -%} {%- endfor -%} {%- assign link_text = link_text | append: '