Ejemplo n.º 1
0
<?php

// Variable Title
$title = "Guide";
include "inc/top.php";
?>

<div class="grid_12 image-heavy">
    <br>
	
	<?php 
render_markdown(dirname(__FILE__) . '/workshop-copy/the_guide_to_git_.md');
?>
	<?php 
render_markdown(dirname(__FILE__) . '/workshop-copy/what_the_heck_is_source_control.md');
?>
	<?php 
render_markdown(dirname(__FILE__) . '/workshop-copy/getting_started.md');
?>
	<?php 
render_markdown(dirname(__FILE__) . '/workshop-copy/collaboration.md');
?>

</div>
    
<?php 
include "inc/bottom.php";
Ejemplo n.º 2
0
    if (is_link($filename)) {
        $filename = readlink($filename);
        http_response_code(301);
        header('Location: /' . str_replace('.md', '', $filename));
        return;
    } else {
        if ($page == 'Home') {
            $breadcrumb = [];
            $timestamp = time();
            $title = null;
            $content = render_markdown(file_get_contents($filename));
        } else {
            $breadcrumb = page_breadcrumb($page, file_get_contents('_Sidebar.md'));
            $timestamp = filemtime($filename);
            $title = page_title($page);
            $content = render_markdown(file_get_contents($filename));
            $content = "<h1>{$title}</h1>\n\n" . $content;
        }
    }
} else {
    if ($matched && $matches[1] == 'Index') {
        $breadcrumb = [['Home', 'Home']];
        $title = 'Index';
        $content = ["<h1>Index</h1>\n", '<ul>'];
        foreach (glob('*.md') as $filename) {
            if ($filename[0] == '_' || is_link($filename)) {
                continue;
            }
            $page = str_replace('.md', '', $filename);
            $content[] = '<li><a href="' . page_path($page) . '">' . page_title($page) . '</a></li>';
        }
Ejemplo n.º 3
0
<?php

// Variable Title
$title = "Home";
include "inc/top.php";
?>


<div class="grid_6">
	<br />
	<br />
	<img src="img/octocat.png" alt="Super Octocat" />
</div>

<div class="grid_6">
        <?php 
render_markdown(dirname(__FILE__) . "/workshop-copy/index.md");
?>
	
</div>
<?php 
include "inc/bottom.php";
Ejemplo n.º 4
0
<?php

// Variable Title
$title = "About";
include "inc/top.php";
?>

<div class="grid_12">
    <h2 style="font-size:45px;text-align:center">
        Brought to you by
    </h2>
</div>

<div class="grid_6">
    <?php 
render_markdown(dirname(__FILE__) . '/workshop-copy/julia.md');
?>
  
</div>

<div class="grid_6">
    <?php 
render_markdown(dirname(__FILE__) . '/workshop-copy/david.md');
?>
  
</div>


<?php 
include "inc/bottom.php";