A new Riff-radio.org site with a static approach.

listings-demo.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Listings Demo | Riff</title>
  7. <link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
  8. <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
  9. <link rel="canonical" href="http://media.pagelibre.org/riff/site/pages/listings-demo.html">
  10. <link rel="icon" href="../favicon.ico" sizes="16x16">
  11. <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="Riff">
  12. <meta property="og:site_name" content="Riff">
  13. <meta property="og:title" content="Listings Demo">
  14. <meta property="og:url" content="http://media.pagelibre.org/riff/site/pages/listings-demo.html">
  15. <meta property="og:description" content="Nikola intends to let you show code easily via listings:
  16. hello.py (Source)
  17. #!/usr/bin/python
  18. import sys
  19. def hello(name='world'):
  20. greeting = &quot;hello &quot; + name
  21. print(greeting)
  22. if __name__ ==">
  23. <meta property="og:type" content="article">
  24. <meta property="article:published_time" content="2012-12-15T10:16:20-03:00">
  25. </head>
  26. <body>
  27. <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
  28. <!-- Menubar -->
  29. <div class="blog-masthead">
  30. <div class="container">
  31. <!-- This keeps the margins nice -->
  32. <nav class="blog-nav" role="navigation"><a href="../index.html" class="blog-nav-item">Accueil</a>
  33. <a href="about.html" class="blog-nav-item">About Riff</a>
  34. <a href="../rss.xml" class="blog-nav-item">RSS feed</a>
  35. </nav>
  36. </div>
  37. <!-- /.container -->
  38. </div>
  39. <!-- End of Menubar -->
  40. <div class="container" id="content" role="main">
  41. <div class="body-content">
  42. <div class="blog-header">
  43. <h1 class="blog-title">
  44. <a href="http://media.pagelibre.org/riff/site/">
  45. <span id="blog-title">Riff</span>
  46. </a>
  47. </h1>
  48. <p class="lead blog-description">Riff la radio rock</p>
  49. </div>
  50. <!--Body content-->
  51. <div class="row">
  52. <div class="col-sm-8 blog-main">
  53. <article class="post-text storypage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h2 class="p-name entry-title blog-post-title" itemprop="headline name"><a href="#" class="u-url">Listings Demo</a></h2>
  54. </header><div class="e-content entry-content" itemprop="articleBody text">
  55. <p>Nikola intends to let you show code easily via listings:</p>
  56. <p><a class="reference external" href="../listings/hello.py.html">hello.py</a> <a class="reference external" href="../listings/hello.py">(Source)</a></p>
  57. <pre class="code python"><a name="rest_code_39d324261d5b4eb2910076b264d3954a-1"></a><span class="ch">#!/usr/bin/python</span>
  58. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-2"></a>
  59. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-3"></a><span class="kn">import</span> <span class="nn">sys</span>
  60. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-4"></a>
  61. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-5"></a>
  62. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-6"></a><span class="k">def</span> <span class="nf">hello</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s1">'world'</span><span class="p">):</span>
  63. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-7"></a> <span class="n">greeting</span> <span class="o">=</span> <span class="s2">"hello "</span> <span class="o">+</span> <span class="n">name</span>
  64. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-8"></a> <span class="nb">print</span><span class="p">(</span><span class="n">greeting</span><span class="p">)</span>
  65. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-9"></a>
  66. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-10"></a>
  67. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-11"></a><span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">"__main__"</span><span class="p">:</span>
  68. <a name="rest_code_39d324261d5b4eb2910076b264d3954a-12"></a> <span class="n">hello</span><span class="p">(</span><span class="o">*</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">:])</span>
  69. </pre>
  70. </div>
  71. </article>
  72. </div>
  73. <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
  74. <div class="sidebar-module sidebar-module-inset">
  75. <h4>About</h4>
  76. <div id="shoutcastdiv">
  77. <script type="text/javascript">
  78. refreshdiv();
  79. </script>
  80. </div>
  81. </div>
  82. <div class="sidebar-module">
  83. <h4>Links</h4>
  84. <ol class="list-unstyled">
  85. <li><a href="http://getbootstrap.com/examples/blog/">Bootstrap Blog Theme</a></li>
  86. <li><a href="https://getnikola.com/">Nikola</a></li>
  87. <li><a href="https://twitter.com/mdo">@mdo</a></li>
  88. <li><a href="https://twitter.com/Kwpolska">@Kwpolska</a></li>
  89. <li><a href="https://twitter.com/GetNikola">@GetNikola</a></li>
  90. </ol>
  91. </div>
  92. </div>
  93. <!--End of body content-->
  94. </div>
  95. </div>
  96. </div>
  97. <footer class="blog-footer" id="footer">
  98. Contents © 2023 <a href="mailto:contact@riff-radio.org">Riff</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
  99. </footer><script src="../assets/js/all-nocdn.js"></script><!-- fancy dates --><script>
  100. moment.locale("en");
  101. fancydates(0, "YYYY-MM-DD HH:mm");
  102. </script><!-- end fancy dates --><script>
  103. baguetteBox.run('div#content', {
  104. ignoreClass: 'islink',
  105. captions: function(element) {
  106. return element.getElementsByTagName('img')[0].alt;
  107. }});
  108. </script><script type="text/javascript" src="../refresh.js"></script>
  109. </body>
  110. </html>