base.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <!DOCTYPE html>
  2. <html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock %}">
  3. <head prefix="og: https://ogp.me/ns#{% if article %} article: https://ogp.me/ns/article#{% endif%}">
  4. {% set SITESUBTITLE = _('Sitio de información sobre Software Libre') %}
  5. {% block head %}
  6. <!-- Meta Base -->
  7. <meta charset="UTF-8"/>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  10. <meta name="HandheldFriendly" content="True"/>
  11. <!-- Feed -->
  12. {% if FEED_ALL_ATOM %}
  13. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ _('Fuente completa de entradas Atom de %(sitename)s', sitename=SITENAME) }}"/>
  14. {% endif %}
  15. {% if FEED_ALL_RSS %}
  16. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ _('Fuente completa de entradas RSS de %(sitename)s', sitename=SITENAME) }}"/>
  17. {% endif %}
  18. {% if FEED_ATOM %}
  19. <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ _('Fuente Atom de %(sitename)s', sitename=SITENAME) }}"/>
  20. {% endif %}
  21. {% if FEED_RSS %}
  22. <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ _('Fuente RSS de %(sitename)s', sitename=SITENAME) }}"/>
  23. {% endif %}
  24. {% if CATEGORY_FEED_ATOM and category %}
  25. <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ _('Fuente Atom de categorías de %(sitename)s', sitename=SITENAME) }}"/>
  26. {% endif %}
  27. {% if CATEGORY_FEED_RSS and category %}
  28. <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ _('Fuente RSS de categorías de %(sitename)s', sitename=SITENAME) }}"/>
  29. {% endif %}
  30. {% if TAG_FEED_ATOM and tag %}
  31. <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug=tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ _('Fuente Atom de etiquetas de %(sitename)s', sitename=SITENAME) }}"/>
  32. {% endif %}
  33. {% if TAG_FEED_RSS and tag %}
  34. <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS.format(slug=tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ _('Fuente RSS de etiquetas de %(sitename)s', sitename=SITENAME) }}"/>
  35. {% endif %}
  36. {% if TRANSLATION_FEED_ATOM %}
  37. {% for LANG in LANGS %}
  38. {% set translation_feed = 'feeds/all-%s.atom.xml' % (LANG) %}
  39. <link href="{{ FEED_DOMAIN }}/{{ translation_feed }}" type="application/atom+xml" rel="alternate" title="{{ _('Fuente Atom de idioma %(lang)s de %(sitename)s', lang=LANG, sitename=SITENAME) }}"/>
  40. {% endfor %}
  41. {% endif %}
  42. <!-- stylesheets -->
  43. <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/bulma.css?v=0.7.4"/>
  44. <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/hover.css"/>
  45. <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/style.css?v=2.0.2"/>
  46. <!-- favicon -->
  47. <link rel="icon" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-16x16.png" sizes="16x16"/>
  48. <link rel="icon" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-32x32.png" sizes="32x32"/>
  49. <link rel="icon" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-96x96.png" sizes="96x96"/>
  50. <link rel="icon" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-192x192.png" sizes="192x192"/>
  51. <link rel="apple-touch-icon-precomposed" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-180x180.png"/>
  52. {% endblock head %}
  53. </head>
  54. <body>
  55. <!-- navigation -->
  56. <header class="navigation" itemscope itemtype="https://schema.org/WPHeader">
  57. <nav class="navbar">
  58. <div class="container">
  59. <!-- nav site title -->
  60. <!-- Input for menu-mobile with checkbox-->
  61. <input id="navbar-toggle-cbox" type="checkbox">
  62. <!-- End Input for menu-mobile with checkbox-->
  63. <div class="navbar-brand">
  64. <a class="navbar-item" href="{{ SITEURL }}/" rel="home">
  65. <h3 class="title is-3 has-text-white">{{ SITENAME_SINGLE }}</h3>
  66. </a>
  67. <!-- this "navbar-burger" hamburger menu is only visible on mobile -->
  68. <label class="nav__toggle" for="navbar-toggle-cbox">
  69. <!-- Menu -->
  70. <svg class="menu" viewBox="0 0 448 512" width="100">
  71. <path
  72. d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"
  73. />
  74. <title>Bars</title>
  75. </svg>
  76. <!-- Close -->
  77. <svg class="close" viewBox="0 0 384 512" width="100">
  78. <path
  79. d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
  80. />
  81. <title>Close</title>
  82. </svg>
  83. </label>
  84. <!-- end of burger -->
  85. </div>
  86. <!-- this "navbar-menu" is hidden on mobile -->
  87. {% if DISPLAY_PAGES_ON_MENU %}
  88. <div id="navMenu" class="navbar-menu">
  89. <ul class="navbar-end">
  90. <li><a itemprop="url" href="{{ SITEURL }}/" class="navbar-item is-tab {% if output_file == 'index.html' %} is-active{% endif %}">{{ _('Inicio') }}</a></li>
  91. {% for p in pages %}
  92. <li><a itemprop="url" href="{{ SITEURL }}/{{ p.url }}" class="navbar-item is-tab {% if p == page %} is-active{% endif %}">{{ p.title }}</a></li>
  93. {% endfor %}
  94. <li><a itemprop="url" href="{{ SITEURL }}/{{ ARCHIVES_URL }}" class="navbar-item is-tab {% if output_file == ARCHIVES_SAVE_AS %} is-active {% endif %}">{{ _('Archivos') }}</a></li>
  95. <li><a itemprop="url" href="{{ SITEURL }}/{{ AUTHORS_URL }}" class="navbar-item is-tab {% if output_file == AUTHORS_SAVE_AS %} is-active{% endif %}">{{ _('Créditos') }}</a></li>
  96. </ul>
  97. </div>
  98. {% endif %}
  99. <!-- end of nav -->
  100. </div>
  101. </nav>
  102. </header>
  103. <!-- end navigation -->
  104. <!-- page header (title, etc) -->
  105. <div class="main-header">
  106. <section class="hero">
  107. <div class="hero-body">
  108. <div class="container">
  109. <div class="has-text-centered" itemscope itemtype="https://schema.org/Blog">
  110. {%- block sitename -%}
  111. <!-- header && subheader -->
  112. <h1 class="title is-1 is-spaced" itemprop="name">{{ SITENAME }}</h1>
  113. <p class="subtitle is-4">{{ SITESUBTITLE }}</p>
  114. {%- endblock -%}
  115. <!-- search form -->
  116. <div class="column is-6 is-offset-3">
  117. <div class="box has-background-black-ter">
  118. <form class="field has-addons" action="{{ SITEURL }}/buscar.php">
  119. <div class="control is-expanded">
  120. <input class="input has-text-centered"
  121. type="search"
  122. name="q" required
  123. placeholder="{{ _('» » » » » » búscame « « « « « «') }}">
  124. </div>
  125. <input class="button is-dark" name="submit" value="{{ _('Buscar') }}" type="submit">
  126. </form>
  127. </div>
  128. </div>
  129. <!-- end search form -->
  130. <!-- end of header && subheader -->
  131. </div>
  132. </div>
  133. </div>
  134. </section>
  135. </div>
  136. <!-- end page header -->
  137. <!-- page content -->
  138. <main class="main-content">
  139. {%- block content -%}
  140. <div class="container">
  141. <!-- start of posts -->
  142. <div class="columns is-multiline is-centered has-text-centered">
  143. <!-- start of post -->
  144. {% for article in articles_page.object_list %}
  145. <article class="column is-4" itemscope itemtype="https://schema.org/CreativeWork">
  146. <div class="card">
  147. <!-- image for post -->
  148. {% if article.image %}
  149. <div class="card-image">
  150. <a href="{{ SITEURL }}/{{ article.url }}#titulo">
  151. <figure class="image ihover circle3">
  152. <img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/../wp-content/uploads/article/poster/{{ article.image }}" alt="{{ article.title }}" itemprop="image">
  153. </figure>
  154. </a>
  155. </div>
  156. {% else %}
  157. <div class="card-image">
  158. <a href="{{ SITEURL }}/{{ article.url }}#titulo">
  159. <figure class="image ihover circle3">
  160. <img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/background/745x372.png" alt="Image" itemprop="image">
  161. </figure>
  162. </a>
  163. </div>
  164. {% endif %}
  165. <!-- end of image for post -->
  166. <!-- post header -->
  167. <div class="card-content-header">
  168. <h2 class="title is-4" itemprop="headline"><a href="{{ SITEURL }}/{{ article.url }}#titulo" rel="bookmark" title="{{ _('Enlace a %(articulo)s', articulo=article.title|striptags) }}">{{ article.title }}</a></h2>
  169. </div>
  170. <!-- end of post header -->
  171. <!-- post content -->
  172. <div class="card-content">
  173. <div class="content social">
  174. <div class="navbar is-social-center">
  175. <a class="navbar-item" {% if article.gnusocial %}href="{{ article.gnusocial }}" rel="me noopener noreferrer" target="_blank" {% else %}href="#"{% endif %}>
  176. <span class="soumaicon">
  177. <svg>
  178. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial" />
  179. <title>GNUSocial</title>
  180. </svg>
  181. </span>
  182. </a>
  183. <a class="navbar-item" {% if article.diaspora %}href="{{ article.diaspora }}" rel="me noopener noreferrer" target="_blank" {% else %}href="#"{% endif %}>
  184. <span class="soumaicon">
  185. <svg>
  186. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora" />
  187. <title>Diaspora</title>
  188. </svg>
  189. </span>
  190. </a>
  191. <a class="navbar-item" {% if article.mastodom %}href="{{ article.mastodom }}" rel="me noopener noreferrer" target="_blank" {% else %}href="#"{% endif %}>
  192. <span class="soumaicon">
  193. <svg>
  194. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodon" />
  195. <title>Mastodon</title>
  196. </svg>
  197. </span>
  198. </a>
  199. </div>
  200. </div>
  201. <!-- post footer -->
  202. {% include "base_info.html" %}
  203. <!-- end of post footer -->
  204. </div>
  205. <!-- end of post content -->
  206. </div>
  207. </article>
  208. {% endfor %}
  209. <!-- end of post -->
  210. </div>
  211. <!-- end of posts -->
  212. </div>
  213. <!-- pagination -->
  214. {% include "pagination.html" %}
  215. <!-- end of pagination -->
  216. {%- endblock -%}
  217. </main>
  218. <!-- end of page content -->
  219. <!-- .site-content -->
  220. <footer class="footer footer-top-shadow" itemscope itemtype="https://schema.org/WPFooter">
  221. <!-- header nav content -->
  222. <div class="navbar is-social-center" itemscope itemtype="https://schema.org/FollowAction">
  223. <a class="navbar-item" href="{{ SOCIAL['diaspora'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  224. <span class="soumaicon">
  225. <svg>
  226. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#diaspora"/>
  227. <title>Diaspora</title>
  228. </svg>
  229. </span>
  230. </a>
  231. <a class="navbar-item" href="{{ SOCIAL['gnusocial'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  232. <span class="soumaicon">
  233. <svg>
  234. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#gnusocial"/>
  235. <title>GNUSocial</title>
  236. </svg>
  237. </span>
  238. </a>
  239. <a class="navbar-item" href="{{ SOCIAL['pump'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  240. <span class="soumaicon">
  241. <svg>
  242. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#pump"/>
  243. <title>Pump</title>
  244. </svg>
  245. </span>
  246. </a>
  247. <a class="navbar-item" href="{{ SOCIAL['mastodon'] }}" itemprop="followee" rel="me noopener noreferrer" target="_blank">
  248. <span class="soumaicon">
  249. <svg>
  250. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mastodon"/>
  251. <title>Mastodon</title>
  252. </svg>
  253. </span>
  254. </a>
  255. <a class="navbar-item" href="{{ SOCIAL['pixelfed'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  256. <span class="soumaicon">
  257. <svg>
  258. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#pixelfed"/>
  259. <title>PixelFed</title>
  260. </svg>
  261. </span>
  262. </a>
  263. <a class="navbar-item" href="{{ SOCIAL['peertube'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  264. <span class="soumaicon">
  265. <svg>
  266. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#peertube"/>
  267. <title>PeerTube</title>
  268. </svg>
  269. </span>
  270. </a>
  271. <a class="navbar-item" href="{{ SOCIAL['mediagoblin'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  272. <span class="soumaicon">
  273. <svg>
  274. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#mediagoblin"/>
  275. <title>MediaGoblin</title>
  276. </svg>
  277. </span>
  278. </a>
  279. <a class="navbar-item" href="{{ SOCIAL['matrix'] }}" itemprop="followee" rel="noopener noreferrer" target="_blank">
  280. <span class="soumaicon">
  281. <svg>
  282. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#matrix"/>
  283. <title>Matrix</title>
  284. </svg>
  285. </span>
  286. </a>
  287. {% if FEED_ALL_ATOM %}
  288. <a class="navbar-item" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" rel="alternate" type="application/atom+xml" itemprop="url">
  289. <span class="soumaicon">
  290. <svg>
  291. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#rss"/>
  292. <title>RSS</title>
  293. </svg>
  294. </span>
  295. </a>
  296. {% endif %}
  297. </div>
  298. <!-- end of header nav content -->
  299. <div class="container has-text-centered">
  300. <span class="soumaicon">
  301. <svg>
  302. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#sourcehut"/>
  303. </svg>
  304. </span>
  305. <p itemprop='author' itemscope itemtype="https://schema.org/Person">{{ _('Escrito por') }}
  306. <a itemprop="url" href="https://git.sr.ht/~heckyel">git.sr.ht/~heckyel</a>
  307. </p>
  308. <p>{{ _('Este sitio es Software Libre') }}</p>
  309. <p>
  310. <a href="{{ SOURCE_LINK }}" rel="noopener noreferrer" target="_blank">{{ _('Código fuente') }}</a>
  311. <span class="soumaicon">
  312. <svg>
  313. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/master.svg#code"/>
  314. </svg>
  315. </span>
  316. </p>
  317. <p>
  318. <a itemprop="license" href="{{ SITEURL }}/pages/librejs.html" data-jslicense="1">{{ _('Licencias de JavaScript') }}</a>
  319. </p>
  320. <p>{{ _('Versión actual:') }} {{ CURRENT_VERSION }} @ {{ CURRENT_BRANCH }}</p>
  321. </div>
  322. </footer>
  323. <!-- end of footer -->
  324. {% if article %}
  325. {% if article.js %}
  326. {% for script in article.js %}
  327. {% if 'bottom' in script[-7:] %}
  328. {{ script[:-8]|format(SITEURL) }}
  329. {% endif %}
  330. {% endfor %}
  331. {% endif %}
  332. {% endif %}
  333. {% if page %}
  334. {% if page.js %}
  335. {% for script in page.js %}
  336. {% if 'bottom' in script[-7:] %}
  337. {{ script[:-8]|format(SITEURL) }}
  338. {% endif %}
  339. {% endfor %}
  340. {% endif %}
  341. {% endif %}
  342. </body>
  343. </html>