File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 7
7
{%- endcomment -%}
8
8
< div class ="btn-group my-3 " role ="group " aria-label ="Item options ">
9
9
{% if page.object_transcript %}< button class ="btn btn-outline-primary " type ="button " data-bs-toggle ="collapse " data-bs-target ="#collapseTranscript " aria-expanded ="false " aria-controls ="collapseExample "> Transcripción</ button > {% endif %}
10
+ {% if page.traduccion %}< button class ="btn btn-outline-primary " type ="button " data-bs-toggle ="collapse " data-bs-target ="#collapseTraduccion " aria-expanded ="false " aria-controls ="collapseExample "> Traducción</ button > {% endif %}
10
11
{% if page.date %}{%- capture year -%}{% if page.date contains "-" %}{{ page.date | split: "-" | first }}{% elsif page.date contains "/" %}{{ page.date | split: "/" | last }}{% else %}{{ page.date }}{% endif %}{%- endcapture -%}
11
12
< a href ="{{ year | strip | prepend: '/timeline.html#y' | relative_url }} " class ="btn btn-outline-primary "> Ver en la cronología</ a > {% endif %}
12
13
{% if page.latitude and page.longitude %}
44
45
{% endif %}
45
46
</ div >
46
47
</ div >
48
+ {% endif %}
49
+ {% if page.traduccion %}
50
+ < div class ="collapse mt-3 " id ="collapseTraduccion ">
51
+ < div class ="card card-body text-start ">
52
+ {% assign traduccion_type = page.traduccion | slice: 0,1 %}
53
+ {% if traduccion_type == '/' %}
54
+ {% assign traduccion_location = page.traduccion | remove_first: '/' %}
55
+ {% assign traduccion = site.pages | where: 'path', traduccion_location | first %}
56
+ {{ traduccion.content | markdownify }}
57
+ {% else %}
58
+ {{ page.traduccion | markdownify }}
59
+ {% endif %}
60
+ </ div >
61
+ </ div >
47
62
{% endif %}
You can’t perform that action at this time.
0 commit comments