Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions plugins/push-md/docs/landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<meta name="twitter:description" content="Clone posts as Markdown, pull WP-Admin edits, and push your changes with any git client.">
<meta name="twitter:image" content="https://pushmd.blog/assets/push-md-social-card.png">
<meta name="twitter:image:alt" content="Push MD social card showing a terminal workflow for WordPress content in Git.">
<link rel="icon" type="image/png" sizes="512x512" href="assets/push-md-logo.png">
<link rel="apple-touch-icon" href="assets/push-md-logo.png">
<link rel="stylesheet" href="landing.css">
</head>
<body>
Expand All @@ -28,6 +30,7 @@
<a class="brand" href="#top" aria-label="Push MD home">
<img class="brand-logo" src="assets/push-md-logo.png" alt="" width="512" height="512" aria-hidden="true">
<span>Push MD</span>
<span class="beta-badge">Beta</span>
</a>
<nav class="site-nav" aria-label="Main navigation">
<a href="#how-it-works">Use cases</a>
Expand Down Expand Up @@ -65,6 +68,9 @@ <h1 id="hero-title"><span class="md-token">#</span> Markdown in Git. WordPress i
</a>
<a class="button button-secondary" href="https://github.com/Automattic/php-toolkit/tree/trunk/plugins/push-md/docs">Read docs</a>
</div>
<p class="beta-note">
<strong>Beta:</strong> Push MD is an early release for experimentation. Try it on a staging site first and keep your usual WordPress backups in place.
</p>
</div>

<div class="terminal-card" role="application" aria-label="Push MD command emulator">
Expand Down
29 changes: 29 additions & 0 deletions plugins/push-md/docs/landing/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ pre {
filter: drop-shadow(0 5px 12px rgba(31, 29, 25, 0.18));
}

.beta-badge {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 2px 8px;
border: 1px solid rgba(176, 93, 51, 0.26);
border-radius: 999px;
background: rgba(244, 208, 111, 0.28);
color: var(--hash);
font-size: 12px;
font-weight: 780;
line-height: 1;
text-transform: uppercase;
}

.site-nav {
display: flex;
align-items: center;
Expand Down Expand Up @@ -253,6 +268,20 @@ pre {
margin: 28px 0 0;
}

.beta-note {
max-width: 660px;
margin: 18px 0 0;
padding: 10px 0 10px 14px;
border-left: 3px solid var(--hash);
color: var(--muted);
font-size: 14px;
line-height: 1.5;
}

.beta-note strong {
color: var(--ink);
}

.terminal-card,
.authority-strip article,
.use-case-card,
Expand Down
14 changes: 14 additions & 0 deletions plugins/push-md/push-md.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
/**
* Plugin Name: Push MD
* Plugin URI: https://pushmd.blog/
* Description: Edit WordPress content with Git, Markdown and block files, reviewable diffs, and safe pushes.
* Version: 0.6.0
* Requires at least: 6.9
Expand Down Expand Up @@ -60,4 +61,17 @@ function ( $plugin ) {
}
);

add_filter(
'plugin_action_links_' . plugin_basename( PMD_PLUGIN_FILE ),
function ( $actions ) {
$actions['push_md_landing_page'] = sprintf(
'<a href="%s" target="_blank" rel="noopener noreferrer">%s</a>',
esc_url( 'https://pushmd.blog/' ),
esc_html__( 'Landing page', 'push-md' )
);

return $actions;
}
);

PMD_Plugin::bootstrap();
Loading